Go to the documentation of this file.
42 valueFraction_(
p.size()),
43 source_(
p.size(),
Zero)
56 refValue_(
"refValue",
dict,
p.size()),
57 refGrad_(
"refGradient",
dict,
p.size()),
58 valueFraction_(
"valueFraction",
dict,
p.size()),
59 source_(
p.size(),
Zero)
76 refValue_(ptf.refValue_, mapper),
77 refGrad_(ptf.refGrad_, mapper),
78 valueFraction_(ptf.valueFraction_, mapper),
79 source_(ptf.source_, mapper)
84 <<
"On field " << iF.name() <<
" patch " <<
p.name()
85 <<
" patchField " << this->
type()
86 <<
" : mapper does not map all values." <<
nl
87 <<
" To avoid this warning fully specify the mapping in derived"
88 <<
" patch fields." <<
endl;
100 refValue_(ptf.refValue_),
101 refGrad_(ptf.refGrad_),
102 valueFraction_(ptf.valueFraction_),
115 refValue_(ptf.refValue_),
116 refGrad_(ptf.refGrad_),
117 valueFraction_(ptf.valueFraction_),
131 refValue_.autoMap(m);
133 valueFraction_.autoMap(m);
148 refCast<const mixedFvPatchField<Type>>(ptf);
150 refValue_.
rmap(mptf.refValue_, addr);
151 refGrad_.rmap(mptf.refGrad_, addr);
152 valueFraction_.rmap(mptf.valueFraction_, addr);
153 source_.rmap(mptf.source_, addr);
161 if (!this->updated())
163 this->updateCoeffs();
168 valueFraction_*refValue_
169 + (1.0 - valueFraction_)
171 this->patchInternalField()
172 + refGrad_/this->
patch().deltaCoeffs()
186 *(refValue_ - this->patchInternalField())
187 *this->
patch().deltaCoeffs()
188 + (1.0 - valueFraction_)*refGrad_;
211 valueFraction_*refValue_
212 + (1.0 - valueFraction_)*refGrad_/this->
patch().deltaCoeffs();
229 valueFraction_*this->
patch().deltaCoeffs()*refValue_
230 + (1.0 - valueFraction_)*refGrad_;
238 refValue_.writeEntry(
"refValue",
os);
239 refGrad_.writeEntry(
"refGradient",
os);
240 valueFraction_.writeEntry(
"valueFraction",
os);
241 source_.writeEntry(
"source",
os);
242 this->writeEntry(
"value",
os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool hasUnmapped() const =0
Are there unmapped values? I.e. do all size() elements get.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Generic templated field type.
mixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
virtual void write(Ostream &) const
Write.
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
This boundary condition provides a base class for 'mixed' type boundary conditions,...
commsTypes
Types of communications.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
const std::string patch
OpenFOAM patch number as a std::string.
A traits class, which is primarily used for primitives.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
#define WarningInFunction
Report a warning using Foam::Warning.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.