6.3
general documentation
Setup of the main parameters

Base setup should be done in the Graphical User Interface (GUI), possibly completed by using the user functions in cs_user_parameters.c. In the GUI, the initialization is performed by filling the parameters displayed in figures calculation features to fluid_properties.

If some options (for example 'Mobile mesh') are activated in the GUI, additional pages may appear. In general, when activating or deactivating an option, pages below the one currently being visited (in the setup tree) may be shown or hidden, but pages appearing above should not be modified, so setting up a computation by visiting GUI pages from top to bottom is recommended, though any page may be re-visited at any time.

The headings filled for the initialization of the main parameters are the following:

  • Thermophysical model options: Steady or unsteady algorithm, specific physics, ALE mobile mesh, turbulence model, thermal model and species transport (definition of the scalars and their variances); see figures calculation features to species. If a thermal model is activated, two other headings on conjugate heat transfer and radiative transfers can be filled in (see thermal scalar).
  • Body forces: gravity and coriolis forces, see body forces.
  • Physical properties: reference pressure, velocity and length, fluid properties (density, viscosity, thermal conductivity, specific heat and scalar diffusivity), see see reference values to fluid properties.
  • Volume conditions: definition of volume regions (for initialization, head losses and source terms, user source terms and head losses, initialization of the variables (including scalars), see figure.
  • Boundary conditions: definition of boundary conditions.
  • Numerical parameters: number and type of time steps, and advanced parameters for the numerical solution of the equations, see figures global parameters to time step.

Calculation feature selection

Turbulence model selection

Thermal model selection

Transported species and scalars definition

Body forces definition

Reference pressure and velocity

Fluid properties

Variables initialization

Global resolution parameters

Numerical parameters for the main variables

Time step settings

For more details about the different parameters, please refer to the field keyword list", @ref cs_var_dico "variable reference", and @ref cs_user_examples "examples".

In addition to the GUI, user-defined functions may be used:

  • cs_user_model to select a given physical model.
  • cs_user_parameters to define most general or variable-based parameters
  • cs_user_time_moments to define time moments associated with the various fields.
  • linear_solvers to define linear solver options specific to any given system.
  • cs_user_finalize_setup to modify or variable-based settings, or define them for secondary variables based on options set on main parameters (such as additional variables associated with variable scalar diffusivity, turbulent Schmidt number, ...).