|
[Sponsors] |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#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.
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,816
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 |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a limit for CEL expression length? | fml2 | CFX | 2 | March 27, 2012 02:20 |
CEL expression | vmlxb6 | CFX | 1 | March 18, 2011 06:39 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 18:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 06:25 |
Lift, Drag Vs time chart,calculations | Jamesd69climber | CFX | 8 | February 17, 2005 17:23 |