programmer's documentation
Functions/Subroutines
cs_user_initialization.f90 File Reference

Initialize variables. More...

Functions/Subroutines

subroutine cs_user_initialization (nvar, nscal, dt)
 

Detailed Description

Initialize variables.

This subroutine is called at beginning of the computation (restart or not) before the loop time step.

This subroutine enables to initialize or modify (for restart) unkown variables and time step values.

rom and viscl values are equal to ro0 and viscl0 or initialize by reading the restart file. variable diffusivity and cp variables (when there are defined) have no value excepted if they are read from a restart file.

Modification of the behaviour law of physical quantities (rom, viscl, viscls, cp) is not done here. It is the purpose of the user subroutine usphyv (in cs_user_physical_properties.f90)

Cells identification

Cell value field ids

Cells may be identified using the getcel subroutine. The syntax of this subroutine is described in the cs_user_boundary_conditions subroutine, but a more thorough description can be found in the user guide.

Function/Subroutine Documentation

subroutine cs_user_initialization ( integer  nvar,
integer  nscal,
double precision, dimension(ncelet)  dt 
)
Parameters
[in]nvartotal number of variables
[in]nscaltotal number of scalars
[in]dttime step (per cell)