41 valueFraction_(p.
size())
55 refValue_(ptf.refValue_, mapper),
56 refGrad_(ptf.refGrad_, mapper),
57 valueFraction_(ptf.valueFraction_, mapper)
63 "directionMixedFvPatchField<Type>::directionMixedFvPatchField\n" 65 " const directionMixedFvPatchField<Type>&,\n" 67 " const DimensionedField<Type, volMesh>&,\n" 68 " const fvPatchFieldMapper&\n" 70 ) <<
"On field " << iF.name() <<
" patch " << p.name()
71 <<
" patchField " << this->
type()
72 <<
" : mapper does not map all values." <<
nl 73 <<
" To avoid this warning fully specify the mapping in derived" 74 <<
" patch fields." <<
endl;
88 refValue_(
"refValue", dict, p.
size()),
89 refGrad_(
"refGradient", dict, p.
size()),
90 valueFraction_(
"valueFraction", dict, p.
size())
104 refValue_(ptf.refValue_),
105 refGrad_(ptf.refGrad_),
106 valueFraction_(ptf.valueFraction_)
119 refValue_.autoMap(m);
121 valueFraction_.autoMap(m);
135 refCast<const directionMixedFvPatchField<Type> >(ptf);
137 refValue_.
rmap(dmptf.refValue_, addr);
138 refGrad_.rmap(dmptf.refGrad_, addr);
139 valueFraction_.rmap(dmptf.valueFraction_, addr);
151 tmp<Field<Type> > gradValue = pif + refGrad_/this->patch().deltaCoeffs();
157 (normalValue + transformGradValue - pif)*
158 this->patch().deltaCoeffs();
165 if (!this->updated())
167 this->updateCoeffs();
173 this->patchInternalField() + refGrad_/this->patch().deltaCoeffs();
193 sqrt(
mag(valueFraction_.component(symmTensor::XX)))
198 sqrt(
mag(valueFraction_.component(symmTensor::YY)))
203 sqrt(
mag(valueFraction_.component(symmTensor::ZZ)))
206 return transformFieldMask<Type>(pow<vector, pTraits<Type>::rank>(
diag));
214 refValue_.writeEntry(
"refValue", os);
215 refGrad_.writeEntry(
"refGradient", os);
216 valueFraction_.writeEntry(
"valueFraction", os);
217 this->writeEntry(
"value", os);
dimensionedScalar sqrt(const dimensionedScalar &ds)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
dimensioned< scalar > mag(const dimensioned< Type > &)
static const sphericalTensor I(1)
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
void size(const label)
Override size to be inconsistent with allocated storage.
Foam::fvPatchFieldMapper.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
dimensionSet transform(const dimensionSet &)
PtrList< volScalarField > & Y
commsTypes
Types of communications.
virtual void write(Ostream &) const
Write.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Pre-declare SubField and related Field type.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Base class for direction-mixed boundary conditions.
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
Foam::transformFvPatchField.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field.
virtual bool hasUnmapped() const =0
Are there unmapped values? I.e. do all size() elements get.
A class for managing temporary objects.
directionMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.