Go to the documentation of this file.
43 valueFraction_(
p.size())
57 refValue_(ptf.refValue_, mapper),
58 refGrad_(ptf.refGrad_, mapper),
59 valueFraction_(ptf.valueFraction_, mapper)
64 <<
"On field " << iF.name() <<
" patch " <<
p.name()
65 <<
" patchField " << this->
type()
66 <<
" : mapper does not map all values." <<
nl
67 <<
" To avoid this warning fully specify the mapping in derived"
68 <<
" patch fields." <<
endl;
82 refValue_(
"refValue",
dict,
p.size()),
83 refGrad_(
"refGradient",
dict,
p.size()),
84 valueFraction_(
"valueFraction",
dict,
p.size())
98 refValue_(ptf.refValue_),
99 refGrad_(ptf.refGrad_),
100 valueFraction_(ptf.valueFraction_)
113 refValue_.autoMap(m);
115 valueFraction_.autoMap(m);
129 refCast<const directionMixedFvPatchField<Type>>(ptf);
131 refValue_.
rmap(dmptf.refValue_, addr);
132 refGrad_.rmap(dmptf.refGrad_, addr);
133 valueFraction_.rmap(dmptf.valueFraction_, addr);
151 (normalValue + transformGradValue - pif)*
152 this->
patch().deltaCoeffs();
159 if (!this->updated())
161 this->updateCoeffs();
167 this->patchInternalField() + refGrad_/this->
patch().deltaCoeffs();
187 sqrt(
mag(valueFraction_.component(symmTensor::XX)))
192 sqrt(
mag(valueFraction_.component(symmTensor::YY)))
197 sqrt(
mag(valueFraction_.component(symmTensor::ZZ)))
208 refValue_.writeEntry(
"refValue", os);
209 refGrad_.writeEntry(
"refGradient", os);
210 valueFraction_.writeEntry(
"valueFraction", os);
211 this->writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A class for managing temporary objects.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
virtual bool hasUnmapped() const =0
Are there unmapped values? I.e. do all size() elements get.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
virtual void write(Ostream &) const
Write.
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
Generic templated field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
directionMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
PtrList< volScalarField > & Y
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
commsTypes
Types of communications.
const std::string patch
OpenFOAM patch number as a std::string.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Traits class for primitives.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
#define WarningInFunction
Report a warning using Foam::Warning.
Base class for direction-mixed boundary conditions.
string evaluate(const std::string &s, size_t pos=0, size_t len=std::string::npos)
static const Identity< scalar > I
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...