61 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
62 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho")),
65 length_(
dict.
get<scalar>(
"length")),
66 uniformJump_(
dict.getOrDefault(
"uniformJump",
false))
80 const this_bctype& ptf,
82 const DimensionedField<scalar, volMesh>& iF,
83 const fvPatchFieldMapper& mapper
86 parent_bctype(ptf,
p, iF, mapper),
87 phiName_(ptf.phiName_),
88 rhoName_(ptf.rhoName_),
92 uniformJump_(ptf.uniformJump_)
98 const this_bctype& ptf,
102 parent_bctype(ptf, iF),
103 phiName_(ptf.phiName_),
104 rhoName_(ptf.rhoName_),
107 length_(ptf.length_),
108 uniformJump_(ptf.uniformJump_)
141 internalField().
group()
145 const scalar t = db().time().timeOutputValue();
146 const scalar
D = D_->
value(t);
147 const scalar
I = I_->value(t);
153 D*turbModel.nu(
patch().index())
162 jump()*
patch().lookupPatchField<volScalarField>(rhoName_)
170 scalar avePressureJump =
gAverage(jump());
173 Info<<
patch().boundaryMesh().mesh().name() <<
':' 174 <<
patch().name() <<
':' 175 <<
" Average pressure drop :" << avePressureJump
176 <<
" Average velocity :" << aveVelocity
180 this->parent_bctype::updateCoeffs();
187 os.writeEntryIfDifferent<word>(
"phi",
"phi", phiName_);
188 os.writeEntryIfDifferent<word>(
"rho",
"rho", rhoName_);
191 os.writeEntry(
"length", length_);
192 os.writeEntry(
"uniformJump", uniformJump_);
203 porousBafflePressureFvPatchField
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
dimensionedScalar sign(const dimensionedScalar &ds)
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const Type & value() const noexcept
Return const reference to value.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
virtual void write(Ostream &) const
Write.
virtual void evaluate(const Pstream::commsTypes commsType)
Evaluate the patch field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Macros for easy insertion into run-time selection tables.
constexpr const char *const group
Group name for atomic constants.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
static const Identity< scalar > I
fvPatchField< scalar > fvPatchScalarField
static const word propertiesName
Default name of the turbulence properties dictionary.
constexpr T & get(FixedList< T, N > &list) noexcept
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const dimensionSet dimPressure
int debug
Static debugging option.
Type gAverage(const FieldField< Field, Type > &f, const label comm)
The global arithmetic average of a FieldField.
decomposeUsingBbs false
Use bounding boxes (default) or unique decomposition of triangles (i.e. do not duplicate triangles) ...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
porousBafflePressureFvPatchField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
messageStream Info
Information stream (stdout output on master, null elsewhere)
const dimensionedScalar & D
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
"buffered" : (MPI_Bsend, MPI_Recv)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)