createFields.H
Go to the documentation of this file.
1 Info<< "Reading field p\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 
30 
31 
32 Info<< "Reading field airAge\n" << endl;
33 
34 volScalarField airAge
35 (
36  IOobject
37  (
38  "airAge",
39  runTime.timeName(),
40  mesh,
41  IOobject::MUST_READ,
42  IOobject::AUTO_WRITE
43  ),
44  mesh
45  );
46 
47 
48 Info<< "Reading transportProperties\n" << endl;
49 
50 IOdictionary transportProperties
51 (
52  IOobject
53  (
54  "transportProperties",
55  runTime.constant(),
56  mesh,
57  IOobject::MUST_READ_IF_MODIFIED,
58  IOobject::NO_WRITE
59  )
60  );
61 
62 
63 Info<< "Reading diffusivity DT\n" << endl;
64 
66 (
67  "DT",
69  transportProperties
70  );
71 
72 
73 #include "createPhi.H"
74 //#include "createFvOptions.H"
75 
76 
77 label pRefCell = 0;
78 scalar pRefValue = 0.0;
80 mesh.setFluxRequired(p.name());
81 
82 
83 singlePhaseTransportModel laminarTransport(U, phi);
84 
85  autoPtr<incompressible::turbulenceModel> turbulence
86  (
88  );
pRefCell
label pRefCell
Definition: createFields.H:112
pRefValue
scalar pRefValue
Definition: createFields.H:113
Foam::compressible::New
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
Definition: turbulentFluidThermoModel.C:36
setRefCell
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
phi
surfaceScalarField & phi
Definition: createFields.H:13
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
simple
Simple relative velocity model.
Foam::dimTime
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
Foam::dimArea
const dimensionSet dimArea(sqr(dimLength))
Definition: dimensionSets.H:57
Foam::label
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
turbulence
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
Foam::Info
messageStream Info
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:41
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
p
volScalarField & p
Definition: createFields.H:51
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam::volVectorField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
laminarTransport
singlePhaseTransportModel laminarTransport(U, phi)
U
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), Urel+SRF->U())