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,
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,
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 }
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:256
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
dynamicFvMesh & mesh
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
Definition: dimensionSets.H:52
const dimensionSet dimPressure
const volScalarField & T
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:47
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
messageStream Info
volScalarField & p
virtual bool write(const bool valid=true) const
Write using setting from DB.