createFields.H
Go to the documentation of this file.
1Info<< "Reading transportProperties\n" << endl;
2
3IOdictionary 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",
25 dimViscosity,
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
43Info<< "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
58Info<< "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
74Info<< "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
89Info<< "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
106dimensionedScalar DB = 1.0/(mu*sigma);
107DB.name() = "DB";
108
109dimensionedScalar DBU = 1.0/(2.0*mu*rho);
110DBU.name() = "DBU";
111
112
113label pRefCell = 0;
114scalar pRefValue = 0.0;
116
117mesh.setFluxRequired(p.name());
118mesh.setFluxRequired(pB.name());
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
const scalar pRefValue
const label pRefCell
const word & name() const
Return const reference to name.
U
Definition: pEqn.H:72
volScalarField & p
const volScalarField & mu
dynamicFvMesh & mesh
engineTime & runTime
pisoControl piso(mesh)
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:83
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:82
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
volScalarField & nu
IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
setRefCell(p, pimple.dict(), pRefCell, pRefValue)