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

How make a udf file tangential velocity?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2018, 01:17
Unhappy How make a udf file tangential velocity?
  #1
New Member
 
LimDongHyun
Join Date: Jun 2018
Posts: 1
Rep Power: 0
DongHyun is on a distinguished road
sorry about my native langauge is not english

i study tornado(Diwakar Natarajan's paper). I want to see resault with fluent
my question is how make a udf file tangential velocity?

like this v_(R_0)

(H and R is fixed number and U is radial velocity)


AND i make radial veloicity udf code. is it correct?
#define B 1./7.
#define zone 0.25
#define u 10
DEFINE_PROFILE(inlet_x_velocity, t, i)
{
real x[ND_ND]; /* variable declarations */
real z;
//real r0 , h0 ;
face_t f;

//r0 = 1.52;
//h0 = 0.41;


begin_f_loop(f, t)
{
F_CENTROID(x, f, t);
z = x[2];
F_PROFILE(f, t, i) = u * pow(z/ zone, B);

}
end_f_loop(f, t)
}

thank you for read this message and help me please
DongHyun is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


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