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());
scalar pRefValue
Definition: createFields.H:113
volVectorField U(IOobject( "U", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedVector("zero", dimVelocity, vector::zero), p.boundaryField().types())
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
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)
messageStream Info
dynamicFvMesh & mesh
const dimensionSet dimDensity
const volScalarField & mu
Atomic mass unit.
Definition: createFields.H:13
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
const word & name() const
Return const reference to name.
volScalarField & p
Definition: createFields.H:51
const dimensionSet dimViscosity
rho
Definition: createFields.H:79
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
volScalarField & nu
label pRefCell
Definition: createFields.H:112
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.