42 #ifndef pointPatchField_H 43 #define pointPatchField_H 59 class pointPatchFieldMapper;
65 class pointPatchField;
68 class calculatedPointPatchField;
71 Ostream& operator<<(Ostream&, const pointPatchField<Type>&);
84 const pointPatch& patch_;
87 const DimensionedField<Type, pointMesh>& internalField_;
133 (dynamic_cast<const pointPatchFieldType&>(ptf), p, iF, m)
230 const word& actualPatchType,
256 template<
class Type2>
297 if (
type() == patch_.type())
302 typename pointPatchConstructorTable::iterator patchTypeCstrIter
303 = pointPatchConstructorTablePtr_->find(patch_.type());
307 != pointPatchConstructorTablePtr_->end();
325 return internalField_;
331 return internalField_;
345 template<
class Type1>
353 template<
class Type1>
362 template<
class Type1>
371 template<
class Type1>
381 template<
class Type1>
391 template<
class Type1>
482 friend Ostream& operator<< <Type>
517 #define makePointPatchField(pointPatchTypeField) \ 518 defineNamedTemplateTypeNameAndDebug(pointPatchTypeField, 0); \ 520 int pointPatchTypeField::disallowGenericPointPatchField \ 522 debug::debugSwitch("disallowGenericPointPatchField", 0) \ 524 defineTemplateRunTimeSelectionTable(pointPatchTypeField, pointPatch); \ 525 defineTemplateRunTimeSelectionTable(pointPatchTypeField, patchMapper); \ 526 defineTemplateRunTimeSelectionTable(pointPatchTypeField, dictionary); 530 #define addToPointPatchFieldRunTimeSelection(PatchTypeField,typePatchTypeField)\ 531 addToRunTimeSelectionTable \ 534 typePatchTypeField, \ 537 addToRunTimeSelectionTable \ 540 typePatchTypeField, \ 543 addToRunTimeSelectionTable \ 546 typePatchTypeField, \ 552 #define makePointPatchTypeField(PatchTypeField, typePatchTypeField) \ 553 defineTypeNameAndDebug(typePatchTypeField, 0); \ 554 addToPointPatchFieldRunTimeSelection(PatchTypeField, typePatchTypeField) 558 #define makeTemplatePointPatchTypeField(fieldType, type) \ 559 defineNamedTemplateTypeNameAndDebug \ 561 CAT4(type, PointPatch, CAPITALIZE(fieldType), Field), \ 564 addToPointPatchFieldRunTimeSelection \ 566 CAT3(pointPatch, CAPITALIZE(fieldType), Field), \ 567 CAT4(type, PointPatch, CAPITALIZE(fieldType), Field) \ 571 #define makePointPatchFields(type) \ 572 FOR_ALL_FIELD_TYPES(makeTemplatePointPatchTypeField, type) 575 #define makePointPatchFieldTypeName(fieldType, type) \ 576 defineNamedTemplateTypeNameAndDebug \ 578 CAT4(type, PointPatch, CAPITALIZE(fieldType), Field), \ 583 #define makePointPatchFieldTypeNames(type) \ 584 FOR_ALL_FIELD_TYPES(makePointPatchFieldTypeName, type) 587 #define makePointPatchFieldTypedef(fieldType, type) \ 588 typedef type##PointPatchField<fieldType> \ 589 CAT4(type, PointPatch, CAPITALIZE(fieldType), Field); 592 #define makePointPatchFieldTypedefs(type) \ 593 FOR_ALL_FIELD_TYPES(makePointPatchFieldTypedef, type) virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
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.
Include the header files for all the primitive types that Fields are instantiated for...
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
const pointPatch & patch() const
Return patch.
virtual void operator*=(const pointPatchField< scalar > &)
tmp< Field< Type > > patchInternalField() const
Return field created from appropriate internal field values.
virtual void reset(const pointPatchField< Type > &)
Reset the pointPatchField to the given pointPatchField.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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 &)
void setInternalField(Field< Type1 > &iF, const Field< Type1 > &pF, const labelList &meshPoints) const
Given the internal field and a patch field,.
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.