|
[Sponsors] |
Exporting Velocity.lamdba2 for entire domain for all timesteps |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 14, 2023, 16:04 |
Exporting Velocity.lamdba2 for entire domain for all timesteps
|
#1 |
New Member
Eva Liu
Join Date: Nov 2022
Posts: 9
Rep Power: 4 |
Is there a way to export data for all the nodes for all timesteps in a transient simulation? I'm looking to either export velocity.lamda2, or the vortex core region for all the timesteps of my run.
I can do it for one timestep pretty easily, but don't want to have to do it manually for all my timesteps |
|
November 14, 2023, 18:07 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
There are three main ways to do it:
* You can automate CFD-Post using a session file. Record a session file of exporting one time step, and then edit the session file with a text editor to export all the other time steps. * You can export files with output settings in CFX-Pre. * You can convert transient results files into several format using the Solver Manager, in the tools\export menu item.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
November 14, 2023, 18:14 |
|
#3 |
New Member
Eva Liu
Join Date: Nov 2022
Posts: 9
Rep Power: 4 |
Which of these options can give me the data in a .csv or excel file?
|
|
November 14, 2023, 18:18 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
The first one can give you a CSV file. None of them can give you an excel file.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
November 14, 2023, 18:39 |
|
#5 |
New Member
Eva Liu
Join Date: Nov 2022
Posts: 9
Rep Power: 4 |
I've recorded a session file, could you give more detail on how to edit it? I wasn't able to find a tutorial online
|
|
November 14, 2023, 18:43 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
The format of the session file is pretty obvious. Grab the bit which loads the time step and exports it and copy/paste it a few times, and update the time step number and file name each time.
I usually write a python program to generate these scripts because then you can get it to repeat thousands of times (if you have that many steps).
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
November 14, 2023, 19:03 |
|
#7 |
New Member
Eva Liu
Join Date: Nov 2022
Posts: 9
Rep Power: 4 |
There isn't a play option under the Session tab for CFD-Post, and when I open up a new CFD-Post not from my work bench that has the play option I can't open the file because the variables and location don't exist. What should I be doing differently?
|
|
November 14, 2023, 20:54 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Yes, you are going to have to run CFD-Post outside of workbench. What do you mean "the variables and location do not exist"? You are going to have to extract the CFX data out of the workbench data structure. Look in the directory structure workbench has created to find it.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
November 16, 2023, 20:55 |
|
#9 |
New Member
Eva Liu
Join Date: Nov 2022
Posts: 9
Rep Power: 4 |
I'm able to edit the session file to include looping through the different timesteps, but I'm struggling with how to save each timestep data file as a separate document, or have all the timestep data in one giant csv file. Currently the csv exported file just rewrites with each timestep
|
|
November 16, 2023, 21:50 |
|
#10 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
In the session file you need to set it to save to a new file name each time step. You already have it loading up a different time step each loop, you need to edit the export line to use a new file name each loop as well.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
Tags |
export data, lambda2, transient, vortex core region |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GAMBIT] Meshing & Exporting a Domain of Different Sub-Volumes | Stamatis | ANSYS Meshing & Geometry | 2 | March 29, 2016 02:13 |
Exporting expression data from *.trn timesteps | smallzilla | CFX | 2 | January 8, 2015 10:15 |
Material identification between a flow domain and a porous domain | Ervideiro | CFX | 1 | June 1, 2010 10:50 |
air bubble is disappear increasing time using vof | xujjun | CFX | 9 | June 9, 2009 08:59 |
CFX Solver Memory Error | mike | CFX | 1 | March 19, 2008 08:22 |