42 const polyMesh&
mesh =
p.boundaryMesh().mesh()();
43 label patchi =
mesh.boundaryMesh().findPatchID(
p.name());
48 <<
"Cannot use uniformFixedValue on patch " <<
p.name()
51 return mesh.boundaryMesh()[patchi];
66 refValueFunc_(nullptr)
106 const uniformFixedValuePointPatchField<Type>& ptf,
108 const DimensionedField<Type, pointMesh>& iF,
109 const pointPatchFieldMapper& mapper
112 fixedValuePointPatchField<Type>(ptf,
p, iF, mapper),
113 refValueFunc_(ptf.refValueFunc_.clone(this->getPatch(
p)))
115 if (mapper.direct() && !mapper.hasUnmapped())
118 this->
map(ptf, mapper);
132 const uniformFixedValuePointPatchField<Type>& ptf
135 fixedValuePointPatchField<Type>(ptf),
136 refValueFunc_(ptf.refValueFunc_.clone(this->getPatch(this->
patch())))
149 refValueFunc_(ptf.refValueFunc_.clone(this->getPatch(this->
patch())))
165 refValueFunc_().autoMap(mapper);
167 if (refValueFunc_().constant())
179 const pointPatchField<Type>& ptf,
185 const uniformFixedValuePointPatchField& tiptf =
186 refCast<const uniformFixedValuePointPatchField>(ptf);
188 if (refValueFunc_ && tiptf.refValueFunc_)
190 refValueFunc_().rmap(tiptf.refValueFunc_(), addr);
202 const scalar t = this->db().time().timeOutputValue();
217 refValueFunc_->writeData(
os);
void extrapolateInternal()
Assign the patch field from the internal field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
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.
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
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
OBJstream os(runTime.globalPath()/outputName)
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.