CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

export expression from CFX post

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2013, 08:55
Default export expression from CFX post
  #1
New Member
 
oliver warlow
Join Date: Jun 2013
Posts: 4
Rep Power: 12
owarlow is on a distinguished road
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
owarlow is offline   Reply With Quote

Old   August 19, 2013, 09:37
Default
  #2
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
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.
Lance is offline   Reply With Quote

Old   August 19, 2013, 10:36
Default
  #3
New Member
 
oliver warlow
Join Date: Jun 2013
Posts: 4
Rep Power: 12
owarlow is on a distinguished road
Thanks, I think saving a csv from a table will be the most useful one for me.
cheers
oli
owarlow is offline   Reply With Quote

Old   April 24, 2014, 19:30
Default Querry for CFX post.
  #4
New Member
 
Manpreet
Join Date: Jan 2014
Posts: 14
Rep Power: 12
manpreet is on a distinguished road
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
manpreet is offline   Reply With Quote

Old   November 12, 2019, 10:17
Default Exporting Node-Values or Point-Values in cfx5post
  #5
New Member
 
Malte
Join Date: Nov 2017
Posts: 20
Rep Power: 8
stud-many is on a distinguished road
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)
stud-many is offline   Reply With Quote

Old   November 12, 2019, 16:43
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,692
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Reply

Tags
cfx, export, expressions, parameters

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
how to export icem mesh to cfx? Michael CFX 1 May 3, 2008 13:35
Expression in cfx selim CFX 13 September 5, 2007 13:09


All times are GMT -4. The time now is 06:34.