createBaseFields.H
Go to the documentation of this file.
1// write base thermo fields - not registered since will be re-read by
2// thermo package
3
4Info<< "Creating base fields for time " << runTime.timeName() << endl;
5{
6 volScalarField Ydefault
7 (
8 IOobject
9 (
10 "Ydefault",
11 runTime.timeName(),
12 mesh,
13 IOobject::READ_IF_PRESENT,
14 IOobject::NO_WRITE,
15 false
16 ),
17 mesh,
18 dimensionedScalar("Ydefault", dimless, 1)
19 );
20
21 Ydefault.write();
22
24 (
25 IOobject
26 (
27 "p",
28 runTime.timeName(),
29 mesh,
30 IOobject::READ_IF_PRESENT,
31 IOobject::NO_WRITE,
32 false
33 ),
34 mesh,
35 dimensionedScalar("p", dimPressure, p0)
36 );
37
38 p.write();
39
41 (
42 IOobject
43 (
44 "T",
45 runTime.timeName(),
46 mesh,
47 IOobject::READ_IF_PRESENT,
48 IOobject::NO_WRITE,
49 false
50 ),
51 mesh,
52 dimensionedScalar("T", dimTemperature, T0)
53 );
54
55 T.write();
56}
volScalarField & p
const volScalarField & T
const volScalarField & p0
Definition: EEqn.H:36
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
scalar T0
Definition: createFields.H:22