1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
|
/*============================================================================
* Code_Saturne documentation page
*============================================================================*/
/*
This file is part of Code_Saturne, a general-purpose CFD tool.
Copyright (C) 1998-2018 EDF S.A.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*-----------------------------------------------------------------------------*/
/*!
\page f_parameters Input of calculation parameters (Fortran modules)
\section cs_f_user_parameters_h_intro 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:
- \ref cs_f_user_parameters_h_usipsu "usipsu" for numerical and physical options
- \ref cs_f_user_parameters_h_usipes "usipes" for input-output related options
- \ref cs_f_user_parameters_h_usppmo "usppmo" for specific physics options
- \ref cs_f_user_parameters_h_usipph "usipph" for additional input of parameters
- \ref cs_f_user_parameters_h_usati1 "usati1" for calculation options for the atmospheric module
- \ref cs_f_user_parameters_h_cs_user_combustion "cs_user_combustion" for calculation options for the combustion module
- \ref cs_f_user_parameters_h_uscfx1 "uscfx1" and \ref cs_f_user_parameters_h_uscfx2 "uscfx2" for non-standard options for the compressible module
- \ref cs_f_user_parameters_h_uscti1 "uscti1" for the definition of cooling tower model and exchange zones
- \ref cs_f_user_parameters_h_user_darcy_ini1 "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 \ref usppmo routine.
\section cs_f_user_parameters_h_usipsu General options (usipsu)
\subsection cs_f_user_parameters_h_usipsu_0 All options
The following code block presents all the options available
in the \ref usipsu subroutine.
\snippet cs_user_parameters.f90 usipsu
\subsection cs_f_user_parameters_h_usipsu_1 Special fields
Enforce existence of 'tplus' and 'tstar' fields, so that
a Nusselt number may be computed using the
\ref post_boundary_nusselt subroutine.
When postprocessing this quantity is activated, those fields
are present, but if we need to compute them in the
\ref cs_user_extra_operations user subroutine without postprocessing them,
forcing the definition of these fields to save the values computed
for the boundary layer is necessary.
\snippet cs_user_parameters-output.f90 usipsu_ex_1
Save contribution of slope test for variables in special fields.
These fields are automatically created, with postprocessing output enabled,
if the matching variable is convected, does not use a pure upwind scheme,
and has a slope test (the slope_test_upwind_id key value for a given
variable's field is automatically set to the matching postprocessing field's
id, or -1 if not applicable).
\snippet cs_user_parameters-output.f90 usipsu_ex_2
\section cs_f_user_parameters_h_usipes Input-output related examples (usipes)
\subsection cs_f_user_parameters_h_example_base Basic options
Frequency of log output.
\snippet cs_user_parameters-output.f90 usipes_ex_01
Log (listing) verbosity.
\snippet cs_user_parameters-output.f90 usipes_ex_02
Activate or deactivate logging output.
By default, logging is active for most variables. In the following
example, logging for velocity is deactivated.
\snippet cs_user_parameters-output.f90 usipes_ex_03
Change a property's label (here for density, first checking if it
is variable). A field's name cannot be changed, but its label,
used for logging and postprocessing output, may be redefined.
\snippet cs_user_parameters-output.f90 usipes_ex_04
\subsection cs_f_user_parameters_h_example_structures Structures output
Structures output step.
\snippet cs_user_parameters-output.f90 usipes_ex_05
\subsection cs_f_user_parameters_h_example_post Postprocessing output
Activate or deactivate postprocessing output.
By default, output is active for most variables. In the following
example, the output for velocity is deactivated.
\snippet cs_user_parameters-output.f90 usipes_ex_07
Activate or deactivate probes output.
\snippet cs_user_parameters-output.f90 usipes_ex_08
Probes for Radiative Transfer (Luminance and radiative density flux vector).
\snippet cs_user_parameters-output.f90 usipes_ex_10
\subsection cs_f_user_parameters_h_example_1 Postprocess at boundary
Force postprocessing of projection of some variables at boundary
with no reconstruction.
This is handled automatically if the second bit of a field's
'post_vis' key value is set to 1 (which amounts to adding 2
to that key value).
\snippet cs_user_parameters-output.f90 usipes_ex_09
\section cs_f_user_parameters_h_usppmo Specific physic activation (usppmo)
The \ref usppmo routine can be found in the \ref cs_user_parameters.f90 file.
\snippet cs_user_parameters.f90 usppmo
\section cs_f_user_parameters_h_usipph Additional input of parameters (usipph)
The \ref usipph routine can be found in the \ref cs_user_parameters.f90 file.
\snippet cs_user_parameters.f90 usipph
\section cs_f_user_parameters_h_usati1 Calculation options for the atmospheric module (usati1)
The \ref usati1 routine can be found in the \ref cs_user_parameters.f90 file.
\snippet cs_user_parameters.f90 usati1
\section cs_f_user_parameters_h_cs_user_combustion Calculation options for the combustion module (cs_user_combustion)
The \ref cs_user_combustion routine can be found in the \ref cs_user_parameters.f90 file.
\snippet cs_user_parameters.f90 cs_user_combustion
\section cs_f_user_parameters_h_uscfx1 Non-standard options for the compressible module (uscfx1)
The \ref uscfx1 routine can be found in the \ref cs_user_parameters.f90 file.
\snippet cs_user_parameters.f90 uscfx1
\section cs_f_user_parameters_h_uscfx2 Non-standard options for the compressible module (uscfx2)
The \ref uscfx2 routine can be found in the \ref cs_user_parameters.f90 file.
\snippet cs_user_parameters.f90 uscfx2
\section cs_f_user_parameters_h_uscti1 Definition of cooling tower model and exchange zones (uscti1)
The \ref uscti1 routine can be found in the \ref cs_user_parameters.f90 file.
\snippet cs_user_parameters.f90 uscti1
\section cs_f_user_parameters_h_user_darcy_ini1 Calculation options for the Darcy module (user_darcy_ini1)
The \ref user_darcy_ini1 routine can be found in the \ref cs_user_parameters.f90 file.
\snippet cs_user_parameters.f90 user_darcy_ini1
*/
|