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 |
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.
|
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:58. |