In the Run panel you can start the actual simulation. This panel has two main sections. The top section contains inputs for parameters of the execution process. The bottom section contains buttons that can save, start or reset the actual simulation.
Execution parameters are grouped into four tabs:
In the Time Control there are inputs for you to specify depends on the solver type:
In case of steady state simulations, you need to specify the maximal number of iterations. If the convergence criteria are reached before this iteration the simulation will also stop.
In case of transient simulations, you need to specify the simulation time and time step parameters.
Simulation Time - time at which simulation should stop.
Time Stepping - time increment at which the simulation progresses. This value should be very carefully chosen based on the time scale of the process you want to simulate and the mesh size.
Fixed time stepping require defining constant time step.
Fixed time stepping Options:
\(\Delta t [s]\) - time step size
Most transient solvers allow for automatic time stepping. This is a very useful option since in most cases it is very difficult to select appropriate time step value that will be optimal for the entire simulation. Usually, you would like to start your simulation with a relatively small time step for stability and later increase it to speed up the simulation.
Automatic time stepping option will enable a mechanism that will automatically select time step size based on the current state of the solution. It allows you to add certain constraints on the time step size to avoid divergence when the algorithm erroneously selects to high a time step.
Automatic time stepping options:
\(Initial \Delta t [s]\) - time step size at the start of the simulation
\(Max \Delta t [s]\) - maximum allowed time step size
\(Max Co [-]\) - maximum allowed Courant number
\(Max Alpha Co [-]\) - maximum allowed Courant number of the phase interface (multi-phase solvers only)
The Output section contain options for various aspects of saving results to the disk.
Output Control Options:
Write Control - strategy for frequency of writing results to the disk (Iteration for steady state simulations and Run Time for transient).
Interval - result write interval for strategy under Write Control - number of iterations for steady state simulation and seconds for transient
Clean Old Result Files - option that enables automatic removal of old result sets if the number of result sets exceeds the specified amount
The Clean Old Result Files option protects you from filling up your disk with result files you do not actually need. It will automatically remove old result sets if the accumulated number of result sets exceeds the specified number.
When Clean Old Result Files is enabled you need to specify the Maximum Number of Files that should be kept on disk.
In the CPU tab you can define whether you want the simulation to run in serial or in parallel on multiple processors.
When you want your simulation to run faster you can enable execution in parallel. With this option enable you will have to define Number of processors to use for the calculation. These values should usually be set to the number of physical cores available on your computer. Number of selected processors will be displayed in the tab label, so that it is visible from all other tabs.
In the Notify Me tab you can tell the system to send you an email when simulation is finished. This option is especially useful when you are running very long simulations taking ours or even days to finish.
In order to receive a notification you need to input a valid email address. The system will check whether your input is a formally correct email address and only when you see a green tick mark the notification will be activated.
There are three buttons controlling simulation process:
Write Setup - causes current state of the system to be written to disk. This option is usually used by advanced users who want to check the setup files or modify them and run OpenFOAM solvers manually from the command line.
Run Simulation - starts the simulation process or continues the simulation if it was stopped or interrupted. When starting the simulation the system will also perform the Write Setup operation.
Reset Simulation - when simulation finished or was interrupted this button will remove all the result files.
When you click Reset Simulation current result files will be removed. However, if you performed this operation by accident you can click Restore button, at the bottom of the panel, to bring back the removed files.