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

Best way to save simulation results

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Antanas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2015, 14:18
Default Best way to save simulation results
  #1
New Member
 
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11
khariel is on a distinguished road
I'm wondering what would be the best way to save the results of my simulations on CFX. I have around 50-60 'quick' simulations to run, where I'm evaluating the behavior of my systemby changing a single parameter.

I still haven't figured out yet how and what I'm going to plot from the results I get, so I just wanted to store them for now. I'm using Workbench.

Thanks in advance,
khariel is offline   Reply With Quote

Old   September 10, 2015, 18:09
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
If the output boils down to a single number then you can do it as a parametric thing inside workbench. You can also run this inside a script/batch file and do the same thing from the command line.
ghorrocks is offline   Reply With Quote

Old   September 10, 2015, 18:17
Default
  #3
New Member
 
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11
khariel is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
If the output boils down to a single number then you can do it as a parametric thing inside workbench. You can also run this inside a script/batch file and do the same thing from the command line.
Hello Glenn, thanks for the reply.
What I was looking for was more in terms of saving all the result variables (velocities, pressure, mass fractions, etc) for each simulation in a way that I'd be able to, at any given time, open these results in CFD-Post and visualize them.
khariel is offline   Reply With Quote

Old   September 10, 2015, 18:28
Default
  #4
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
The results file contains all these variables by default. You don't need to do anything to have these variables available.
ghorrocks is offline   Reply With Quote

Old   September 10, 2015, 18:30
Default
  #5
New Member
 
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11
khariel is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
The results file contains all these variables by default. You don't need to do anything to have these variables available.
So if inside the same 'analysis' on Workbench I run a simulation, then later I change something and run another simulation, will both (and all subsequent) results be available at the respective .res file?
khariel is offline   Reply With Quote

Old   September 10, 2015, 18:56
Default
  #6
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
In workbench - it depends on how you set it up. If you edit a workbench setup and rerun then the old run will not be kept.

Personally I like to have more control over what is going on than workbench allows. So I would run this as stand-alone CFX using a batch file to drive it from the command line. Then it is easy to make sure all files are kept and organised.
ghorrocks is offline   Reply With Quote

Old   September 10, 2015, 19:05
Default
  #7
New Member
 
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11
khariel is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
In workbench - it depends on how you set it up. If you edit a workbench setup and rerun then the old run will not be kept.

Personally I like to have more control over what is going on than workbench allows. So I would run this as stand-alone CFX using a batch file to drive it from the command line. Then it is easy to make sure all files are kept and organised.
Where can I read more about that to learn how to use the stand-alone version with the command line?
khariel is offline   Reply With Quote

Old   September 10, 2015, 19:39
Default
  #8
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
You access it from the Fluid Dynamics/CFX Launcher on the start menu.

The CFX documentation has the command line parameters under "Starting CFX from the command line".
ghorrocks is offline   Reply With Quote

Old   September 10, 2015, 19:49
Default
  #9
New Member
 
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11
khariel is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
You access it from the Fluid Dynamics/CFX Launcher on the start menu.

The CFX documentation has the command line parameters under "Starting CFX from the command line".
I'll give it a go. Thanks a lot once again for your patience, Glenn.
khariel is offline   Reply With Quote

Old   September 11, 2015, 01:13
Default
  #10
Senior Member
 
Join Date: May 2012
Location: Melbourne
Posts: 161
Rep Power: 13
Steffen595 is on a distinguished road
all the results are in a subfolder inside a folder with the same name as the project. So you an open them in CFD post. And it saves a text file with your parameters. This is only, if you pick up your last iteration, change parameters in Pre, and run another calculation. Guess there is some setting. Because Fluent overrides by default, whereas CFX just keeps making new results files.
Steffen595 is offline   Reply With Quote

Old   September 11, 2015, 01:47
Default
  #11
Senior Member
 
Join Date: Feb 2011
Posts: 496
Rep Power: 18
Antanas is on a distinguished road
Quote:
Originally Posted by khariel View Post
So if inside the same 'analysis' on Workbench I run a simulation, then later I change something and run another simulation, will both (and all subsequent) results be available at the respective .res file?
If you open properties of Solution cell and set Multi-configuration Post Processor File Load Options to one of Complete Histories then it will keep res and out files for every update of Solution cell unless you clear its generated data.
Murillo likes this.
Antanas is offline   Reply With Quote

Old   September 11, 2015, 06:15
Default
  #12
Senior Member
 
Join Date: May 2012
Location: Melbourne
Posts: 161
Rep Power: 13
Steffen595 is on a distinguished road
and then in folder (projectname)_files\dp0\Cfx\Cfx
Steffen595 is offline   Reply With Quote

Old   September 11, 2015, 10:25
Default
  #13
New Member
 
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11
khariel is on a distinguished road
Quote:
Originally Posted by Antanas View Post
If you open properties of Solution cell and set Multi-configuration Post Processor File Load Options to one of Complete Histories then it will keep res and out files for every update of Solution cell unless you clear its generated data.
Oh, interesting. I'll give this a try too. Thanks.
My only concern though is that the results files start to get very large.

By the way, if I run a simulation, then change some parameter (say, inlet velocity), and run it again without clearing generated data, how does it affect my second simulation? because I'm seeing my RMS values already starting very low, and my monitor point has the same value as the previous simulation.
khariel is offline   Reply With Quote

Old   September 11, 2015, 12:49
Default
  #14
Senior Member
 
Join Date: Feb 2011
Posts: 496
Rep Power: 18
Antanas is on a distinguished road
Quote:
Originally Posted by khariel View Post
Oh, interesting. I'll give this a try too. Thanks.
My only concern though is that the results files start to get very large.

By the way, if I run a simulation, then change some parameter (say, inlet velocity), and run it again without clearing generated data, how does it affect my second simulation? because I'm seeing my RMS values already starting very low, and my monitor point has the same value as the previous simulation.
CFX will create files for every update, so they won't grow. RMS starting very low for two reasons:
1. CFX continues history from prev. run. In general residuals will jump up after 1st step.
2. It uses results of prev. run as initial conditions. You may change this by modification Initialization option in properties of Solution cell.
Antanas is offline   Reply With Quote

Old   September 11, 2015, 18:33
Default
  #15
Senior Member
 
Join Date: May 2012
Location: Melbourne
Posts: 161
Rep Power: 13
Steffen595 is on a distinguished road
and the .out file is a text file that has all your settings / inputs.
The .res file size depends on the size of your mesh and how many variables you calculate, and it makes a new one for every run.
In Post you can open each .res file individually. Its a good idea, if you save your settings, but it asks you anyway.
If you only vary one variable slightly or use that calculation for something similar, then its not bat that it uses your previous values for initialisation, saves you some time.
Steffen595 is offline   Reply With Quote

Reply


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
Time average results in Transient CFX Simulation BalanceChen CFX 32 September 30, 2021 13:59
Gravity (g) Influence on Simulation Results Colin FLUENT 12 September 23, 2015 09:45
[OpenFOAM] Save Video of the simulation done in ParaView akku ParaView 1 July 3, 2013 04:28
How to save macro results in the output file? Peggy FLUENT 0 May 21, 2007 03:36
NACA 0012 simulation results Luis FLUENT 3 February 15, 2006 11:42


All times are GMT -4. The time now is 04:29.