Introduction
User subroutines for input of calculation parameters (Fortran modules). These subroutines are called in all cases.
If the code_saturne GUI is used, this file is not required (but may be used to override parameters entered through the GUI, and to set parameters not accessible through the GUI).
Several routines are present in the file, each destined to defined specific parameters.
To modify the default value of parameters which do not appear in the examples provided, code should be placed as follows:
- usipsu for numerical and physical options
- usipes for input-output related options
- usppmo for specific physics options
- usipph for additional input of parameters
- usati1 for calculation options for the atmospheric module
- cs_user_combustion for calculation options for the combustion module
- uscfx1 and uscfx2 for non-standard options for the compressible module
- uscti1 for the definition of cooling tower model and exchange zones
- user_darcy_ini1 for calculation options for the Darcy module
As a convention, "specific physics" defers to the following modules only: pulverized coal, gas combustion, electric arcs.
In addition, specific routines are provided for the definition of some "specific physics" options. These routines are described at the end of this file and will be activated when the corresponding option is selected in the usppmo routine.
General options (usipsu)
The following code block presents options available in the usipsu subroutine.
iescal(iescor) = 2
iescal(iestot) = 2
Postprocessing options (usipes)
The usipes routine can be found in the cs_user_parameters.f90 file, and is used for setting of postprocessing options, as it is called once all fields are defined.
Specific physic activation (usppmo)
The usppmo routine can be found in the cs_user_parameters.f90 file.
ippmod(icod3p) = -1
ippmod(icoebu) = -1
ippmod(icolwc) = -1
isoot = 0
xsoot = 0.1d0
rosoot = 2000.d0
ippmod(icfuel) = -1
ippmod(iccoal) = -1
i_comb_drift = 1
ippmod(icpl3c) = -1
ippmod(ieljou) = -1
ippmod(ielarc) = -1
ippmod(iaeros) = -1
iirayo = 1
ippmod(idarcy) = -1
indjon = 1
if ( ippmod(icod3p).ge.0 &
.or. ippmod(icoebu).ge.0 .or. ippmod(icolwc).ge.0) then
if (indjon.eq.1) then
ficfpp = 'dp_C3P'
else
ficfpp = 'dp_C3PSJ'
endif
endif
if (ippmod(icfuel).ge.0) then
ficfpp = 'dp_FUE'
endif
icondb = -1
icondv = -1
Additional input of parameters (usipph)
The usipph routine can be found in the cs_user_parameters.f90 file.
Calculation options for the atmospheric module (usati1)
The usati1 routine can be found in the cs_user_parameters.f90 file.
imbrication_flag = .false.
imbrication_verbose = .false.
cressman_u = .true.
cressman_v = .true.
cressman_tke = .true.
cressman_eps = .true.
cressman_theta = .true.
cressman_qw = .true.
cressman_nc = .true.
horizontal_influence_radius = 8500.d0
vertical_influence_radius = 100.d0
ifilechemistry = 0
call atmo_set_chem_conc_file_name('chem_01_01_2001')
call atmo_set_aero_conc_file_name('aero_01_01_2001')
isepchemistry = 1
dtchemmax = 10.0d0
irdu = 1
Calculation options for the combustion module (cs_user_combustion)
The cs_user_combustion routine can be found in the cs_user_parameters.f90 file.
ieqco2 = 0
srrom = 0.8d0
diftl0 = 4.25d-5
tinfue = 436.d0
tinoxy = 353.d0
cebu = 2.5d0
vref = 60.d0
lref = 0.1d0
ta = 0.2d5
tstar= 0.12d4
Non-standard options for the compressible module (uscfx1)
The uscfx1 routine can be found in the cs_user_parameters.f90 file.
ifcvsl = -1
call field_set_key_int(ivarfl(isca(itempk)), kivisl, ifcvsl)
iviscv = -1
Non-standard options for the compressible module (uscfx2)
The uscfx2 routine can be found in the cs_user_parameters.f90 file.
ivivar = 0
call field_set_key_double(ivarfl(isca(itempk)), kvisl0, 3.d-2)
viscv0 = 0.d0
xmasmr = 0.028966
icfgrp = 1
Definition of cooling tower model and exchange zones (uscti1)
The uscti1 routine can be found in the cs_user_parameters.f90 file.
Calculation options for the Darcy module (user_darcy_ini1)
The user_darcy_ini1 routine can be found in the cs_user_parameters.f90 file.
darcy_anisotropic_permeability = 0
darcy_anisotropic_dispersion = 0
darcy_unsteady = 0
darcy_convergence_criterion = 0