40 fixedJumpFvPatchScalarField(
p, iF,
dict, true),
44 ?
dict.lookupOrDefault<
word>(
"phi",
"phi")
50 ?
dict.lookupOrDefault<
word>(
"rho",
"rho")
74 ?
dict.lookupOrDefault<scalar>(
"relaxation", units::
fraction, 1)
77 jump0_(cyclicPatch().owner() ? jump()() :
scalarField(
p.size()))
89 fixedJumpFvPatchScalarField(ptf,
p, iF, mapper),
90 phiName_(ptf.phiName_),
91 rhoName_(ptf.rhoName_),
95 relaxation_(ptf.relaxation_),
106 fixedJumpFvPatchScalarField(ptf, iF),
107 phiName_(ptf.phiName_),
108 rhoName_(ptf.rhoName_),
112 relaxation_(ptf.relaxation_),
126 if (cyclicPatch().owner())
149 D_*turbModel.
nu(patch().index())
161 jumpRef() += (1 - relaxation_)*(jump0_ - jumpRef());
168 scalar avePressureJump =
gAverage(jumpRef());
171 Info<< patch().mesh().name() <<
':'
172 << patch().name() <<
':'
173 <<
" Average pressure drop :" << avePressureJump
174 <<
" Average velocity :" << aveVelocity
179 fixedJumpFvPatchScalarField::updateCoeffs();
187 if (cyclicPatch().owner())
189 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
190 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.
word group() const
Return group (extension part of name)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
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 momentum transport models (RAS, LES and laminar).
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
This boundary condition provides a porous baffle pressure jump condition, using the cyclic condition ...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
porousBafflePressureFvPatchField(const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for handling words, derived from string.
const dimensionSet dimless
unitSet length_(dimensionSet(0, 1, 0, 0, 0), 0, 0, 1)
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
void writeEntryIfDifferent(Ostream &os, const word &entryName, const EntryType &value1, const EntryType &value2)
Helper function to write the keyword and entry only if the.
Type gAverage(const UList< Type > &f, const label comm)
dimensionedScalar sign(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet & dimLength
const dimensionSet & dimMassFlux
makePatchTypeField(fvPatchScalarField, atmosphericBoundaryLayerTurbulentEpsilonFvPatchScalarField)
SurfaceField< scalar > surfaceScalarField
VolField< scalar > volScalarField
const dimensionSet & dimPressure
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
const dimensionSet & dimArea
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)