|
[Sponsors] |
August 19, 2013, 09:55 |
export expression from CFX post
|
#1 |
New Member
oliver warlow
Join Date: Jun 2013
Posts: 4
Rep Power: 13 |
Hi,
I want to be able to export (to .csv) single values calculated using CEL expressions in CFX post. For example if I have the following expression: Force1 = force_z_Coord1()@Body1 I would like to export just the value of 'Force1'. If i use export in CFX post I seem to only be able to export a variable at a location i.e. it will be exported for every cell of the mesh on the location 'Body1'. I assume i must be missing something quite simple where I can export single parameter values? thanks |
|
August 19, 2013, 10:37 |
|
#2 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
You should be able to modify this PERL script to do what you want.
It exports 'count()@Default Domain' to a .txt file, just copy/paste it into the command editor. Code:
!$outfile = "tmp.txt"; !open(OUT, ">$outfile"); !$nodes = count("Default Domain"); !print OUT $nodes; !close(OUT); |
|
August 19, 2013, 11:36 |
|
#3 |
New Member
oliver warlow
Join Date: Jun 2013
Posts: 4
Rep Power: 13 |
Thanks, I think saving a csv from a table will be the most useful one for me.
cheers oli |
|
April 24, 2014, 20:30 |
Querry for CFX post.
|
#4 |
New Member
Manpreet
Join Date: Jan 2014
Posts: 14
Rep Power: 13 |
Hello everyone,
I need help for plotting cross channel plots of absolute flow angle in ANSYS CFX Post. Also how to create plot for pressure ratio vs blade span (from hub to shroud tip). Thanks manpreet_singh_er@yahoo.co.in |
|
November 12, 2019, 11:17 |
Exporting Node-Values or Point-Values in cfx5post
|
#5 |
New Member
Malte
Join Date: Nov 2017
Posts: 20
Rep Power: 9 |
Hey there. I'm trying to use the solution of a RANS-Calculation (TRACE) as an initial-solution for an LES-Case (OpenFOAM). As I am sort of experienced in ANSYS I'm looking for a way to export the TRACE-solution (cgns) via cfx5post to OpenFOAM.
As for now, I'm calling cfx5post in batch-mode to import the Nodes from the FOAM-Mesh, interpolating the results on those points and exporting variable-values into *.csv-files. The LES-Case is relativlely large and cfx5post-point-objects are unnecessary complicated. I was scripting this process and it works, but it takes approximately 40 hours for the computer to process all nodepoints. Does anybody have a better idea to do this? Is there a way to export ALL NodeValues in an ASCII-file via cfx5post (then I'd programm the 3D-Interpolation myself) |
|
November 12, 2019, 17:43 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,891
Rep Power: 144 |
Why can't you write a reading in OpenFoam to read the file in directly and skip CFD-Post entirely?
But answering your question directly: If you want to read this into CFD-Post then CGNS is one option - have a look at the CGNS options as they can affect results. Also, CFD-Post used to have support for custom file readers where it hooks into a user custom C++ file. I just looked in the documentation and I can't see it any more... has it been removed? Finally: the high-end post processing package in the ANSYS world is Ensight. You might have access to it. It has much more import and export options than CFD-Post so might be a better tool to do this conversion. Alternately other high-end post processing tools like Fieldview and Tecplot would also be worth considering.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
Tags |
cfx, export, expressions, parameters |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
how to export icem mesh to cfx? | Michael | CFX | 1 | May 3, 2008 14:35 |
Expression in cfx | selim | CFX | 13 | September 5, 2007 14:09 |