Go to the documentation of this file.
42 valueFraction_(
p.size())
55 refValue_(
"refValue",
dict,
p.size()),
56 refGrad_(
"refGradient",
dict,
p.size()),
57 valueFraction_(
"valueFraction",
dict,
p.size())
74 refValue_(ptf.refValue_, mapper),
75 refGrad_(ptf.refGrad_, mapper),
76 valueFraction_(ptf.valueFraction_, mapper)
81 <<
"On field " << iF.name() <<
" patch " <<
p.name()
82 <<
" patchField " << this->
type()
83 <<
" : mapper does not map all values." <<
nl
84 <<
" To avoid this warning fully specify the mapping in derived"
85 <<
" patch fields." <<
endl;
97 refValue_(ptf.refValue_),
98 refGrad_(ptf.refGrad_),
99 valueFraction_(ptf.valueFraction_)
111 refValue_(ptf.refValue_),
112 refGrad_(ptf.refGrad_),
113 valueFraction_(ptf.valueFraction_)
126 refValue_.autoMap(m);
128 valueFraction_.autoMap(m);
142 refCast<const mixedFvPatchField<Type>>(ptf);
144 refValue_.
rmap(mptf.refValue_, addr);
145 refGrad_.rmap(mptf.refGrad_, addr);
146 valueFraction_.rmap(mptf.valueFraction_, addr);
153 if (!this->updated())
155 this->updateCoeffs();
160 valueFraction_*refValue_
162 (1.0 - valueFraction_)*
164 this->patchInternalField()
165 + refGrad_/this->
patch().deltaCoeffs()
179 *(refValue_ - this->patchInternalField())
180 *this->
patch().deltaCoeffs()
181 + (1.0 - valueFraction_)*refGrad_;
205 valueFraction_*refValue_
206 + (1.0 - valueFraction_)*refGrad_/this->
patch().deltaCoeffs();
223 valueFraction_*this->
patch().deltaCoeffs()*refValue_
224 + (1.0 - valueFraction_)*refGrad_;
232 refValue_.writeEntry(
"refValue", os);
233 refGrad_.writeEntry(
"refGradient", os);
234 valueFraction_.writeEntry(
"valueFraction", os);
235 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.
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,...
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.
Traits class 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.
string evaluate(const std::string &s, size_t pos=0, size_t len=std::string::npos)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...