42 #ifndef pointPatchField_H 43 #define pointPatchField_H 58 class pointPatchFieldMapper;
64 class pointPatchField;
67 class calculatedPointPatchField;
73 const pointPatchField<Type>&
87 const pointPatch& patch_;
90 const DimensionedField<Type, pointMesh>& internalField_;
136 (dynamic_cast<const pointPatchFieldType&>(ptf), p, iF, m)
222 const word& actualPatchType,
248 template<
class Type2>
289 if (
type() == patch_.type())
294 typename pointPatchConstructorTable::iterator patchTypeCstrIter
295 = pointPatchConstructorTablePtr_->find(patch_.type());
299 != pointPatchConstructorTablePtr_->end();
317 return internalField_;
323 return internalField_;
337 template<
class Type1>
345 template<
class Type1>
354 template<
class Type1>
363 template<
class Type1>
373 template<
class Type1>
383 template<
class Type1>
432 virtual void write(Ostream&)
const;
469 friend Ostream& operator<< <Type>
504 #define addToPointPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) \ 505 addToRunTimeSelectionTable \ 508 typePatchTypeField, \ 511 addToRunTimeSelectionTable \ 514 typePatchTypeField, \ 517 addToRunTimeSelectionTable \ 520 typePatchTypeField, \ 526 #define makePointPatchTypeField(PatchTypeField,typePatchTypeField) \ 527 defineTypeNameAndDebug(typePatchTypeField, 0); \ 528 addToPointPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) 532 #define makeTemplatePointPatchTypeField(PatchTypeField, typePatchTypeField) \ 533 defineNamedTemplateTypeNameAndDebug(typePatchTypeField, 0); \ 534 addToPointPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) 537 #define makePointPatchFields(type) \ 538 makeTemplatePointPatchTypeField \ 540 pointPatchScalarField, \ 541 type##PointPatchScalarField \ 543 makeTemplatePointPatchTypeField \ 545 pointPatchVectorField, \ 546 type##PointPatchVectorField \ 548 makeTemplatePointPatchTypeField \ 550 pointPatchSphericalTensorField, \ 551 type##PointPatchSphericalTensorField \ 553 makeTemplatePointPatchTypeField \ 555 pointPatchSymmTensorField, \ 556 type##PointPatchSymmTensorField \ 558 makeTemplatePointPatchTypeField \ 560 pointPatchTensorField, \ 561 type##PointPatchTensorField \ 565 #define makePointPatchFieldsTypeName(type) \ 566 defineNamedTemplateTypeNameAndDebug(type##PointPatchScalarField, 0); \ 567 defineNamedTemplateTypeNameAndDebug(type##PointPatchVectorField, 0); \ 568 defineNamedTemplateTypeNameAndDebug \ 570 type##PointPatchSphericalTensorField, 0 \ 572 defineNamedTemplateTypeNameAndDebug(type##PointPatchSymmTensorField, 0); \ 573 defineNamedTemplateTypeNameAndDebug(type##PointPatchTensorField, 0) 576 #define makePointPatchFieldTypedefs(type) \ 577 typedef type##PointPatchField<scalar> type##PointPatchScalarField; \ 578 typedef type##PointPatchField<vector> type##PointPatchVectorField; \ 579 typedef type##PointPatchField<sphericalTensor> \ 580 type##PointPatchSphericalTensorField; \ 581 typedef type##PointPatchField<symmTensor> type##PointPatchSymmTensorField;\ 582 typedef type##PointPatchField<tensor> type##PointPatchTensorField; virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
bool overridesConstraint() const
Return true if this overrides the underlying constraint type.
pointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
commsTypes
Types of communications.
virtual void operator-=(const pointPatchField< Type > &)
Foam::pointPatchFieldMapper.
virtual void autoMap(const pointPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void rmap(const pointPatchField< Type > &, const labelList &)
Reverse map the given pointPatchField onto this pointPatchField.
virtual void operator==(const pointPatchField< Type > &)
A calculated boundary condition for pointField.
virtual void operator=(pointPatchField< Type > &&)
const Field< Type > & primitiveField() const
Return internal field reference.
static int disallowGenericPointPatchField
Debug switch to disallow the use of genericPointPatchField.
Abstract base class for point-mesh patch fields.
static const word & calculatedType()
Return the type of the calculated form of pointPatchField.
const objectRegistry & db() const
Return local objectRegistry.
static autoPtr< pointPatchField< Type > > NewCalculatedType(const pointPatchField< Type2 > &)
Return a pointer to a new calculatedPointPatchField created on.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
const pointPatch & patch() const
Return patch.
void setInInternalField(Field< Type1 > &iF, const Field< Type1 > &pF, const labelList &meshPoints) const
Given the internal field and a patch field,.
virtual void operator*=(const pointPatchField< scalar > &)
tmp< Field< Type > > patchInternalField() const
Return field created from appropriate internal field values.
virtual void operator=(const pointPatchField< Type > &)
declareRunTimeSelectionTable(autoPtr, pointPatchField, pointPatch,(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF),(p, iF))
virtual void operator==(const Field< Type > &)
const DimensionedField< Type, pointMesh > & internalField() const
Return dimensioned internal field reference.
calculatedPointPatchField< Type > Calculated
virtual void write(Ostream &) const
Write.
Basic pointPatch represents a set of points from the mesh.
virtual void initEvaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Initialise evaluation of the patch field (do nothing)
void addToInternalField(Field< Type1 > &iF, const Field< Type1 > &pF) const
Given the internal field and a patch field,.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void operator/=(const pointPatchField< scalar > &)
bool updated() const
Return true if the boundary condition has already been updated.
TypeName("pointPatchField")
Runtime type information.
virtual void operator==(const Type &)
label size() const
Return size.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< pointPatchField< Type > > New(const word &, const pointPatch &, const DimensionedField< Type, pointMesh > &)
Return a pointer to a new patchField created on freestore given.
A class for managing temporary objects.
Registry of regIOobjects.
virtual void operator+=(const pointPatchField< Type > &)
virtual bool coupled() const
Return true if this patch field is coupled.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
autoPtr< pointPatchField< Type > > clone() const
Disallow clone without setting internal field reference.
virtual label size() const =0
Return size.
virtual bool fixesValue() const
Return true if this patch field fixes a value.