- prelude to code refactoring NOTE no source code change in this commit, only relocation, renaming and adjustment of Make/{files,options}
49 lines
758 B
C
49 lines
758 B
C
#include "createRDeltaT.H"
|
|
#include "readGravitationalAcceleration.H"
|
|
#include "readhRef.H"
|
|
|
|
Info<< "Creating phaseSystem\n" << endl;
|
|
|
|
autoPtr<twoPhaseSystem> fluidPtr
|
|
(
|
|
twoPhaseSystem::New(mesh)
|
|
);
|
|
twoPhaseSystem& fluid = fluidPtr();
|
|
|
|
dimensionedScalar pMin
|
|
(
|
|
"pMin",
|
|
dimPressure,
|
|
fluid
|
|
);
|
|
|
|
#include "gh.H"
|
|
|
|
volScalarField& p = fluid.phase1().thermoRef().p();
|
|
|
|
Info<< "Reading field p_rgh\n" << endl;
|
|
volScalarField p_rgh
|
|
(
|
|
IOobject
|
|
(
|
|
"p_rgh",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh
|
|
);
|
|
|
|
label pRefCell = 0;
|
|
scalar pRefValue = 0.0;
|
|
setRefCell
|
|
(
|
|
p,
|
|
p_rgh,
|
|
pimple.dict(),
|
|
pRefCell,
|
|
pRefValue
|
|
);
|
|
mesh.setFluxRequired(p_rgh.name());
|