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_)
156 internalField().group()
161 const scalar
D = D_->
value(t);
162 const scalar
I = I_->value(t);
168 D*turbModel.
nu(patch().index())
177 jump()*patch().lookupPatchField<volScalarField, scalar>(rhoName_)
183 scalar avePressureJump =
gAverage(jump());
186 Info<< patch().boundaryMesh().mesh().name() <<
':'
187 << patch().name() <<
':'
188 <<
" Average pressure drop :" << avePressureJump
189 <<
" Average velocity :" << aveVelocity
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 templated field type.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
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,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
scalar timeOutputValue() const
Return current time value.
void size(const label n)
Older name for setAddressableSize.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Abstract base class for cyclic coupled interfaces.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const Type & value() const
Return const reference to value.
This boundary condition provides a jump condition, using the cyclic condition as a base.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
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...
This boundary condition provides a jump condition, using the cyclic condition as a base.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Abstract base class for turbulence models (RAS, LES and laminar).
static const word propertiesName
Default name of the turbulence properties dictionary.
const Time & time() const
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
const dimensionSet dimPressure
dimensionedScalar sign(const dimensionedScalar &ds)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere)
static const Identity< scalar > I
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Type gAverage(const FieldField< Field, Type > &f)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
const dimensionedScalar & D