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;
96 const mixedFvPatchField<Type>& ptf
99 fvPatchField<Type>(ptf),
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);
A class for managing temporary objects.
static constexpr const zero Zero
friend Ostream & operator(Ostream &, const Field< Type > &)
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Ostream & endl(Ostream &os)
virtual bool hasUnmapped() const =0
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
virtual void autoMap(const fvPatchFieldMapper &)
Generic templated field type.
mixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual tmp< Field< Type > > gradientInternalCoeffs() const
virtual void write(Ostream &) const
bool notNull(const T *ptr)
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,...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A traits class, which is primarily used for primitives.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
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 &)
#define WarningInFunction
virtual tmp< Field< Type > > snGrad() const
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)