CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   export expression from CFX post (https://www.cfd-online.com/Forums/cfx/122411-export-expression-cfx-post.html)

owarlow August 19, 2013 08:55

export expression from CFX post
 
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

Lance August 19, 2013 09:37

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);

Or make a table with your CEL expression, save as .csv, done.

owarlow August 19, 2013 10:36

Thanks, I think saving a csv from a table will be the most useful one for me.
cheers
oli

manpreet April 24, 2014 19:30

Querry for CFX post.
 
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

stud-many November 12, 2019 10:17

Exporting Node-Values or Point-Values in cfx5post
 
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)

ghorrocks November 12, 2019 16:43

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.


All times are GMT -4. The time now is 20:16.