|
[Sponsors] |
March 12, 2015, 08:00 |
CFD-Post getValue correct syntax
|
#1 |
New Member
Join Date: Nov 2014
Posts: 7
Rep Power: 12 |
Hi,
I'm trying to extrac a value from an expression with the getValue command in command editor. here is a working code example: Code:
!$simulationtime = getValue("DATA READER", "Current Timevalue"); !print $simulationtime; Code:
LIBRARY: CEL: EXPRESSIONS: Accumulated Time Step = 24409 Current Time Step = 24409 .......... END END END Code:
!$test= getValue("LIBRARY:CEl:EXPRESSIONS", "Current Time Step"); !print $test; Code:
! $bladecount = getValue(“/GEOMETRY:GEOMETRY/MACHINE DATA:MACHINE DATA”,”Bladeset Count”); Can someone give me a hint? Thanks in advance! |
|
March 12, 2015, 09:58 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Your example uses CEl, nor CEL
|
|
March 12, 2015, 11:27 |
|
#3 |
New Member
Join Date: Nov 2014
Posts: 7
Rep Power: 12 |
.ok. Thanks for the hint, but what is the difference?
|
|
March 12, 2015, 12:20 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
what do you mean by `what is the difference`?
CEL is not the same as CEl, is it ? the software is case sensitive |
|
March 12, 2015, 13:37 |
|
#5 |
New Member
Join Date: Nov 2014
Posts: 7
Rep Power: 12 |
ah ok now I got what you meant!
Code:
!$test= getValue("LIBRARY:CEL:EXPRESSIONS", "Current Time Step"); |
|
March 13, 2015, 11:08 |
|
#6 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Try the following:
!$test= getValue("/LIBRARY/CEL/EXPRESSIONS", "Current Time Step"); |
|
March 13, 2015, 14:07 |
|
#7 |
New Member
Join Date: Nov 2014
Posts: 7
Rep Power: 12 |
Hi Opaque,
thanks for your help! It's working now! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Displaying solid domains in CFD Post without meshing them. | hda | ANSYS Meshing & Geometry | 5 | October 24, 2016 10:26 |
Plotting Radial Velocity and Tangential Velocity in CFD Post | ashtonJ | CFX | 5 | July 13, 2015 03:49 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
deviation in calculated force between CFX solver and CFD post | murx | CFX | 2 | April 9, 2014 21:03 |
User CEL Function and CFD Post | chastain | CFX | 4 | September 24, 2013 14:58 |