wall boundary temperature - access violation
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;
temp = F_T(f, tf);
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,
|All times are GMT -4. The time now is 01:23.|