35 const DimensionedField<Type, volMesh>& iF
38 transformFvPatchField<Type>(p, iF),
40 valueFraction_(p.size(), 1.0)
48 const DimensionedField<Type, volMesh>& iF,
49 const dictionary&
dict 52 transformFvPatchField<Type>(p, iF),
53 refValue_(
"refValue", dict, p.size()),
54 valueFraction_(
"valueFraction", dict, p.size())
61 const mixedFixedValueSlipFvPatchField<Type>& ptf,
63 const DimensionedField<Type, volMesh>& iF,
64 const fvPatchFieldMapper& mapper
67 transformFvPatchField<Type>(ptf, p, iF, mapper),
68 refValue_(mapper(ptf.refValue_)),
69 valueFraction_(mapper(ptf.valueFraction_))
76 const mixedFixedValueSlipFvPatchField<Type>& ptf
79 transformFvPatchField<Type>(ptf),
80 refValue_(ptf.refValue_),
81 valueFraction_(ptf.valueFraction_)
88 const mixedFixedValueSlipFvPatchField<Type>& ptf,
89 const DimensionedField<Type, volMesh>& iF
92 transformFvPatchField<Type>(ptf, iF),
93 refValue_(ptf.refValue_),
94 valueFraction_(ptf.valueFraction_)
103 const fvPatchFieldMapper& m
107 m(refValue_, refValue_);
108 m(valueFraction_, valueFraction_);
115 const fvPatchField<Type>& ptf,
121 const mixedFixedValueSlipFvPatchField<Type>& dmptf =
122 refCast<const mixedFixedValueSlipFvPatchField<Type>>(ptf);
124 refValue_.rmap(dmptf.refValue_, addr);
125 valueFraction_.rmap(dmptf.valueFraction_, addr);
133 tmp<vectorField> nHat = this->patch().nf();
134 Field<Type> pif(this->patchInternalField());
138 valueFraction_*refValue_
140 )*this->patch().deltaCoeffs();
150 if (!this->updated())
152 this->updateCoeffs();
159 valueFraction_*refValue_
161 (1.0 - valueFraction_)
162 *
transform(
I - nHat*nHat, this->patchInternalField())
181 valueFraction_*Type(pTraits<Type>::one)
182 + (1.0 - valueFraction_)
183 *transformFieldMask<Type>(
pow<
vector, pTraits<Type>::rank>(
diag));
192 writeEntry(os,
"valueFraction", valueFraction_);
commsTypes
Types of communications.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
Vector< scalar > vector
A scalar version of the templated Vector.
virtual void write(Ostream &) const
Write.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
friend Ostream & operator(Ostream &, const Field< Type > &)
static const Identity< scalar > I
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
List< label > labelList
A List of labels.
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, sets Updated to false.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
virtual void write(Ostream &) const
Write.
dimensioned< scalar > mag(const dimensioned< Type > &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A class for managing temporary objects.
mixedFixedValueSlipFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
dimensionSet transform(const dimensionSet &)