Go to the documentation of this file.
41 valueFraction_(
p.size())
62 <<
"On field " << iF.name() <<
" patch " <<
p.name()
63 <<
" patchField " << this->
type()
64 <<
" : mapper does not map all values." <<
nl
65 <<
" To avoid this warning fully specify the mapping in derived"
66 <<
" patch fields." <<
endl;
80 refValue_(
"refValue",
dict,
p.size()),
81 refGrad_(
"refGradient",
dict,
p.size()),
82 valueFraction_(
"valueFraction",
dict,
p.size())
111 refValue_.autoMap(m);
113 valueFraction_.autoMap(m);
127 refCast<const directionMixedFvPatchField<Type> >(ptf);
130 refGrad_.rmap(dmptf.
refGrad_, addr);
143 tmp<Field<Type> > gradValue = pif + refGrad_/this->patch().deltaCoeffs();
149 (normalValue + transformGradValue - pif)*
150 this->patch().deltaCoeffs();
157 if (!this->updated())
159 this->updateCoeffs();
165 this->patchInternalField() + refGrad_/this->patch().deltaCoeffs();
185 sqrt(
mag(valueFraction_.component(symmTensor::XX)))
190 sqrt(
mag(valueFraction_.component(symmTensor::YY)))
195 sqrt(
mag(valueFraction_.component(symmTensor::ZZ)))
206 refValue_.writeEntry(
"refValue", os);
207 refGrad_.writeEntry(
"refGradient", os);
208 valueFraction_.writeEntry(
"valueFraction", os);
209 this->writeEntry(
"value", os);
A class for managing temporary objects.
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.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool hasUnmapped() const =0
Are there unmapped values? I.e. do all size() elements get.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual void write(Ostream &) const
Write.
dimensionSet transform(const dimensionSet &)
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
Field< Type > refValue_
Value field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
directionMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
symmTensorField valueFraction_
Fraction (0-1) of value used for boundary condition.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
static const sphericalTensor I(1)
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
commsTypes
Types of communications.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedScalar sqrt(const dimensionedScalar &ds)
Traits class for primitives.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
#define WarningInFunction
Report a warning using Foam::Warning.
Base class for direction-mixed boundary conditions.
Field< Type > refGrad_
Normal gradient field.
PtrList< volScalarField > & Y
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...