2 #include "readGravitationalAcceleration.H" 5 Info<<
"Creating phaseSystem\n" <<
endl;
12 phaseSystem::phaseModelList& phases = fluid.phases();
18 Info<<
"Reading field p_rgh\n" <<
endl;
32 if (fluid.found(
"pMin"))
35 <<
"Pressure limits, pMin and pMax, are now read from " 44 fluid.incompressible()
47 if (fluid.incompressible())
52 if (
p_rgh.needReference() && fluid.incompressible())
67 PtrList<volScalarField>
rAUs;
68 PtrList<surfaceScalarField>
rAUfs;
Info<< "Creating phaseSystem\"<< endl;autoPtr< phaseSystem > fluidPtr(phaseSystem::New(mesh))
pimpleNoLoopControl & pimple
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);if(fluid.found("pMin")){ IOWarningInFunction(fluid)<< "Pressure limits, pMin and pMax, are now read from "<< pimple.dict().name()<< endl;}pressureReference pressureReference(p, p_rgh, pimple.dict(), fluid.incompressible());if(fluid.incompressible()){ p=p_rgh+fluid.rho() *gh;}if(p_rgh.needReference() &&fluid.incompressible()){ p+=dimensionedScalar("p", p.dimensions(), pressureReference.refValue() - getRefCellValue(p, pressureReference.refCell()));}p_rgh=p - fluid.rho() *gh;mesh.setFluxRequired(p_rgh.name());PtrList< volScalarField > rAUs
pressureReference pressureReference(mixture.p(), p_rgh, pimple.dict(), false)
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalar getRefCellValue(const volScalarField &field, const label refCelli)
Return the current value of field in the reference cell.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
PtrList< surfaceScalarField > rAUfs
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const volScalarField & gh
#define IOWarningInFunction(ios)
Report an IO warning using Foam::Warning.