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);
145 tmp<Field<Type>> gradValue = pif + refGrad_/this->patch().deltaCoeffs();
151 (normalValue + transformGradValue - pif)*
152 this->patch().deltaCoeffs();
159 if (!this->updated())
161 this->updateCoeffs();
167 this->patchInternalField() + refGrad_/this->patch().deltaCoeffs();
208 refValue_.writeEntry(
"refValue",
os);
209 refGrad_.writeEntry(
"refGradient",
os);
210 valueFraction_.writeEntry(
"valueFraction",
os);
211 this->writeEntry(
"value",
os);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual bool hasUnmapped() const =0
Any unmapped values?
Generic templated field type.
void operator=(const Field< Type > &)
Copy assignment.
void evaluate()
Evaluate boundary conditions.
const word & name() const noexcept
Return the object name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
commsTypes
Types of communications.
void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
void rmap(const atmBoundaryLayer &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Base class for direction-mixed boundary conditions.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
virtual tmp< Field< Type > > snGrad() const
Return gradient at boundary.
virtual void rmap(const fvPatchField< Type > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual tmp< Field< Type > > snGradTransformDiag() const
Return face-gradient transform diagonal.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A traits class, which is primarily used for primitives.
A class for managing temporary objects.
OBJstream os(runTime.globalPath()/outputName)
#define WarningInFunction
Report a warning using Foam::Warning.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
static const Identity< scalar > I
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
bool notNull(const T *ptr)
True if ptr is not a pointer (of type T) to the nullObject.
void diag(pointPatchField< vector > &, const pointPatchField< tensor > &)
constexpr char nl
The newline '\n' character (0x0a)