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 
16 Info<< "Reading field p_rgh\n" << endl;
18 (
19  IOobject
20  (
21  "p_rgh",
22  runTime.timeName(),
23  mesh,
24  IOobject::MUST_READ,
25  IOobject::AUTO_WRITE
26  ),
27  mesh
28 );
29 
30 Info<< "Reading field U\n" << endl;
32 (
33  IOobject
34  (
35  "U",
36  runTime.timeName(),
37  mesh,
38  IOobject::MUST_READ,
39  IOobject::AUTO_WRITE
40  ),
41  mesh
42 );
43 
44 
45 Info<< "Reading field T\n" << endl;
47 (
48  IOobject
49  (
50  "T",
51  runTime.timeName(),
52  mesh,
53  IOobject::MUST_READ,
54  IOobject::AUTO_WRITE
55  ),
56  mesh
57 );
58 
59 Info<< "Reading transportProperties\n" << endl;
60 
61  IOdictionary transportProperties
62  (
63  IOobject
64  (
65  "transportProperties",
66  runTime.constant(),
67  mesh,
68  IOobject::MUST_READ_IF_MODIFIED,
69  IOobject::NO_WRITE
70  )
71  );
72 
73 
74 Info<< "Reading diffusivity DT\n" << endl;
75 
77  (
78  transportProperties.lookup("DT")
79  );
80 
81 Info<< "Reading turbulent Schmidt number\n" << endl;
82 
83  scalar Sct
84  (
85  readScalar(transportProperties.lookup("SchmidtTurbulent"))
86  );
87 
88  bool solveMomentum =
89  transportProperties.lookupOrDefault("SolveMomentum",true);
90 
91 Info<< "Solving momentum equation: " << solveMomentum << endl;
92 
93 
94  bool solveScalar =
95  transportProperties.lookupOrDefault("SolveScalar",true);
96 
97 Info<< "Solving turbulent scalar transport: " << solveScalar << endl;
98 
99 
100 #include "createPhi.H"
101 
102 
103 label pRefCell = 0;
104 scalar pRefValue = 0.0;
105 setRefCell(p, piso.dict(), pRefCell, pRefValue);
106 mesh.setFluxRequired(p.name());
107 
108 
109 singlePhaseTransportModel laminarTransport(U, phi);
110 
111 autoPtr<incompressible::turbulenceModel> turbulence
112 (
114 );
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
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
readScalar
#define readScalar
Definition: doubleScalar.C:38
Foam::volVectorField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
laminarTransport
singlePhaseTransportModel laminarTransport(U, phi)
T
const volScalarField & T
Definition: createFields.H:25
U
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), Urel+SRF->U())
p_rgh
volScalarField & p_rgh
Definition: setRegionFluidFields.H:31