|
[Sponsors] |
what's the udf name to check the availability of face value of velocity? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 22, 2015, 21:51 |
what's the udf name to check the availability of face value of velocity?
|
#1 |
Member
Peter Aestas
Join Date: Dec 2013
Posts: 64
Rep Power: 13 |
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? |
|
May 23, 2015, 06:02 |
|
#2 | |
Member
Peter Aestas
Join Date: Dec 2013
Posts: 64
Rep Power: 13 |
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:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help! Delete the UDM codes in the UDF | Messi | Fluent UDF and Scheme Programming | 2 | January 28, 2014 10:01 |
help with UDF for contact angle based on contact line velocity | gandesk | Fluent UDF and Scheme Programming | 14 | October 29, 2012 14:58 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
[Netgen] Import netgen mesh to OpenFOAM | hsieh | OpenFOAM Meshing & Mesh Conversion | 32 | September 13, 2011 06:50 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |