CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   How to monitor a CEL expression (http://www.cfd-online.com/Forums/cfx/107248-how-monitor-cel-expression.html)

Luca L September 21, 2012 06:18

How to monitor a CEL expression
 
Hi All,

I'm trying to monitor a CEL expression (drag) which varies within the domain.
I've set-up additional variable and monitor point as following:

ADDITIONAL VARIABLE: $Drag1
Option = Definition
Tensor Type = SCALAR
Units = [ ]
Variable Type = Unspecified
END

FLOW:
DOMAIN: domain1
FLUID MODELS:
ADDITIONAL VARIABLE: $Drag1
Additional Variable Value = $fDrag
Option = Algebraic Equation
END

MONITOR POINT: $MonitorDrag
Cartesian Coordinates =
X = [m]
Y = [m]
Z = [m]
Option = Cartesian Coordinates
Output Variables List = $fDrag
END


where $fDrag is the expression for the drag, initialised and calculated in Perl.

The problem is $fDrag is inside of a loop that produces $fDrag1, $fDrag2... $fDragn corresponding to the number of turbines, so this is a reason for errors.

Could anybody help on this?
Thanks.

Luca

mp121209 September 22, 2012 01:56

To monitor a variable you wouldn't use a variable expression, use expression one. In monitor point, select option expression, and enter your expression for the drag.

ghorrocks September 24, 2012 21:55

Do you want your perl to be evaluated once at the start of the simulation, or continuously during the run as it progresses? Perl is only evaluated once at the start of the run so only the first option is possible.


All times are GMT -4. The time now is 22:32.