35Foam::prghPermeableAlphaTotalPressureFvPatchScalarField::
36prghPermeableAlphaTotalPressureFvPatchScalarField
57Foam::prghPermeableAlphaTotalPressureFvPatchScalarField::
58prghPermeableAlphaTotalPressureFvPatchScalarField
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)),
92Foam::prghPermeableAlphaTotalPressureFvPatchScalarField::
93prghPermeableAlphaTotalPressureFvPatchScalarField
102 p0_(ptf.p0_.clone(
p.patch())),
103 phiName_(ptf.phiName_),
104 rhoName_(ptf.rhoName_),
106 alphaName_(ptf.alphaName_),
107 alphaMin_(ptf.alphaMin_),
112Foam::prghPermeableAlphaTotalPressureFvPatchScalarField::
113prghPermeableAlphaTotalPressureFvPatchScalarField
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_),
129Foam::prghPermeableAlphaTotalPressureFvPatchScalarField::
130prghPermeableAlphaTotalPressureFvPatchScalarField
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);
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."
Macros for easy insertion into run-time selection tables.
const uniformDimensionedVectorField & g
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void size(const label n)
Older name for setAddressableSize.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
const dimensionSet & dimensions() const
Return const reference to dimensions.
const Type & value() const
Return const reference to value.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a base class for 'mixed' type boundary conditions,...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual Field< scalar > & refGrad()
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual Field< scalar > & refValue()
virtual scalarField & valueFraction()
The prghPermeableAlphaTotalPressure is a mixed boundary condition for the p_rgh variable in multiphas...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void updateSnGrad(const scalarField &snGradp)
Update the patch pressure gradient field from the given snGradp.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
dimensionedScalar pos(const dimensionedScalar &ds)
Type gSum(const FieldField< Field, Type > &f)
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedScalar pos0(const dimensionedScalar &ds)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)