|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Igor Bonefacic
Join Date: Mar 2009
Location: Rijeka, Croatia
Posts: 5
Rep Power: 17 ![]() |
Hello:
I'm writing an UDF function to calculate Mean radiant temperature in post processing and to be able to do that I need to call F_T(f, t) macro for every boundary (wall boundary) face from every single cell in the domain. So i've created face thread loops inside cell thread loop. Something like this: DEFINE_ON_DEMAND(MRT) Domain *domain = Get_Domain(1); Thread *tc, *tf; face_t f; cell_t c; thread_loop_c(tc, domain) { begin_c_loop(c, tc) { thread_loop_f(tf, domain) { begin_f_loop(f, tf) { ... temp = F_T(f, tf); ... } end_f_loop(f, tf) } end_c_loop(c, tc) } I've isolated the problem in F_T(f, t) macro which for some reason causes access violation. Other F_ macros like F_AREA() or F_CENTROID work just fine. And, also, when I replace F_T(f, ft) with some arbitrary wall temperatures UDF works just fine. For now I'm calculating wall temperatures from neighboring cell temperatures and temp. gradients but its bugging me why it won't work with F_T. I'm I doing something completely wrong? Thanks in advance, Igor. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with zeroGradient wall BC for temperature - Total temperature loss | cboss | OpenFOAM | 12 | October 1, 2018 07:36 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |
CFX doesn't continue calculation... | mactech001 | CFX | 6 | November 15, 2009 22:25 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
About fix wall temperature in wall boundary | joon | Siemens | 2 | March 10, 2003 02:41 |