CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CFX (
-   -   export expression from CFX post (

owarlow August 19, 2013 08:55

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


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.


!$outfile = "tmp.txt";
!open(OUT, ">$outfile");
!$nodes = count("Default Domain");
!print OUT $nodes;

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.

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

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