41 valueFraction_(p.
size())
54 refValue_(
"refValue", dict, p.
size()),
55 refGrad_(
"refGradient", dict, p.
size()),
56 valueFraction_(
"valueFraction", dict, p.
size())
72 refValue_(mapper(ptf.refValue_)),
73 refGrad_(mapper(ptf.refGrad_)),
74 valueFraction_(mapper(ptf.valueFraction_))
86 refValue_(ptf.refValue_),
87 refGrad_(ptf.refGrad_),
88 valueFraction_(ptf.valueFraction_)
101 m(refValue_, refValue_);
102 m(refGrad_, refGrad_);
103 m(valueFraction_, valueFraction_);
117 refCast<const directionMixedFvPatchField<Type>>(ptf);
119 refValue_.
rmap(dmptf.refValue_, addr);
120 refGrad_.rmap(dmptf.refGrad_, addr);
121 valueFraction_.rmap(dmptf.valueFraction_, addr);
134 refCast<const directionMixedFvPatchField<Type>>(ptf);
136 refValue_.
reset(dmptf.refValue_);
137 refGrad_.reset(dmptf.refGrad_);
138 valueFraction_.reset(dmptf.valueFraction_);
150 tmp<Field<Type>> gradValue = pif + refGrad_/this->patch().deltaCoeffs();
156 (normalValue + transformGradValue - pif)*
157 this->patch().deltaCoeffs();
164 if (!this->updated())
166 this->updateCoeffs();
172 this->patchInternalField() + refGrad_/this->patch().deltaCoeffs();
192 sqrt(
mag(valueFraction_.component(symmTensor::XX)))
197 sqrt(
mag(valueFraction_.component(symmTensor::YY)))
202 sqrt(
mag(valueFraction_.component(symmTensor::ZZ)))
205 return transformFieldMask<Type>(pow<vector, pTraits<Type>::rank>(
diag));
215 writeEntry(os,
"valueFraction", valueFraction_);
directionMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void reset(const fvPatchField< Type > &)
Reset the fvPatchField to the given fvPatchField.
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void write(Ostream &) const
Write.
commsTypes
Types of communications.
void size(const label)
Override size to be inconsistent with allocated storage.
dimensionedScalar sqrt(const dimensionedScalar &ds)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Base class for direction-mixed boundary conditions.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
static const Identity< scalar > I
Pre-declare SubField and related Field type.
Foam::fvPatchFieldMapper.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
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.
PtrList< volScalarField > & Y
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
dimensionSet transform(const dimensionSet &)