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

Reading a variable at two different times instants using CFX expression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2022, 07:29
Default Reading a variable at two different times instants using CFX expression
  #1
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
What is the best way in performing such an activity?
Example;
Expression A reads CO at current time,
Probe(CO.Density)@Point 1

How can I read the above in expression B at for instance 1 or more time steps later? This will allow me to compare expression A v B. Thanks.
visitor is offline   Reply With Quote

Old   September 10, 2022, 21:40
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,728
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
There is no fully supported way in CFX to do this. It is requested all the time.

But you have two unsupported methods to do it:
1) Write a user fortran routine to do it.
2) Using TRANS_LOOP - search for it in the CFX forum.

But don't forget unsupported means it might not work, it could give unexpected results and it could completely fail.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   September 11, 2022, 07:05
Default
  #3
Senior Member
 
AH
Join Date: Apr 2014
Posts: 282
Rep Power: 13
visitor is on a distinguished road
Thanks ghorrocks, don't know fortran just C++. It's interesting that we are having these discussions and I hope CFX can do something about this through expression language.
visitor is offline   Reply With Quote

Old   September 11, 2022, 12:35
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,815
Rep Power: 32
Opaque will become famous soon enough
Let us say, Ansys adds support for it w/o knowing your intended use and later you realized that was not enough. What then?

Perhaps if you share the intended use, someone in the forum could explain how to do it using existing features.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque 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
Illegal cell label -1, fluent3DMeshToFoam BenGher OpenFOAM 7 October 10, 2023 00:02
How to define a static aditional variable in CFX cardioCFD CFX 8 January 22, 2018 04:58
Evaluating expression at a specific location in CFX Pre gotang CFX 4 August 17, 2017 10:33
Modify SST kw model in CFX Tingyun YIN CFX 6 May 12, 2017 06:44
CFX Expression Language help JuPa CFX 3 April 21, 2013 07:46


All times are GMT -4. The time now is 15:31.