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

Exporting Velocity.lamdba2 for entire domain for all timesteps

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2023, 16:04
Smile Exporting Velocity.lamdba2 for entire domain for all timesteps
  #1
New Member
 
Eva Liu
Join Date: Nov 2022
Posts: 9
Rep Power: 4
evaliu246 is on a distinguished road
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
evaliu246 is offline   Reply With Quote

Old   November 14, 2023, 18:07
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   November 14, 2023, 18:14
Default
  #3
New Member
 
Eva Liu
Join Date: Nov 2022
Posts: 9
Rep Power: 4
evaliu246 is on a distinguished road
Which of these options can give me the data in a .csv or excel file?
evaliu246 is offline   Reply With Quote

Old   November 14, 2023, 18:18
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   November 14, 2023, 18:39
Default
  #5
New Member
 
Eva Liu
Join Date: Nov 2022
Posts: 9
Rep Power: 4
evaliu246 is on a distinguished road
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
evaliu246 is offline   Reply With Quote

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

Old   November 14, 2023, 19:03
Default
  #7
New Member
 
Eva Liu
Join Date: Nov 2022
Posts: 9
Rep Power: 4
evaliu246 is on a distinguished road
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?
evaliu246 is offline   Reply With Quote

Old   November 14, 2023, 20:54
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   November 16, 2023, 20:55
Default
  #9
New Member
 
Eva Liu
Join Date: Nov 2022
Posts: 9
Rep Power: 4
evaliu246 is on a distinguished road
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
evaliu246 is offline   Reply With Quote

Old   November 16, 2023, 21:50
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Reply

Tags
export data, lambda2, transient, vortex core region


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
[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


All times are GMT -4. The time now is 13:15.