Go to the documentation of this file.
67 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
68 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho")),
69 UName_(
dict.getOrDefault<
word>(
"U",
"U")),
70 alphaName_(
dict.getOrDefault<
word>(
"alpha",
"none")),
71 alphaMin_(
dict.getOrDefault<scalar>(
"alphaMin", 1)),
78 if (
dict.found(
"value"))
95 const prghPermeableAlphaTotalPressureFvPatchScalarField& ptf,
97 const DimensionedField<scalar, volMesh>& iF,
98 const fvPatchFieldMapper& mapper
101 mixedFvPatchField<scalar>(ptf,
p, iF, mapper),
102 p0_(ptf.p0_.clone(
p.
patch())),
103 phiName_(ptf.phiName_),
104 rhoName_(ptf.rhoName_),
106 alphaName_(ptf.alphaName_),
107 alphaMin_(ptf.alphaMin_),
120 phiName_(tppsf.phiName_),
121 rhoName_(tppsf.rhoName_),
122 UName_(tppsf.UName_),
123 alphaName_(tppsf.alphaName_),
124 alphaMin_(tppsf.alphaMin_),
138 phiName_(tppsf.phiName_),
139 rhoName_(tppsf.rhoName_),
140 UName_(tppsf.UName_),
141 alphaName_(tppsf.alphaName_),
142 alphaMin_(tppsf.alphaMin_),
172 refCast<const prghPermeableAlphaTotalPressureFvPatchScalarField>(ptf);
176 p0_->rmap(tptf.p0_(), addr);
213 const scalar t = db().time().timeOutputValue();
219 - rhop*((
g.
value() &
patch().Cf()) - ghRef.value())
226 if (alphaName_ !=
"none")
230 tmp<scalarField> alphaCut(
pos(alphap - alphaMin_));
231 valueFraction() = 1 - alphaCut;
236 const scalar
phi =
gSum(-phip);
238 Info<<
patch().boundaryMesh().mesh().name() <<
':'
239 <<
patch().name() <<
':'
240 << this->internalField().name() <<
" :"
241 <<
" mass flux[Kg/s]:" <<
phi
245 curTimeIndex_ = this->db().time().timeIndex();
258 if (curTimeIndex_ != this->db().time().
timeIndex())
261 <<
"updateCoeffs(const scalarField& snGradp) MUST be called before"
262 " updateCoeffs() or evaluate() to set the boundary gradient."
294 prghPermeableAlphaTotalPressureFvPatchScalarField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
fvPatchField< scalar > fvPatchScalarField
List< label > labelList
A List of labels.
virtual void operator=(const UList< Type > &)
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual scalarField & valueFraction()
A class for handling words, derived from Foam::string.
virtual Field< scalar > & refValue()
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
A class for managing temporary objects.
virtual void updateSnGrad(const scalarField &snGradp)
The prghPermeableAlphaTotalPressure is a mixed boundary condition for the p_rgh variable in multiphas...
virtual Field< scalar > & refGrad()
prghPermeableAlphaTotalPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Ostream & endl(Ostream &os)
const Type & value() const
dimensionedScalar pos0(const dimensionedScalar &ds)
Type gSum(const FieldField< Field, Type > &f)
virtual void rmap(const fvPatchScalarField &, const labelList &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
virtual void updateCoeffs()
virtual void autoMap(const fvPatchFieldMapper &)
UniformDimensionedField< vector > uniformDimensionedVectorField
UniformDimensionedField< scalar > uniformDimensionedScalarField
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void write(Ostream &) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
Generic dimensioned Type class.
const uniformDimensionedVectorField & g
Vector< scalar > vector
A scalar version of the templated Vector.
virtual void updateCoeffs()
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual void autoMap(const fvPatchFieldMapper &)
#define FatalErrorInFunction
const objectRegistry & db() const
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual void write(Ostream &) const
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const dimensionSet & dimensions() const
virtual void rmap(const fvPatchField< Type > &, const labelList &)
static const gravity & New(const Time &runTime)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensionedScalar pos(const dimensionedScalar &ds)