|
[Sponsors] |
November 6, 2019, 22:46 |
Export transient data of a plane as .csv
|
#1 |
New Member
Join Date: Nov 2019
Posts: 2
Rep Power: 0 |
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”); |
|
November 7, 2019, 17:22 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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. |
|
November 7, 2019, 21:35 |
|
#3 | |
New Member
Join Date: Nov 2019
Posts: 2
Rep Power: 0 |
Quote:
I think it is better that I use Python which sounds nice for preparing the *.cse and I will try to get that data. |
||
Tags |
cfx-post, session |
|
|
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 21:06 |
export of the transient results from CFX | sidharath | CFX | 7 | May 20, 2017 07:12 |
Data export from transient run in CFX | Turbulent | CFX | 1 | June 16, 2015 20:09 |
[General] 2 datas on one plot | Akuji | ParaView | 46 | December 1, 2013 15:06 |
Transient data save in plane | Vadims.geza | OpenFOAM | 2 | April 14, 2010 07:15 |