createFields.H
Go to the documentation of this file.
1 Info<< "Reading transportProperties\n" << endl;
2 
3 IOdictionary transportProperties
4 (
5  IOobject
6  (
7  "transportProperties",
8  runTime.constant(),
9  mesh,
10  IOobject::MUST_READ_IF_MODIFIED,
11  IOobject::NO_WRITE
12  )
13 );
14 
16 (
17  "rho",
18  dimDensity,
19  transportProperties
20 );
21 
23 (
24  "nu",
26  transportProperties
27 );
28 
30 (
31  "mu",
32  dimensionSet(1, 1, -2, 0, 0, -2, 0),
33  transportProperties
34 );
35 
37 (
38  "sigma",
39  dimensionSet(-1, -3, 3, 0, 0, 2, 0),
40  transportProperties
41 );
42 
43 Info<< "Reading field p\n" << endl;
45 (
46  IOobject
47  (
48  "p",
49  runTime.timeName(),
50  mesh,
51  IOobject::MUST_READ,
52  IOobject::AUTO_WRITE
53  ),
54  mesh
55 );
56 
57 
58 Info<< "Reading field U\n" << endl;
60 (
61  IOobject
62  (
63  "U",
64  runTime.timeName(),
65  mesh,
66  IOobject::MUST_READ,
67  IOobject::AUTO_WRITE
68  ),
69  mesh
70 );
71 
72 #include "createPhi.H"
73 
74 Info<< "Reading field pB\n" << endl;
76 (
77  IOobject
78  (
79  "pB",
80  runTime.timeName(),
81  mesh,
82  IOobject::MUST_READ,
83  IOobject::AUTO_WRITE
84  ),
85  mesh
86 );
87 
88 
89 Info<< "Reading field B\n" << endl;
91 (
92  IOobject
93  (
94  "B",
95  runTime.timeName(),
96  mesh,
97  IOobject::MUST_READ,
98  IOobject::AUTO_WRITE
99  ),
100  mesh
101 );
102 
103 
104 #include "createPhiB.H"
105 
106 dimensionedScalar DB = 1.0/(mu*sigma);
107 DB.name() = "DB";
108 
109 dimensionedScalar DBU = 1.0/(2.0*mu*rho);
110 DBU.name() = "DBU";
111 
112 
113 label pRefCell = 0;
114 scalar pRefValue = 0.0;
115 setRefCell(p, piso.dict(), pRefCell, pRefValue);
116 
117 mesh.setFluxRequired(p.name());
118 mesh.setFluxRequired(pB.name());
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
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
const dimensionedScalar & sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
const dimensionSet dimViscosity
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
pisoControl piso(mesh)
volScalarField mu(IOobject("mu", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), laminarTransport.nu() *rhoInfValue)
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:58
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
rho
Definition: createFields.H:81
dynamicFvMesh & mesh
const word & name() const
Return const reference to name.
volScalarField & p
Definition: createFields.H:23
const dimensionSet dimDensity
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label pRefCell
Definition: createFields.H:106
messageStream Info
scalar pRefValue
Definition: createFields.H:107