CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   what's the udf name to check the availability of face value of velocity? (https://www.cfd-online.com/Forums/fluent-udf/153327-whats-udf-name-check-availability-face-value-velocity.html)

aestas May 22, 2015 20:51

what's the udf name to check the availability of face value of velocity?
 
Hello friends,
in my udf, i need to loop the face thread on the boundary, and use the face value of velocity F_U(f,t), F_V(f,t).

However, once i used these two macros, error occurred in fluent.
I guess some of the value on the boundary is not available, so i want to use a check at the beginning. Just like to check the availability of density:
if(THREAD_STORAGE(t,SV_DENSITY)!=NULL)
But i could not find the velocity udf similar to SV_DENSITY to check the velocity.
Anybody could help me?

aestas May 23, 2015 05:02

Now i used this udf, no error occurred, but i am not sure whether this is right.
if(THREAD_STORAGE(t,SV_V)!=NULL&&THREAD_STORAGE(t, SV_U)!=NULL)
{
Ur_F=F_V(f,t);
Uz_F=F_U(f,t);
}
else
{
Ur_F=C_V(c0,t0);
Uz_F=C_U(c0,t0);
}

Quote:

Originally Posted by aestas (Post 547394)
Hello friends,
in my udf, i need to loop the face thread on the boundary, and use the face value of velocity F_U(f,t), F_V(f,t).

However, once i used these two macros, error occurred in fluent.
I guess some of the value on the boundary is not available, so i want to use a check at the beginning. Just like to check the availability of density:
if(THREAD_STORAGE(t,SV_DENSITY)!=NULL)
But i could not find the velocity udf similar to SV_DENSITY to check the velocity.
Anybody could help me?



All times are GMT -4. The time now is 05:43.