CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   can't access face variables ... (https://www.cfd-online.com/Forums/fluent/46164-cant-access-face-variables.html)

bart weisser September 27, 2007 22:32

can't access face variables ...
 
The following UDF will result in a segmentation fault. All it does is to go through all the faces and obtain a velocity component. The solution domain has been initialized prior to its execution. Interpreted UDF was used. Is there anything else I should be aware of?

<tt> #include "udf.h"#include "mem.h" DEFINE_ON_DEMAND(test){ Domain *d;Thread *t;face_t f;double u;

d = Get_Domain (1);

thread_loop_f (t, d) {begin_f_loop (f, t) {

u = C_U (f, t);

} end_f_loop (f, t);} /*thread_loop_f */} /* udf */ </tt>

max September 28, 2007 06:52

Re: can't access face variables ...
 
What about using F_U instead of C_U?

Max

bart weisser September 28, 2007 14:09

Re: can't access face variables ...
 
Shoot ... I meant to write <tt>F_U</tt> (not <tt>C_U</tt>). BW.


All times are GMT -4. The time now is 03:24.