CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   the macro of c_face_loop and F_UDMI(F_UDSI) (http://www.cfd-online.com/Forums/fluent/82632-macro-c_face_loop-f_udmi-f_udsi.html)

zhang_pioneer December 1, 2010 05:51

the macro of c_face_loop and F_UDMI(F_UDSI)
 
When the following udf is operating, there is error such as:
Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: ()
DEFINE_SOURCE(velocity_u_source,c,t,dS,i)
{
face_t f;
Thread *tf;
int n;
real S=0;
c_face_loop(c,t,n)
{
f=C_FACE(c,t,n);
tf=C_FACE_THREAD(c,t,n);
if (THREAD_ID(tf)==10)
{
F_UDSI(f,tf,0)=0.0;
}
}
return S;
}
And check it. When F_UDSI(f,tf,0) is repalced by C_UDSI(c,t,0), the operation is ok. Does this mean that F_UDSI(F_UDMI) cound not retrieved as faces of cell is looped with the macro of c_face_loop?
If I want to access some faces of cell, which method can be used??
Thanks.


All times are GMT -4. The time now is 15:56.