Freecappuccino Input Specification Guide
Freecappuccino Input Specification Guide
1 2
° (from previous page) ° (from previous page)
3 4
° (from previous page) ° (from previous page)
5 6
° (from previous page) ° (from previous page)
7 8
° (from previous page) ° (from previous page)
9 10
° (from previous page) ’IDDES_k_omega_sst’, ’DDES_k_omega_sst’. Many more to come soon!
The TurbModel is a variable of derived data type. In the namelist files it is initialized by a list of
data, delimited using comma, representing values of the data members in sequential order as
Parameter key ö Values Ò Description Õ they are listed in definition of the derived data type.
The ’TurbModel%name’ is first in the sequence so if we put ’TurbModel = k_omega_sst’, it will only
If CoNumFix=True then initialize the first data member of the derived type, which is the model name. This is fortunate
Real,
CoNumFixValue set target maximum circumstance and leads to compact initialization style. Turbulence model may have several
e.g. 1.0
Courant number here. (we often deal with two) equations which define the model, each for a separate scalar field.
Example is k − model, where we solve separate equations for turbulence kinetic energy and
Do we have constant
turbulence kinetic energy dissipation rate. For every field we have in the model, we may set a
const_mflux T/F mass flow in the do-
value for any available parameter as seen in the table above. This can be done in any order, it
main? True/False.
is irrelevant. For example writing ’TurbModel%Scalar(1)%urf = 0.5’ will set the under-relaxation
If const_mflux=True factor for the first scalar field in the turbulence model to 0.5. ’TurbModel%Scalar(1)%cScheme
then set target bulk ve- = ’boundedLinearUpwind” will set the interpolation scheme for convection different from the
Real, default one (’linearUpwind’) for the first scalar field in the model.
magUbar locity for constant mass
e.g. 1.0
flow situation.
Possible linear algebraic solvers are: ’gauss_seidel’, ’dpcg’, ’iccg’, ’bicgstab’. Most computational
effort goes into solution of pressure Poisson equation, which is symmetric, positive definite. Use
Incomplete Cholesky Conjugate Gradient (ICCG) for that one. For other transport equations with
non-symmetric matrices Bi-CGStab is good option. Using LIS library enables greater choice for
precodnitioner/solver combinations, when necessary (eg. ’-i cg -p saamg -tol 0.01 -maxiter 10’
for CG with Smoothed Agglomeration Algebraic Multigird preconditioner with relative residual
norm reduction target of 0.01 and maximum of 10 iterations). For LIS solvers all solver parame-
ters, as seen in this example, are given within single text string.
Possible convection schemes are: ’cds’, ’central’, ’linearUpwind’, kappa, muscl, umist, smart,
boundedLinearUpwind, boundedCentral, etc. The list is long and you may consult the source
code, just look at the ’interpolation.f90’ module. If you use ’linearUpwind’ it is good to have gra-
dient (slope) limiter activated, such as ’Barth-Jespersen’, ’Venkatakrishnan’, ’multidimensional’
or ’R3’.
The rheology may be prescribed using the various non-Newtonian models. If we are inter-
ested in materials exhibiting such a behaviour we may set ’calcVis’ to true, to recalculate the
effective viscosity at each iteration, and choose an appropriate Non-Newtonian model. The op-
tions are: ’PowerLaw’ (Power law constitutive Model), ’HerschelBulkley’ (Herschel-Bulkley con-
stitutive regularized (Papanastasiou) Model), ’Bingham’ (Bingham model), ’BinghamPapanasta-
siou’ (Bingham-Papanastasiou model), ’Carreau’ (Carreau constitutive model), ’CarreauYasuda’
(Carreau-Yasuda constitutive model), ’Casson’ (Casson constitutive model), ’CassonPapanasta-
siou’ (Casson constitutive regularized (Papanastasiou) Model with consistency temperature de-
pendance), ’CrossModel’ (Cross constitutive model).
Choosing turbulence model is of course a big topic. Here is the short list of possibilities. Eddy
viscosity RANS models are: ’k_epsilon_std’, ’k_omega_sst’, ’Spalart_Allmaras’, ’k_epsilon_rng’,
’k_epsilon_rlzb’ (Realizable k − model), ’k_epsilon_rlzb_2lewt’ (Realizable k − model with
two-layer approach for wall cells and with enhanced wall functions using Reichardt blending
function), ’k_epsilon_std_2lewt’ (Standard k − with two layer approach and enhanced wall
functions). The LES models are ’WALE’, and one equation ’k_eqn_eddy’. The hybrid models are:
11 12