CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 24, 2010, 04:21
Default What's the mean of UDF FUNCTION
  #1
New Member
 
xinyu zhao
Join Date: Sep 2009
Posts: 19
Rep Power: 7
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
Default
  #2
TDi
Member
 
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 7
TDi is on a distinguished road
MAX(x,y)=
x if x>y
y if y>x

MIN(x,y)=
y if x>y
x if y>x
TDi is offline   Reply With Quote

Old   March 24, 2010, 11:35
Default
  #3
Senior Member
 
MASOUD
Join Date: Mar 2009
Posts: 102
Rep Power: 8
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

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
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 01:18.