CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

What's the mean of UDF FUNCTION

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

LinkBack Thread Tools Display Modes
Old   March 24, 2010, 04:21
Default What's the mean of UDF FUNCTION
New Member
xinyu zhao
Join Date: Sep 2009
Posts: 19
Rep Power: 10
zhaoxinyu is on a distinguished road
Hi, Can you tell me the mean of MAX() and MIN() in this expression?

alpha = M_PI/2. - acos(MAX(-1.,MIN(1.,NV_DOT(normal,p->state.V)/MAX(NV_MAG(p->state.V),DPM_SMALL))));
zhaoxinyu is offline   Reply With Quote

Old   March 24, 2010, 10:42
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 9
TDi is on a distinguished road
x if x>y
y if y>x

y if x>y
x if y>x
TDi is offline   Reply With Quote

Old   March 24, 2010, 11:35
Senior Member
Join Date: Mar 2009
Posts: 102
Rep Power: 10
MASOUD is on a distinguished road
MAX is maximum and MIN is minimum.

Actually this function compares its arguments and return the maximum/minimum value.
MASOUD is offline   Reply With Quote


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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00

All times are GMT -4. The time now is 12:31.