createFields.H
Go to the documentation of this file.
1 Info<< "Reading physicalProperties\n" << endl;
2 
3 IOdictionary physicalProperties
4 (
5  IOobject
6  (
7  "physicalProperties",
8  runTime.constant(),
9  mesh,
10  IOobject::MUST_READ_IF_MODIFIED,
11  IOobject::NO_WRITE
12  )
13 );
14 
16 (
17  "nu",
19  physicalProperties.lookup("nu")
20 );
21 
22 Info<< "Reading field p\n" << endl;
24 (
25  IOobject
26  (
27  "p",
28  runTime.name(),
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.name(),
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, piso.dict(), pRefCell, pRefValue);
58 mesh.schemes().setFluxRequired(p.name());
pisoControl piso(mesh)
volScalarField & p
Definition: createFields.H:25
const dimensionSet dimViscosity
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
VolField< vector > volVectorField
Definition: volFieldsFwd.H:62
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
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
messageStream Info
VolField< scalar > volScalarField
Definition: volFieldsFwd.H:61
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
volVectorField U(IOobject("U", runTime.name(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))