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;
77 const DimensionedField<Type, volMesh>& iF,
78 const dictionary&
dict
81 transformFvPatchField<Type>(
p, iF,
dict),
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();
164 tmp<Field<Type>> normalValue =
transform(valueFraction_, refValue_);
166 tmp<Field<Type>> gradValue =
167 this->patchInternalField() + refGrad_/this->
patch().deltaCoeffs();
169 tmp<Field<Type>> transformGradValue =
208 refValue_.writeEntry(
"refValue",
os);
209 refGrad_.writeEntry(
"refGradient",
os);
210 valueFraction_.writeEntry(
"valueFraction",
os);
211 this->writeEntry(
"value",
os);
virtual void write(Ostream &) const
A class for managing temporary objects.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
virtual void rmap(const fvPatchField< Type > &, const labelList &)
virtual tmp< Field< Type > > snGrad() const
Ostream & endl(Ostream &os)
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
virtual bool hasUnmapped() const =0
dimensionSet transform(const dimensionSet &ds)
virtual void write(Ostream &) const
virtual tmp< Field< Type > > snGradTransformDiag() const
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
directionMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
bool notNull(const T *ptr)
virtual void rmap(const fvPatchField< Type > &, const labelList &)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
PtrList< volScalarField > & Y
void operator=(const Field< Type > &)
virtual void autoMap(const fvPatchFieldMapper &)
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)
A traits class, which is primarily used for primitives.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
fileName::Type type(const fileName &name, const bool followLink=true)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
#define WarningInFunction
Base class for direction-mixed boundary conditions.
virtual void autoMap(const fvPatchFieldMapper &)
static const Identity< scalar > I
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)