Go to the documentation of this file.
53 valueFraction() = 0.0;
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)),
76 valueFraction() = 0.0;
78 if (
dict.found(
"value"))
102 p0_(ptf.p0_.clone(
p.patch())),
103 phiName_(ptf.phiName_),
104 rhoName_(ptf.rhoName_),
106 alphaName_(ptf.alphaName_),
107 alphaMin_(ptf.alphaMin_),
119 p0_(tppsf.p0_.clone(this->patch().patch())),
120 phiName_(tppsf.phiName_),
121 rhoName_(tppsf.rhoName_),
122 UName_(tppsf.UName_),
123 alphaName_(tppsf.alphaName_),
124 alphaMin_(tppsf.alphaMin_),
137 p0_(tppsf.p0_.clone(this->patch().patch())),
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);
208 mag(
g.value()) > SMALL
213 const scalar t = db().time().timeOutputValue();
219 - rhop*((
g.value() &
patch().Cf()) - ghRef.value())
226 if (alphaName_ !=
"none")
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."
int debug
Static debugging option.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
A class for handling words, derived from Foam::string.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
A class for managing temporary objects.
virtual void updateSnGrad(const scalarField &snGradp)
Update the patch pressure gradient field from the given snGradp.
The prghPermeableAlphaTotalPressure is a mixed boundary condition for the p_rgh variable in multiphas...
prghPermeableAlphaTotalPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar pos0(const dimensionedScalar &ds)
Type gSum(const FieldField< Field, Type > &f)
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
bool updated() const
Return true if the boundary condition has already been updated.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
messageStream Info
Information stream (stdout output on master, null elsewhere)
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
Write.
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...
const uniformDimensionedVectorField & g
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)
Global function forwards to reuseTmpDimensionedField::New.
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const objectRegistry & db() const
Return local objectRegistry.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const std::string patch
OpenFOAM patch number as a std::string.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual void write(Ostream &) const
Write.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensionedScalar pos(const dimensionedScalar &ds)