CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

How to monitor a CEL expression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2012, 07:18
Default How to monitor a CEL expression
  #1
New Member
 
L
Join Date: Mar 2011
Posts: 6
Rep Power: 15
Luca L is on a distinguished road
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
Luca L is offline   Reply With Quote

Old   September 22, 2012, 02:56
Default
  #2
New Member
 
Trần Đình Thắng
Join Date: Mar 2012
Location: Moscow Russia, Hanoi Vietnam
Posts: 24
Rep Power: 14
mp121209 is on a distinguished road
Send a message via ICQ to mp121209 Send a message via Yahoo to mp121209 Send a message via Skype™ to mp121209
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.
mp121209 is offline   Reply With Quote

Old   September 24, 2012, 22:55
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Reply

Tags
cel expression, monitoring variables


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 03:36.