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,
20 );
21 
23 (
24  "nu",
27 );
28 
30 (
31  "mu",
32  dimensionSet(1, 1, -2, 0, 0, -2, 0),
34 );
35 
37 (
38  "sigma",
39  dimensionSet(-1, -3, 3, 0, 0, 2, 0),
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());
runTime
engineTime & runTime
Definition: createEngineTime.H:13
U
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
Foam::dimDensity
const dimensionSet dimDensity
transportProperties
IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
B
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
Foam::dimensioned::name
const word & name() const
Return const reference to name.
Definition: dimensionedType.C:406
rho
rho
Definition: createFields.H:81
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
setRefCell
setRefCell(p, pimple.dict(), pRefCell, pRefValue)
createPhiB.H
nu
volScalarField & nu
Definition: readMechanicalProperties.H:176
piso
pisoControl piso(mesh)
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:42
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
p
volScalarField & p
Definition: createFields.H:23
Foam::dimViscosity
const dimensionSet dimViscosity
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::volVectorField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:62
mu
volScalarField mu(IOobject("mu", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), laminarTransport.nu() *rhoInfValue)
pRefCell
label pRefCell
Definition: createFields.H:75
pRefValue
scalar pRefValue
Definition: createFields.H:76
sigma
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)