CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

wall boundary temperature - access violation

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 20, 2013, 06:54
Default wall boundary temperature - access violation
New Member
Igor Bonefacic
Join Date: Mar 2009
Location: Rijeka, Croatia
Posts: 5
Rep Power: 10
igorb is on a distinguished road

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:


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,
igorb is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with zeroGradient wall BC for temperature - Total temperature loss cboss OpenFOAM 10 March 5, 2015 07:57
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

All times are GMT -4. The time now is 11:51.