Go to the documentation of this file.
60 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
61 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho")),
64 length_(
dict.get<scalar>(
"length")),
65 uniformJump_(
dict.getOrDefault(
"uniformJump",
false))
83 phiName_(ptf.phiName_),
84 rhoName_(ptf.rhoName_),
88 uniformJump_(ptf.uniformJump_)
99 phiName_(ptf.phiName_),
100 rhoName_(ptf.rhoName_),
103 length_(ptf.length_),
104 uniformJump_(ptf.uniformJump_)
115 phiName_(ptf.phiName_),
116 rhoName_(ptf.rhoName_),
119 length_(ptf.length_),
120 uniformJump_(ptf.uniformJump_)
161 const scalar
D = D_->value(t);
162 const scalar
I = I_->value(t);
177 jump()*
patch().lookupPatchField<volScalarField, scalar>(rhoName_)
188 <<
" Average pressure drop :" << avePressureJump
189 <<
" Average velocity :" << aveVelocity
int debug
Static debugging option.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
scalar timeOutputValue() const
Return current time value.
const dimensionSet dimPressure
const DimensionedField< scalar, volMesh > & internalField() const
Return dimensioned internal field reference.
virtual void write(Ostream &) const
Write.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
virtual void setJump(const Field< scalar > &jump)
Set the jump field.
A class for handling words, derived from Foam::string.
constexpr const char *const group
Group name for atomic constants.
Type gAverage(const FieldField< Field, Type > &f)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
static const word propertiesName
Default name of the turbulence properties dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual const word & name() const
Return name.
const fvMesh & mesh() const noexcept
Return the mesh reference.
dimensionedScalar sign(const dimensionedScalar &ds)
bool updated() const
Return true if the boundary condition has already been updated.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const fvBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a jump condition, using the cyclic condition as a base.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const Type & lookupObject(const word &name, const bool recursive=false) const
const GeometricField::Patch & lookupPatchField(const word &name, const GeometricField *=nullptr, const Type *=nullptr) const
porousBafflePressureFvPatchField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Abstract base class for turbulence models (RAS, LES and laminar).
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.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Abstract base class for cyclic coupled interfaces.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const objectRegistry & db() const
Return local objectRegistry.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar & D
const GeometricField::Patch & patchField(const GeometricField &) const
Return the corresponding patchField of the named field.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Foam::fvPatchFieldMapper.
const fvPatch & patch() const
Return patch.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const Time & time() const noexcept
Return time registry.
static const Identity< scalar > I
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual tmp< Field< scalar > > jump() const
Return the "jump" across the patch.
const word & name() const
Return reference to name.