|
[Sponsors] |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,074
Rep Power: 134 ![]() ![]() ![]() ![]() |
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)
|
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Suyesh
Join Date: Mar 2016
Posts: 9
Rep Power: 8 ![]() |
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! |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
New Member
Suyesh
Join Date: Mar 2016
Posts: 9
Rep Power: 8 ![]() |
Quote:
torque($surface, x); worked !!! The syntax is listed in http://orange.engr.ucdavis.edu/Docum.../CFX/fpref.pdf |
||
![]() |
![]() |
![]() |
![]() |
#6 | |
New Member
Sunil
Join Date: Aug 2016
Posts: 7
Rep Power: 7 ![]() |
Thank you, this command helped me big time.
Quote:
|
||
![]() |
![]() |
![]() |
Tags |
cfd, cfx, python, script, scripting |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
wind turbine simulation, Ansys Post results question | Laions | CFX | 7 | September 20, 2011 05:13 |
How to *Get results at a given location (in active coordinate system) in Ansys? | Salsaddict | ANSYS | 0 | July 18, 2010 14:23 |
validation of CFD results | andy | FLUENT | 0 | June 13, 2007 13:55 |
Free UK seminars: ANSYS CFD software | Gavin Butcher | CFX | 0 | November 23, 2004 09:13 |
Impact of Humidity on CFD Results | Jerry | Main CFD Forum | 2 | January 26, 2004 14:39 |