createFields.H
Go to the documentation of this file.
1 Info<< "Reading field p (kinematic)\n" << endl;
3 (
4  IOobject
5  (
6  "p",
7  runTime.timeName(),
8  mesh,
9  IOobject::MUST_READ,
10  IOobject::AUTO_WRITE
11  ),
12  mesh
13 );
14 
15 Info<< "Reading field U\n" << endl;
17 (
18  IOobject
19  (
20  "U",
21  runTime.timeName(),
22  mesh,
23  IOobject::MUST_READ,
24  IOobject::AUTO_WRITE
25  ),
26  mesh
27 );
28 
29 #include "createPhi.H"
30 
31 singlePhaseTransportModel laminarTransport(U, phi);
32 
33 autoPtr<incompressible::turbulenceModel> turbulence
34 (
36 );
37 
38 #include "readGravitationalAcceleration.H"
39 
40 Info<< "Creating field zeta\n" << endl;
41 volVectorField zeta
42 (
43  IOobject
44  (
45  "zeta",
46  runTime.timeName(),
47  mesh,
48  IOobject::READ_IF_PRESENT,
49  IOobject::AUTO_WRITE
50  ),
51  mesh,
52  dimensionedVector("zero", dimLength, vector::zero)
53 );
54 
55 Info<< "Creating field p_gh\n" << endl;
56 volScalarField p_gh
57 (
58  IOobject
59  (
60  "p_gh",
61  runTime.timeName(),
62  mesh,
63  IOobject::MUST_READ,
64  IOobject::AUTO_WRITE
65  ),
66  mesh
67 );
68 
69 // Force p_gh to be consistent with p
70 // Height is made relative to field 'refLevel'
71 p_gh = p - (g & mesh.C());
72 
73 
74 label p_ghRefCell = 0;
75 scalar p_ghRefValue = 0.0;
76 setRefCell(p_gh, pimple.dict(), p_ghRefCell, p_ghRefValue);
77 mesh.setFluxRequired(p_gh.name());
volVectorField U(IOobject( "U", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedVector("zero", dimVelocity, vector::zero), p.boundaryField().types())
surfaceScalarField & phi
Definition: createFields.H:13
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
singlePhaseTransportModel laminarTransport(U, phi)
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
messageStream Info
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
dynamicFvMesh & mesh
const dictionary & pimple
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:50
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
volScalarField & p
Definition: createFields.H:51
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
const dimensionedVector & g