CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

wall boundary temperature - access violation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2013, 06:54
Default wall boundary temperature - access violation
  #1
New Member
 
Igor Bonefacic
Join Date: Mar 2009
Location: Rijeka, Croatia
Posts: 5
Rep Power: 17
igorb is on a distinguished road
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.
igorb is offline   Reply With Quote

Reply


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 Off
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 12 October 1, 2018 06:36
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
CFX doesn't continue calculation... mactech001 CFX 6 November 15, 2009 21:25
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
About fix wall temperature in wall boundary joon Siemens 2 March 10, 2003 01:41


All times are GMT -4. The time now is 23:29.