createFields.H
Go to the documentation of this file.
1#include "createRDeltaT.H"
2#include "readGravitationalAcceleration.H"
3#include "readhRef.H"
4
5Info<< "Creating phaseSystem\n" << endl;
6
7autoPtr<multiphaseSystem> fluidPtr
8(
9 multiphaseSystem::New(mesh)
10);
11multiphaseSystem& fluid = fluidPtr();
12multiphaseSystem::phaseModelList& phases = fluid.phases();
13
14dimensionedScalar pMin
15(
16 "pMin",
17 dimPressure,
18 fluid
19);
20
21#include "gh.H"
22
23volScalarField& p = phases[0].thermoRef().p();
24
25Info<< "Reading field p_rgh\n" << endl;
26volScalarField p_rgh
27(
28 IOobject
29 (
30 "p_rgh",
31 runTime.timeName(),
32 mesh,
33 IOobject::MUST_READ,
34 IOobject::AUTO_WRITE
35 ),
36 mesh
37);
38
39label pRefCell = 0;
40scalar pRefValue = 0.0;
42(
43 p,
44 p_rgh,
45 pimple.dict(),
48);
49mesh.setFluxRequired(p_rgh.name());
volScalarField & p_rgh
const scalar pRefValue
const label pRefCell
pimpleControl & pimple
twoPhaseSystem & fluid
const dimensionedScalar & pMin
volScalarField & p
dynamicFvMesh & mesh
engineTime & runTime
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
setRefCell(p, pimple.dict(), pRefCell, pRefValue)
Info<< "Reading field p_rgh\n"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field T\n"<< endl;volScalarField T(IOobject("T", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Calculating field g.h\n"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), p_rgh);Info<< "Creating multiphaseSystem\n"<< endl;autoPtr< multiphaseInter::multiphaseSystem > fluidPtr
Definition: createFields.H:66
multiphaseSystem::phaseModelList & phases
Definition: createFields.H:12