-
-
March 15, 2021 at 1:22 pm
b1othmane
SubscriberI would like to automatically export values of three expressions that depend on time in a transient CFX simulation. These expressions use velocity variables (not defined in CFX-pre). Is there a way to do this because it is very time-consuming (I feel like I'm a slave ).n -
March 15, 2021 at 1:48 pm
Stephen Orlando
Ansys EmployeeThe easiest thing to do is create Monitors of these expressions in CFX-Pre, and then export the monitor data from the CFX Solver Manager.nIf you've already run the simulation, you'll need to use Perl Power Syntax to write a short script that loops over the timesteps and appends the expression values to a text file. Please see the documentation here for more info and examples: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v211/en/cfx_ref/i1308847.html.nTo get the CEL command that changes timestep, record a session file and change the timestep, then examine the session (.cse) created in a text editor. You'll need to incorporate this into your script.nSteven -
March 15, 2021 at 1:52 pm
b1othmane
SubscriberCFX-Pre can't recognise my expression, as it uses solution variables (velocity u, v and w). So, I'm afraid your solution can't be applied in this case nAny alternatives ?n -
March 15, 2021 at 3:18 pm
b1othmane
SubscriberThe easiest thing to do is create Monitors of these expressions in CFX-Pre, and then export the monitor data from the CFX Solver Manager.If you've already run the simulation, you'll need to use Perl Power Syntax to write a short script that loops over the timesteps and appends the expression values to a text file. Please see the documentation here for more info and examples: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v211/en/cfx_ref/i1308847.html.To get the CEL command that changes timestep, record a session file and change the timestep, then examine the session (.cse) created in a text editor. You'll need to incorporate this into your script.Stevehttps://forum.ansys.com/discussion/comment/110864#Comment_110864
CFX-Pre can't recognise my expression, as it uses solution variables (velocity u, v and w). So, I'm afraid your solution can't be applied in this case ?nAny alternatives ?n -
March 15, 2021 at 3:41 pm
Stephen Orlando
Ansys EmployeeWhat's your expression? You'll need to use Velocity u instead velocity u. (Capital letter is needed for v in Velocity).n -
March 15, 2021 at 6:20 pm
b1othmane
SubscriberI've used Velocity u with the capital letter. I find a problem with X, Y (the cartesian coordinates). It seems that CFX-Solver doesn't recognise them. It doesn't run and I get this message error The following unrecognised names were referenced:X, Yn -
March 15, 2021 at 6:22 pm
b1othmane
SubscriberWhat's your expression? You'll need to use Velocity u instead velocity u. (Capital letter is needed for v in Velocity).https://forum.ansys.com/discussion/comment/110899#Comment_110899
I have a lot of intermediate expressions, so I won't be able to show them all. I've used Velocity u with the capital letter. nI find a problem with X, Y (the cartesian coordinates). It seems that CFX-Solver doesn't recognise them. It doesn't run and I get this message error 'The following unrecognised names were referenced: X, Y'n -
March 15, 2021 at 7:13 pm
DrAmine
Ansys EmployeeMake use of Algebraic expression based additional variable. They will allow use to use variables inside other expressions.nn -
March 15, 2021 at 8:26 pm
b1othmane
SubscriberMake use of Algebraic expression based additional variable. They will allow use to use variables inside other expressions.https://forum.ansys.com/discussion/comment/110941#Comment_110941
Should I create a variable in the name of X, Y and Z ? CFX-pre tells me theses objects already exist. I think I didn't understand well your answer.n -
March 16, 2021 at 12:42 am
b1othmane
SubscriberMake use of Algebraic expression based additional variable. They will allow use to use variables inside other expressions.https://forum.ansys.com/discussion/comment/110941#Comment_110941
And also, I have this error : 'The function name 'areaInt' is not recognised.'n -
March 16, 2021 at 12:59 pm
DrAmine
Ansys EmployeeThere are CEL function which are not available in Pre or Solver or there you require the additional variable trick: 15.5. Quantitative Function List (ansys.com)nI can use areaInt inside CFX-Pre and Solve.Can you copy past the the expressions you are trying to use in CFX-Pre from the Expression Editor.n -
March 16, 2021 at 1:04 pm
b1othmane
SubscriberThank you DrAmine for your quick responses. I'll try your recommandations and then give you an update.nThere are CEL function which are not available in Pre or Solver or there you require the additional variable trick: 15.5. Quantitative Function List (ansys.com)I can use areaInt inside CFX-Pre and Solve. Can you copy past the the expressions you are trying to use in CFX-Pre from the Expression Editor.https://forum.ansys.com/discussion/comment/111044#Comment_111044
n -
March 16, 2021 at 4:51 pm
DrAmine
Ansys EmployeeYou are welcome!n -
March 21, 2021 at 12:32 pm
b1othmane
SubscriberThe easiest thing to do is create Monitors of these expressions in CFX-Pre, and then export the monitor data from the CFX Solver Manager.If you've already run the simulation, you'll need to use Perl Power Syntax to write a short script that loops over the timesteps and appends the expression values to a text file. Please see the documentation here for more info and examples: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v211/en/cfx_ref/i1308847.html.To get the CEL command that changes timestep, record a session file and change the timestep, then examine the session (.cse) created in a text editor. You'll need to incorporate this into your script.Stevehttps://forum.ansys.com/discussion/comment/110864#Comment_110864
Thank you Steve. I have finally used a Perl Power Syntax script to make a timestep loop that exports a table containing my expressions to a csv file (a file for each timestep) that I combine thereafter. nP.S. I didn't manage to do it using monitors. n -
March 22, 2021 at 10:31 am
DrAmine
Ansys EmployeeYou can even extract monitors from a finished run. You can try the cfx5dfile command and flags read-monitor. That can be extended with perl too.n
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2524
-
2066
-
1279
-
1096
-
457
© 2023 Copyright ANSYS, Inc. All rights reserved.