createFields.H
Go to the documentation of this file.
1Info<< "Reading field T\n" << endl;
2
4(
5 IOobject
6 (
7 "T",
8 runTime.timeName(),
9 mesh,
10 IOobject::MUST_READ,
11 IOobject::AUTO_WRITE
12 ),
13 mesh
14);
15
16
17Info<< "Reading diffusivity DT\n" << endl;
18
20(
21 IOobject
22 (
23 "DT",
24 runTime.timeName(),
25 mesh,
26 IOobject::READ_IF_PRESENT,
27 IOobject::AUTO_WRITE
28 ),
29 mesh,
30 dimensionedScalar(dimViscosity, Zero)
31);
32
33if (!DT.headerOk())
34{
35 IOdictionary transportProperties
36 (
37 IOobject
38 (
39 "transportProperties",
40 runTime.constant(),
41 mesh,
42 IOobject::MUST_READ_IF_MODIFIED,
43 IOobject::NO_WRITE
44 )
45 );
46 DT = dimensionedScalar("DT", dimViscosity, transportProperties);
47}
48
49#include "createFvOptions.H"
const volScalarField & T
dynamicFvMesh & mesh
engineTime & runTime
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:82
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE))