for consistency with fvModels and fvConstraints, to simplify code and case maintenance and to avoid the potentially complex functions entries being unnecessarily parsed by utilities for which functionObject evaluation is disabled. The functions entry in controlDict is still read if the functions file is not present for backward-compatibility, but it is advisable to migrate cases to use the new functions file.
30 lines
1.3 KiB
C++
30 lines
1.3 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Description
|
|
Solves a transport equation for a scalar field.
|
|
|
|
The name of the scalar field is specified in this file. A field file of
|
|
this name will also be required, typically in the 0 directory. Scheme and
|
|
solver settings will also be needed. Alternatively, if there is another
|
|
field which already has appropriate fvSchemes and fvSolution entries, these
|
|
settings can be reused by naming the field as the schemesField.
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
#includeEtc "caseDicts/functions/solvers/scalarTransport.cfg"
|
|
|
|
field <fieldName>; // Name of the transported scalar
|
|
schemesField $field; // Name of the field from which to use schemes
|
|
// and solvers settings
|
|
diffusivity viscosity;
|
|
|
|
alphal 1;
|
|
alphat 1;
|
|
|
|
// ************************************************************************* //
|