40 fixedJumpFvPatchScalarField(
p, iF,
dict, true),
44 ?
dict.lookupOrDefault<
word>(
"phi",
"phi")
50 ?
dict.lookupOrDefault<
word>(
"rho",
"rho")
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_),
111 length_(ptf.length_),
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().boundaryMesh().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.
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....
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 turbulence 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.
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 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.
dimensionedScalar sign(const dimensionedScalar &ds)
const dimensionSet dimPressure
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimMassFlux
const dimensionSet dimless
SurfaceField< scalar > surfaceScalarField
const dimensionSet dimLength
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)
const dimensionSet dimArea
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const unitConversion unitFraction