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

CFD-Post getValue correct syntax

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2015, 08:00
Default CFD-Post getValue correct syntax
  #1
New Member
 
Join Date: Nov 2014
Posts: 7
Rep Power: 12
joha is on a distinguished road
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;
Now I want to get the Value from the expressions block. For example "Current Time Step":

Code:
LIBRARY:
  CEL:
    EXPRESSIONS:
      Accumulated Time Step = 24409
      Current Time Step = 24409
      ..........
    END
  END
END
I tried:
Code:
!$test= getValue("LIBRARY:CEl:EXPRESSIONS", "Current Time Step"); !print $test;
but this gives me an error: "object....was not found in the ccl database". In the help I found the follwing example
Code:
! $bladecount = getValue(“/GEOMETRY:GEOMETRY/MACHINE DATA:MACHINE DATA”,”Bladeset Count”);
But I don't get what the correct syntax for my case is.
Can someone give me a hint?

Thanks in advance!
joha is offline   Reply With Quote

Old   March 12, 2015, 09:58
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Your example uses CEl, nor CEL
Opaque is offline   Reply With Quote

Old   March 12, 2015, 11:27
Default
  #3
New Member
 
Join Date: Nov 2014
Posts: 7
Rep Power: 12
joha is on a distinguished road
.ok. Thanks for the hint, but what is the difference?
joha is offline   Reply With Quote

Old   March 12, 2015, 12:20
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
what do you mean by `what is the difference`?

CEL is not the same as CEl, is it ? the software is case sensitive
Opaque is offline   Reply With Quote

Old   March 12, 2015, 13:37
Default
  #5
New Member
 
Join Date: Nov 2014
Posts: 7
Rep Power: 12
joha is on a distinguished road
ah ok now I got what you meant!

Code:
!$test= getValue("LIBRARY:CEL:EXPRESSIONS", "Current Time Step");
gives the same result.
joha is offline   Reply With Quote

Old   March 13, 2015, 11:08
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Try the following:

!$test= getValue("/LIBRARY/CEL/EXPRESSIONS", "Current Time Step");
Opaque is offline   Reply With Quote

Old   March 13, 2015, 14:07
Default
  #7
New Member
 
Join Date: Nov 2014
Posts: 7
Rep Power: 12
joha is on a distinguished road
Hi Opaque,

thanks for your help! It's working now!
joha is offline   Reply With Quote

Reply


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
[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


All times are GMT -4. The time now is 14:48.