|
[Sponsors] |
March 24, 2010, 04:21 |
What's the mean of UDF FUNCTION
|
#1 |
New Member
xinyu zhao
Join Date: Sep 2009
Posts: 19
Rep Power: 17 |
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)))); |
|
March 24, 2010, 10:42 |
|
#2 |
Member
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 16 |
MAX(x,y)=
x if x>y y if y>x MIN(x,y)= y if x>y x if y>x |
|
March 24, 2010, 11:35 |
|
#3 |
Senior Member
MASOUD
Join Date: Mar 2009
Posts: 102
Rep Power: 17 |
MAX is maximum and MIN is minimum.
Actually this function compares its arguments and return the maximum/minimum value. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15: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 01:35 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |