Examples
Expression
Comments
Operators
q = 5*2.14/ln(10)
Logicals
t0=5 q = (time > t0) ? 1 : 5
If time is greater than 5 seconds, q = 1, otherwise q =5
r = sqrt( x*x+y*y+z*z)
q = (time<5) ? 1 : ((r<0.1) ? 2+time^2 : 2)
Nested conditional statement
Integration and Averaging
q = 0.5*flow.pow@rotor
Flow Module Integrated power at the boundary named “rotor”
q = 0.5*flow.pow@patch.rotor
Same as above, but “rotor” is also a volume name
q = 0.5*flow.p@volume.rotor
Flow Module average power in the volume named “rotor”
A practical example is shown for adding a Fan curve as an interface condition.
Was this helpful?