41 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
42 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho")),
43 D_(
dict.lookup<scalar>(
"D")),
44 I_(
dict.lookup<scalar>(
"I")),
45 length_(
dict.lookup<scalar>(
"length")),
46 relaxation_(
dict.lookupOrDefault<scalar>(
"relaxation", 1)),
65 phiName_(ptf.phiName_),
66 rhoName_(ptf.rhoName_),
70 relaxation_(ptf.relaxation_),
82 phiName_(ptf.phiName_),
83 rhoName_(ptf.rhoName_),
87 relaxation_(ptf.relaxation_),
122 D_*turbModel.
nu(patch().index())
128 jump_ *= patch().lookupPatchField<
volScalarField, scalar>(rhoName_);
133 jump_ += (1 - relaxation_)*(jump0_ - jump_);
140 scalar avePressureJump =
gAverage(jump_);
143 Info<< patch().boundaryMesh().mesh().name() <<
':'
144 << patch().name() <<
':'
145 <<
" Average pressure drop :" << avePressureJump
146 <<
" Average velocity :" << aveVelocity
157 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
158 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
Generic GeometricField class.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
This boundary condition provides a jump condition, using the cyclic condition as a base.
virtual void write(Ostream &) const
Write.
Foam::fvPatchFieldMapper.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Abstract base class for turbulence models (RAS, LES and laminar).
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
This boundary condition provides a jump condition, using the cyclic condition as a base.
virtual void write(Ostream &) const
Write.
porousBafflePressureFvPatchField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for handling words, derived from string.
void writeEntryIfDifferent(Ostream &os, const word &entryName, const EntryType &value1, const EntryType &value2)
Helper function to write the keyword and entry only if the.
dimensionedScalar sign(const dimensionedScalar &ds)
const dimensionSet dimPressure
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimMassFlux
SurfaceField< scalar > surfaceScalarField
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
VolField< scalar > volScalarField
dimensioned< scalar > mag(const dimensioned< Type > &)
Type gAverage(const FieldField< Field, Type > &f)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)