42 const polyMesh&
mesh =
p.boundaryMesh().mesh()();
43 label patchi =
mesh.boundaryMesh().findPatchID(
p.name());
51 return &
mesh.boundaryMesh()[patchi];
67 refValueFunc_(nullptr),
68 refPointValueFunc_(nullptr)
102 &this->internalField().db()
121 const uniformFixedValuePointPatchField<Type>& ptf,
123 const DimensionedField<Type, pointMesh>& iF,
124 const pointPatchFieldMapper& mapper
127 fixedValuePointPatchField<Type>(ptf,
p, iF, mapper),
128 refValueFunc_(ptf.refValueFunc_.clone(*(this->getPatch(
p)))),
129 refPointValueFunc_(ptf.refPointValueFunc_.clone())
131 if (mapper.direct() && !mapper.hasUnmapped())
134 this->
map(ptf, mapper);
148 const uniformFixedValuePointPatchField<Type>& ptf
151 fixedValuePointPatchField<Type>(ptf),
152 refValueFunc_(ptf.refValueFunc_.clone(*(this->getPatch(this->
patch())))),
153 refPointValueFunc_(ptf.refPointValueFunc_.clone())
166 refValueFunc_(ptf.refValueFunc_.clone(*(this->getPatch(this->
patch())))),
167 refPointValueFunc_(ptf.refPointValueFunc_.clone())
183 refValueFunc_().autoMap(mapper);
185 if (refValueFunc_().constant())
191 if (refPointValueFunc_)
193 if (refPointValueFunc_().constant())
205 const pointPatchField<Type>& ptf,
211 const uniformFixedValuePointPatchField& tiptf =
212 refCast<const uniformFixedValuePointPatchField>(ptf);
214 if (refValueFunc_ && tiptf.refValueFunc_)
216 refValueFunc_().rmap(tiptf.refValueFunc_(), addr);
228 const scalar t = this->db().time().timeOutputValue();
250 refValueFunc_->writeData(
os);
252 if (refPointValueFunc_)
254 refPointValueFunc_->writeData(
os);
void extrapolateInternal()
Assign the patch field from the internal field.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A FixedValue boundary condition for pointField.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Evaluate the patch field.
Foam::pointPatchFieldMapper.
virtual void operator=(const valuePointPatchField< Type > &)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
virtual void autoMap(const pointPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
OBJstream os(runTime.globalPath()/outputName)
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.
Basic pointPatch represents a set of points from the mesh.
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
bool readValueEntry(const dictionary &dict, IOobjectOption::readOption readOpt=IOobjectOption::LAZY_READ)
Read the "value" entry into *this.
List< label > labelList
A List of labels.
A patch is a list of labels that address the faces in the global face list.
virtual void rmap(const pointPatchField< Type > &, const labelList &)
Reverse map the given PointPatchField onto.