|
[Sponsors] |
September 10, 2015, 14:18 |
Best way to save simulation results
|
#1 |
New Member
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11 |
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, |
|
September 10, 2015, 18:09 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
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.
|
|
September 10, 2015, 18:17 |
|
#3 | |
New Member
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11 |
Quote:
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. |
||
September 10, 2015, 18:28 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
The results file contains all these variables by default. You don't need to do anything to have these variables available.
|
|
September 10, 2015, 18:30 |
|
#5 |
New Member
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11 |
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?
|
|
September 10, 2015, 18:56 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
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. |
|
September 10, 2015, 19:05 |
|
#7 | |
New Member
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11 |
Quote:
|
||
September 10, 2015, 19:39 |
|
#8 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
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". |
|
September 10, 2015, 19:49 |
|
#9 |
New Member
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11 |
||
September 11, 2015, 01:13 |
|
#10 |
Senior Member
Join Date: May 2012
Location: Melbourne
Posts: 161
Rep Power: 13 |
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.
|
|
September 11, 2015, 01:47 |
|
#11 |
Senior Member
Join Date: Feb 2011
Posts: 496
Rep Power: 18 |
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.
|
|
September 11, 2015, 06:15 |
|
#12 |
Senior Member
Join Date: May 2012
Location: Melbourne
Posts: 161
Rep Power: 13 |
and then in folder (projectname)_files\dp0\Cfx\Cfx
|
|
September 11, 2015, 10:25 |
|
#13 | |
New Member
Leonardo
Join Date: Nov 2014
Posts: 27
Rep Power: 11 |
Quote:
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. |
||
September 11, 2015, 12:49 |
|
#14 | |
Senior Member
Join Date: Feb 2011
Posts: 496
Rep Power: 18 |
Quote:
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. |
||
September 11, 2015, 18:33 |
|
#15 |
Senior Member
Join Date: May 2012
Location: Melbourne
Posts: 161
Rep Power: 13 |
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. |
|
|
|
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 |