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 Info<< "Reading field S\n" << endl;
32 (
33  IOobject
34  (
35  "S",
36  runTime.timeName(),
37  mesh,
38  IOobject::MUST_READ,
39  IOobject::AUTO_WRITE
40  ),
41  mesh
42 );
43 
44 Info<< "Reading transportProperties\n" << endl;
45 
46  IOdictionary transportProperties
47  (
48  IOobject
49  (
50  "transportProperties",
51  runTime.constant(),
52  mesh,
53  IOobject::MUST_READ_IF_MODIFIED,
54  IOobject::NO_WRITE
55  )
56  );
57 
58 
59 Info<< "Reading diffusivity DT\n" << endl;
60 
62  (
63  transportProperties.lookup("DT")
64  );
65 
66 Info<< "Reading turbulent Schmidt number\n" << endl;
67 
68  scalar Sct
69  (
70  readScalar(transportProperties.lookup("SchmidtTurbulent"))
71  );
72 
73  bool solveMomentum =
74  transportProperties.lookupOrDefault("SolveMomentum",true);
75 
76 Info<< "Solving momentum equation: " << solveMomentum << endl;
77 
78 
79  bool solveScalar =
80  transportProperties.lookupOrDefault("SolveScalar",true);
81 
82 Info<< "Solving turbulent scalar transport: " << solveScalar << endl;
83 
84 
85 #include "createPhi.H"
86 
87 
88 label pRefCell = 0;
89 scalar pRefValue = 0.0;
90 setRefCell(p, piso.dict(), pRefCell, pRefValue);
91 mesh.setFluxRequired(p.name());
92 
93 
94 singlePhaseTransportModel laminarTransport(U, phi);
95 
96 autoPtr<incompressible::turbulenceModel> turbulence
97 (
99 );
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)
U
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), Urel+SRF->U())