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

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

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 22, 2015, 20: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: 51
Rep Power: 4
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, 05:02
Default
  #2
Member
 
Peter Aestas
Join Date: Dec 2013
Posts: 51
Rep Power: 4
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

Thread Tools
Display Modes

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 On
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
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
Import netgen mesh to OpenFOAM hsieh Open Source Meshers: Gmsh, Netgen, CGNS, ... 32 September 13, 2011 05:50
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11


All times are GMT -4. The time now is 23:21.