CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

what's the udf name to check the availability of face value of velocity?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2015, 21:51
Default 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
aestas is on a distinguished road
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 is offline   Reply With Quote

Old   May 23, 2015, 06:02
Default
  #2
Member
 
Peter Aestas
Join Date: Dec 2013
Posts: 64
Rep Power: 13
aestas is on a distinguished road
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 View Post
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 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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