createFields.H
Go to the documentation of this file.
1 #include "readGravitationalAcceleration.H"
2 #include "readhRef.H"
3 
4 Info<< "Creating phaseSystem\n" << endl;
5 
6 autoPtr<multiphaseSystem> fluidPtr
7 (
9 );
10 multiphaseSystem& fluid = fluidPtr();
11 multiphaseSystem::phaseModelList& phases = fluid.phases();
12 
13 surfaceScalarField& phi = fluid.phi();
14 
16 (
17  "pMin",
19  fluid
20 );
21 
22 #include "gh.H"
23 
24 volScalarField& p = phases[0].thermo().p();
25 
26 Info<< "Reading field p_rgh\n" << endl;
28 (
29  IOobject
30  (
31  "p_rgh",
32  runTime.timeName(),
33  mesh,
34  IOobject::MUST_READ,
35  IOobject::AUTO_WRITE
36  ),
37  mesh
38 );
39 
40 label pRefCell = 0;
41 scalar pRefValue = 0.0;
43 (
44  p,
45  p_rgh,
46  pimple.dict(),
47  pRefCell,
48  pRefValue
49 );
50 mesh.setFluxRequired(p_rgh.name());
51 
52 const IOMRFZoneList& MRF = fluid.MRF();
53 fv::IOoptionList& fvOptions = fluid.fvOptions();
const dimensionSet dimPressure
scalar pRefValue
Definition: createFields.H:113
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)
volScalarField & p_rgh
messageStream Info
dynamicFvMesh & mesh
const dictionary & pimple
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Info<< "Creating phaseSystem\n"<< endl;autoPtr< multiphaseSystem > fluidPtr(multiphaseSystem::New(mesh))
label pRefCell
Definition: createFields.H:112
dimensionedScalar pMin("pMin", dimPressure, fluid)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.