|
[Sponsors] |
June 29, 2012, 00:37 |
ANSYS CFD-Post scripting - Extract Results
|
#1 |
New Member
E Swery
Join Date: Jun 2012
Posts: 2
Rep Power: 0 |
I need to run a large number of simulations based on very similar conditions, with slightly different meshes.
I have managed to create the python script that sets up each simulation and creates the solution, however, I am not sure what code to use in order to extract information from the results. What I want, is the Mass Flow on outlet for example (which, in the GUI is obtained through Calculators --> Function Calculator) Is there a way to extract this value without accessing the GUI? (I don't have much experience with ANSYS Scripting / Python, so any help would be great). Thanks |
|
June 29, 2012, 08:58 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144 |
Simple: put a monitor point in the simulation to return the mass flow on your outlet. Then use the cfx5mon command to get the data from the command line (or in your case a python script)
|
|
July 1, 2012, 22:13 |
|
#3 |
New Member
E Swery
Join Date: Jun 2012
Posts: 2
Rep Power: 0 |
Great, thanks for that.
I have actually found an alternative which is equivalent to using the function calculator if the following is saved as batchtest.cse in the same folder as the .res file: ! $filePath = getValue("DATA READER","Current Results File"); ! $Pout = massFlow("inlet"); ! print "\nPressure at inlet is $Pout\n"; it can then be executed in cmd using: cfx5post -batch batchtest.cse runName_001.res (ensure that cfx5post is added to the current path) that way, any of the 'Function Calculator' options can be executed by changing the middle line |
|
May 13, 2016, 10:48 |
|
#4 |
New Member
Suyesh
Join Date: Mar 2016
Posts: 9
Rep Power: 10 |
Hi,
I have successfully obtained average area pressure values with areaAve("Total Pressure",$surface); Now, I want to get the torque value on a surface. what command should i use? I have tried Torque_X($surface); in all possible cases and without the underscore as well. I used the variable for the surface as I have multiple surfaces to get the reading from. Cheers! |
|
May 13, 2016, 11:41 |
|
#5 | |
New Member
Suyesh
Join Date: Mar 2016
Posts: 9
Rep Power: 10 |
Quote:
torque($surface, x); worked !!! The syntax is listed in http://orange.engr.ucdavis.edu/Docum.../CFX/fpref.pdf |
||
July 21, 2017, 12:24 |
Thanks
|
#6 | |
New Member
Sunil
Join Date: Aug 2016
Posts: 7
Rep Power: 10 |
Thank you, this command helped me big time.
Quote:
|
||
Tags |
cfd, cfx, python, script, scripting |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wind turbine simulation, Ansys Post results question | Laions | CFX | 7 | September 20, 2011 06:13 |
How to *Get results at a given location (in active coordinate system) in Ansys? | Salsaddict | ANSYS | 0 | July 18, 2010 15:23 |
validation of CFD results | andy | FLUENT | 0 | June 13, 2007 14:55 |
Free UK seminars: ANSYS CFD software | Gavin Butcher | CFX | 0 | November 23, 2004 10:13 |
Impact of Humidity on CFD Results | Jerry | Main CFD Forum | 2 | January 26, 2004 15:39 |