control.dat
As already mentioned, TOSCA expects a specific case structure, where the control.dat file contains the main simulation settings, some of which prompt the code to read additional input files. The control.dat is subdivided in 7 subsections, namely
Time Controls
I/O Controls
Solution Flags
Solution Controls
Solution Constants
Acquisition Controls
Post Processing Controls
The last group is only needed when the tosca2PV
executable is launched, which converts the binary TOSCA output in .xmf
format. These can be read from e.g. ParaView. The following tables summarize all available entries for each of the control.dat
file subsections.
Time Controls
|
It can be set to startTime (requires |
|
Specifies the initial time of the simulation if the |
|
Defines the time at which the simulation ends. |
|
Initial time step size in seconds. |
|
If set to 0, the time step will remain fixed and equal to the specified |
|
Specifies the CFL value to be maintained. Disregarded if |
|
Specifies the number of digits after the comma that are used to write files and expected to read
them. Note that, if the time folder storing the initial condition has a different number of digits,
the simulation will throw an error. To solve this one can act both on the |
I/O Controls
|
It can be set to adjustableTime, timeStep or writeNow. The last entry is used at runtime when the user wants to trigger a checkpoint write, followed by termination of the simulation. |
|
Specifies how often a checkpoint file is written. If the |
|
If set to 1, eliminates all previous checkpoint files every time that a checkpoint is written (in order to save disk space). |
Solution Flags
|
Set to 1 to activate the LES model. If set to 0, the simulation runs in DNS mode. |
|
Required when
TOSCA has been extensively and most used adopting the dynamicLASI model for ABL and wind plant simulations. Other models have been recently added to the code and might perform better in some cases (especially dynamicLASD and amd). |
|
Specifies if potential temperature transport equation is solved (set to 1) or not (set to 0). |
|
Specifies if an ABL simulation is run. Requires additional file |
|
Specifies if immersed bodies are present in the simulation (set to 1) or not (set to 0). Requires
additional input in |
|
Specifies if overset mesh is present in the simulation. Requires additional input in |
|
Specifies if vertical Rayleigh damping layer is present in the simulation. Requires additional
input in |
|
Specifies if horizontal inlet fringe region is present in the simulation. Requires additional input
in |
|
Specifies if horizontal lateral fringe region is present in the simulation. Requires additional input
in |
|
Specifies if x-direction horizontal inlet advection damping region is present in the simulation.
Requires additional input in |
|
Specifies if y-direction horizontal inlet advection damping region is present in the simulation.
Requires additional input in |
|
Concurrent precursor has to be enabled with this flag. Specifies the type of inlet boundary
condition and initial condition for the concurrent precursor. If set to 0, streamwise periodic
boundary conditions are applied and initial condition is read from |
|
Specifies if horizontal Rayleigh damping at |
|
Specifies if horizontal Rayleigh damping at |
|
Specifies if wind farm canopy model is present in the simulation. Requires additional input in
|
|
Specifies if wind turbines are present in the simulation (set to 1) or not (set to 0). Requires
turbine models definitions in |
|
If set to 1, allows disabling viscous terms. Default value is 0. |
|
Computes the divergence field within the entire domain and writes it to checkpoint files. |
|
Enables ParaView-Catalyst off-screen rendering capabilities. Useful to create nice videos of very large simulations. More details are given in Sec. Paraview-Catalyst2 OS-Rendering. |
Solution Controls
|
Defines the format of the mesh input file. It can be set to |
|
Time discretization scheme, it can be set to |
|
Determines which divergence scheme is used for the discretization of the advection fluxes. It
can be set to |
|
Requires |
|
Requires |
|
Allows to specify the library used to solve the pressure equation, it can be set to |
|
Allows to choose the solution method for the linear system if |
|
Allows to set the exit tolerance for the pressure solver. Default value is 1e-8. |
|
Set the maximum number of iterations for the pressure solver. Default value is 8. |
|
Since TOSCA uses the Algebraic Multi-Grid (AMG) preconditioner when the |
|
Allows to set the AMG threshold. Default value is 0.5. For distorted meshes, a value of 0.6 is suggested. |
|
Allows to set the level of aggressive coarsening. Default value is 0 (not used). |
|
If set to 1, buoyancy force is recast into a buoyancy gradient and pressure is defined accordingly. Default value is 0 (not used). |
|
Can be set to |
|
Requires |
|
Requires |
|
Maximum value for the LES model \(C_s\) coefficient, default value is set to 0.5. Only used when
|
Solution Constants
|
Sets the molecular (kinematic) viscosity of the working fluid. |
|
Sets the density of the working fluid (used e.g. to compute forces). |
|
Requires |
|
It is a required parameter when |
Acquisition Controls
|
Activates probes acquisition. Requires additional input files inside |
|
Activates acquisition of sections to be visualized in ParaView. Requires additional input files in
|
|
Activates planar averages at every cell-level in the z-direction. Requires |
|
Output period of the ABL planar averages. It is a required parameter, even if |
|
Time at which ABL planar averages are started. It is a required parameter, even if |
|
Activates vertical averages within layer at user-defined points. Requires additional inputs in
|
|
Activates acquisition of perturbation fields at the same location as sections to be visualized in ParaView.
Requires additional inputs in |
|
It can be activated by setting to 1, 2, or 3 to get a higher amount of three-dimensional averaged fields. |
|
Average period of three-dimensional averages. Fields are written at checkpoint times in the correspondent time folder. |
|
Start time of three-dimensional averages. |
|
These averages are a duplicate of the averages, but are useful if one wants to perform both unconditioned-averages and phase-averages, e.g. at multiples of some characteristic time, in the same simulation. |
|
Average period of three-dimensional phase averages. Fields are written at checkpoint times in the correspondent time folder. |
|
Start time of three-dimensional phase averages. |
|
Set to 1 to activate mechanical energy budgets. Requires additional inputs in |
|
Writes pressure force on the IBM surface. |
|
Writes 3D field of Q-criterion at checkpoint times. |
|
Writes 3D field of Lambda2-criterion at checkpoint times. |
|
Writes 3D field of wind farm body force at checkpoint times. |
|
Compute source fields to be written in checkpoint files, to be converted in |
|
Writes 3D field of buoyancy term in the momentum equation at checkpoint times. |
Post Processing Controls
|
Activate to post process 3D fields. It should be deactivated (set to 0) for too big cases to be fit in the memory of a
single node, as field conversion from binary to |
|
Activate to write raster file from jSections. |
|
Activate to post process binary sections and write |
|
Activate to also post process fields from the concurrent precursor simulation. Similarly to the |