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  "nu",
19  transportProperties.lookup("nu")
20 );
21 
22 Info<< "Reading field p\n" << endl;
24 (
25  IOobject
26  (
27  "p",
28  runTime.timeName(),
29  mesh,
30  IOobject::MUST_READ,
31  IOobject::AUTO_WRITE
32  ),
33  mesh
34 );
35 
36 
37 Info<< "Reading field U\n" << endl;
39 (
40  IOobject
41  (
42  "U",
43  runTime.timeName(),
44  mesh,
45  IOobject::MUST_READ,
46  IOobject::AUTO_WRITE
47  ),
48  mesh
49 );
50 
51 
52 #include "createPhi.H"
53 
54 
55 label pRefCell = 0;
56 scalar pRefValue = 0.0;
57 setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
58 mesh.setFluxRequired(p.name());
const dimensionSet dimViscosity
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
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:58
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
dynamicFvMesh & mesh
volScalarField & p
Definition: createFields.H:23
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.
messageStream Info
bool setRefCell(const volScalarField &field, const volScalarField &fieldRef, const dictionary &dict, label &refCelli, scalar &refValue, const bool forceReference=false)
If the field fieldRef needs referencing find the reference cell nearest.
Definition: findRefCell.C:31