40 valueFraction_(p.
size())
53 refValue_(
"refValue", dict, p.
size()),
54 refGrad_(
"refGradient", dict, p.
size()),
55 valueFraction_(
"valueFraction", dict, p.
size())
68 const bool mappingRequired
72 refValue_(mapper(ptf.refValue_)),
73 refGrad_(mapper(ptf.refGrad_)),
74 valueFraction_(mapper(ptf.valueFraction_))
76 if (mappingRequired &&
notNull(iF) && mapper.hasUnmapped())
79 <<
"On field " << iF.name() <<
" patch " << p.name()
80 <<
" patchField " << this->
type()
81 <<
" : mapper does not map all values." <<
nl 82 <<
" To avoid this warning fully specify the mapping in derived" 83 <<
" patch fields." <<
endl;
95 refValue_(ptf.refValue_),
96 refGrad_(ptf.refGrad_),
97 valueFraction_(ptf.valueFraction_)
109 refValue_(ptf.refValue_),
110 refGrad_(ptf.refGrad_),
111 valueFraction_(ptf.valueFraction_)
124 m(refValue_, refValue_);
125 m(refGrad_, refGrad_);
126 m(valueFraction_, valueFraction_);
140 refCast<const mixedFvPatchField<Type>>(ptf);
142 refValue_.
rmap(mptf.refValue_, addr);
143 refGrad_.rmap(mptf.refGrad_, addr);
144 valueFraction_.rmap(mptf.valueFraction_, addr);
151 if (!this->updated())
153 this->updateCoeffs();
158 valueFraction_*refValue_
160 (1.0 - valueFraction_)*
162 this->patchInternalField()
163 + refGrad_/this->patch().deltaCoeffs()
177 *(refValue_ - this->patchInternalField())
178 *this->patch().deltaCoeffs()
179 + (1.0 - valueFraction_)*refGrad_;
203 valueFraction_*refValue_
204 + (1.0 - valueFraction_)*refGrad_/this->patch().deltaCoeffs();
221 valueFraction_*this->patch().deltaCoeffs()*refValue_
222 + (1.0 - valueFraction_)*refGrad_;
232 writeEntry(os,
"valueFraction", valueFraction_);
A list of keyword definitions, which are a keyword followed by any number of values (e...
commsTypes
Types of communications.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Traits class for primitives.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
This boundary condition provides a base class for 'mixed' type boundary conditions, i.e. conditions that mix fixed value and patch-normal gradient conditions.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
Pre-declare SubField and related Field type.
virtual tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
Foam::fvPatchFieldMapper.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
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.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
#define WarningInFunction
Report a warning using Foam::Warning.
mixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void write(Ostream &) const
Write.
A class for managing temporary objects.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.