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

Export transient data of a plane as .csv

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ShbnmM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2019, 21:46
Default Export transient data of a plane as .csv
  #1
New Member
 
Join Date: Nov 2019
Posts: 2
Rep Power: 0
ShbnmM is on a distinguished road
Dear all,
I have simulated a transient case and now in cfx-post, I need the data of a specific plane for each time steps, I have the .trn files but I need .csv.
In fact it is easy to get time series of a point or .csv of the plane in just certain time, but I want to get velocity and temperature data of that plane for different time steps as .csv .
I found out I should do by sessions and I have prepared *.cse and I added following lines to get data, but I can just get the .csv file of the last time step.

Thanks in advance for the help,

! $List=getValue(“DATA READER”,”Timestep List”);
! print “$List \n”;
! @Wert=split(/, /,$List);
! foreach $List(@Wert){
> load timestep = $List
! print “calculating for TIMESTEP $List \n”;
! ($time, $timeunits) = evaluate(“Time”);
RAJDEEP likes this.
ShbnmM is offline   Reply With Quote

Old   November 7, 2019, 16:22
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I suspect then you have not put the export to csv command inside your loop over the trn files.

I recommend you record a session file which does the first couple of csv exports. So load the first the trn file, export the csv, load the second trn file, export the csv file. Then you can see the syntax of all these commands and that might help you generate it.

A final point - I am not a perl user so I don't use the perl operations to do looping and other programming functions. I prefer to use python to generate a session file which is pure CFD-Post session file with no perl - all the looping, conditional stuff and other programming operations are done in python. It also makes checking the session file much easier in my humble opinion.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   November 7, 2019, 20:35
Default
  #3
New Member
 
Join Date: Nov 2019
Posts: 2
Rep Power: 0
ShbnmM is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
I suspect then you have not put the export to csv command inside your loop over the trn files.

I recommend you record a session file which does the first couple of csv exports. So load the first the trn file, export the csv, load the second trn file, export the csv file. Then you can see the syntax of all these commands and that might help you generate it.

A final point - I am not a perl user so I don't use the perl operations to do looping and other programming functions. I prefer to use python to generate a session file which is pure CFD-Post session file with no perl - all the looping, conditional stuff and other programming operations are done in python. It also makes checking the session file much easier in my humble opinion.
Thank you so much for your kind reply.
I think it is better that I use Python which sounds nice for preparing the *.cse and I will try to get that data.
ShbnmM is offline   Reply With Quote

Reply

Tags
cfx-post, session


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
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 20:06
export of the transient results from CFX sidharath CFX 7 May 20, 2017 06:12
Data export from transient run in CFX Turbulent CFX 1 June 16, 2015 19:09
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
Transient data save in plane Vadims.geza OpenFOAM 2 April 14, 2010 06:15


All times are GMT -4. The time now is 10:59.