|
[Sponsors] |
September 21, 2012, 07:18 |
How to monitor a CEL expression
|
#1 |
New Member
L
Join Date: Mar 2011
Posts: 6
Rep Power: 15 |
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 |
|
September 22, 2012, 02:56 |
|
#2 |
New Member
|
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.
|
|
September 24, 2012, 22:55 |
|
#3 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
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.
|
|
Tags |
cel expression, monitoring variables |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a limit for CEL expression length? | fml2 | CFX | 2 | March 27, 2012 03:20 |
CEL expression | vmlxb6 | CFX | 1 | March 18, 2011 07:39 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
Lift, Drag Vs time chart,calculations | Jamesd69climber | CFX | 8 | February 17, 2005 18:23 |