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 
4 Info<< "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,
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,
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,
53  );
54 
55  T.write();
56 }
const dimensionSet dimPressure
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
const dimensionSet dimless
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
dynamicFvMesh & mesh
const volScalarField & T
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
messageStream Info
virtual bool write(const bool write=true) const
Write using setting from DB.
volScalarField & p
const dimensionSet dimTemperature
scalar T0
Definition: createFields.H:22