|
Neko 1.99.11
A portable framework for high-order spectral element flow simulations
|
The scalar object allows to add a scalar transport equation to the solution. The solution variable is called s by default, but can be controlled by the field_name entry in the case file. In the fld files, it is saved as temperature. Some properties of the object are inherited from fluid: the value of the density, and the output control.
The scalar equation requires defining additional material properties: the specific heat capacity and thermal conductivity. These are provided as cp and lambda. Similarly to the fluid, one can provide the Peclet number, Pe, as an alternative. In this case, cp is set to 1 and lambda to the inverse of Pe.
Different from the setup in the fluid, turbulence modelling is enabled by setting the alphat json entry.
The user could choose to either relate the eddy diffusivity field to the eddy viscosity field in the Fluid, or model the eddy diffusivity field by some particular SGS models, by setting up the nut_dependency entry. If the eddy diffusivity field is associated to the eddy viscosity field by a coefficient Pr_t, the eddy viscosity values will be divided by it to produce eddy diffusivity. And the corresponding setting could be done by the following:
Otherwise one could have some SGS models providing an eddy diffusivity field, and the user could set it up by the following manner to include an eddy diffusivity field called temperature_alphat:
The boundary conditions for the scalar are specified through the boundary_conditions keyword, which follows the same format as the fluid, for specifying the type of the condition and where it is applied. The following types of conditions are available for the scalar:
The object initial_condition is used to provide initial conditions. It is mandatory. The means of prescribing the values are controlled via the type keyword:
The configuration of source terms is the same as for the fluid. A demonstration of using source terms for the scalar can be found in the scalar_mms example.
Should be provided as an object under the solver keyword. For available configuration options, see the corresponding documentation for the fliud. A standard choice would be "type": "cg" and "preconditioner": "jacobi".
| Name | Description | Admissible values | Default value |
|---|---|---|---|
| enabled | Whether to enable the scalar computation. | true or false | true |
| name | The name associated to the scalar solver. | String | scalar |
| field_name | The name of the solution in the field registry. | A string | s |
| Pe | The Peclet number. | Positive real | - |
| cp | Specific heat capacity. | Positive real | - |
| lambda | Thermal conductivity. | Positive real | - |
| alphat.nut_dependency | Whether the eddy diffusivity depends on the eddy kinematic viscosity. | true or false | - |
| alphat.alphat_field | Name of the turbulent diffusivity field. | String | Empty string |
| alphat.nut_field | Name of the turbulent kinematic viscosity field. | String | Empty string |
| alphat.Pr_t | Turbulent Prandtl number | Positive real | - |
| boundary_types | Boundary types/conditions labels. | Array of strings | - |
| initial_condition.type | Initial condition type. | user, uniform, expression, point_zone, field | - |
| initial_condition.value | Value of the scalar initial condition. | Real, or a string if "type" = "expression" | - |
| source_terms | Array of JSON objects, defining additional source terms. | See list of source terms above | - |
| gradient_jump_penalty | Array of JSON objects, defining additional gradient jump penalty. | See list of gradient jump penalty above | - |
| advection | Whether to compute the advetion term. | true or false | true |
| solver.type | Linear solver for scalar equation. | cg, pipecg, bicgstab, cacg, gmres | - |
| solver.preconditioner.type | Linear solver preconditioner for the momentum equation. | ident, hsmg, jacobi | - |
| solver.absolute_tolerance | Linear solver convergence criterion for the momentum equation. | Positive real | - |
| solver.max_iterations | Linear solver max iteration count for the scalar equation. | Positive integer | 1000 |
| solver.space_size | Krylov space size of gmres for the scalar equation. | Positive integer | 30 |
| solver.projection_space_size | Projection space size for the scalar equation. | Positive integer | 0 |
| solver.projection_hold_steps | Holding steps of the projection for the scalar equation. | Positive integer | 5 |