Displacement by attraction to nearest point. Use in a displacementMotionSolver as a bc on the pointDisplacement field. More...


Public Member Functions | |
| TypeName ("pointAttraction") | |
| Runtime type information. More... | |
| pointAttractionDisplacementPointPatchVectorField (const pointPatch &, const DimensionedField< vector, pointMesh > &) | |
| Construct from patch and internal field. More... | |
| pointAttractionDisplacementPointPatchVectorField (const pointPatch &, const DimensionedField< vector, pointMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| pointAttractionDisplacementPointPatchVectorField (const pointAttractionDisplacementPointPatchVectorField &, const pointPatch &, const DimensionedField< vector, pointMesh > &, const pointPatchFieldMapper &) | |
| Construct by mapping given patch field onto a new patch. More... | |
| pointAttractionDisplacementPointPatchVectorField (const pointAttractionDisplacementPointPatchVectorField &) | |
| Construct as copy. More... | |
| virtual autoPtr< pointPatchVectorField > | clone () const |
| Construct and return a clone. More... | |
| pointAttractionDisplacementPointPatchVectorField (const pointAttractionDisplacementPointPatchVectorField &, const DimensionedField< vector, pointMesh > &) | |
| Construct as copy setting internal field reference. More... | |
| virtual autoPtr< pointPatchVectorField > | clone (const DimensionedField< vector, pointMesh > &iF) const |
| Construct and return a clone setting internal field reference. More... | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
Public Member Functions inherited from pointPatchField< Type > | |
| declareRunTimeSelectionTable (autoPtr, pointPatchField, patch,(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF),(p, iF)) | |
| declareRunTimeSelectionTable (autoPtr, pointPatchField, patchMapper,(const pointPatchField< Type > &ptf, const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const pointPatchFieldMapper &m),(dynamic_cast< const pointPatchFieldType &>(ptf), p, iF, m)) | |
| declareRunTimeSelectionTable (autoPtr, pointPatchField, dictionary,(const pointPatch &p, const DimensionedField< Type, pointMesh > &iF, const dictionary &dict),(p, iF, dict)) | |
| pointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &) | |
| Construct from patch and internal field. More... | |
| pointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| pointPatchField (const pointPatchField< Type > &, const pointPatch &, const DimensionedField< Type, pointMesh > &, const pointPatchFieldMapper &) | |
| Construct by mapping given patch field onto a new patch. More... | |
| pointPatchField (const pointPatchField< Type > &) | |
| Construct as copy. More... | |
| pointPatchField (const pointPatchField< Type > &, const DimensionedField< Type, pointMesh > &) | |
| Construct as copy setting internal field reference. More... | |
| virtual autoPtr< pointPatchField< Type > > | clone (const DimensionedField< Type, pointMesh > &iF) const =0 |
| Clone patch field with an internal field reference. More... | |
| virtual | ~pointPatchField ()=default |
| Destructor. More... | |
| label | size () const |
| Return the patch size. More... | |
| const DimensionedField< Type, pointMesh > & | internalField () const noexcept |
| Return const-reference to the dimensioned internal field. More... | |
| const Field< Type > & | primitiveField () const noexcept |
| Return const-reference to the internal field values. More... | |
| template<class Type1 > | |
| void | patchInternalField (const UList< Type1 > &internalData, const labelUList &addressing, Field< Type1 > &pfld) const |
| Extract field using specified addressing. More... | |
| template<class Type1 > | |
| tmp< Field< Type1 > > | patchInternalField (const UList< Type1 > &internalData, const labelUList &addressing) const |
| Return field created from selected internal field values given internal field reference. More... | |
| template<class Type1 > | |
| tmp< Field< Type1 > > | patchInternalField (const UList< Type1 > &internalData) const |
| Return field created from appropriate internal field values given internal field reference. More... | |
| tmp< Field< Type > > | patchInternalField () const |
| Return field created from appropriate internal field values. More... | |
| template<class Type1 > | |
| void | addToInternalField (Field< Type1 > &iF, const Field< Type1 > &pF) const |
| Given the internal field and a patch field, add the patch field to the internal field. More... | |
| template<class Type1 > | |
| void | addToInternalField (Field< Type1 > &iF, const Field< Type1 > &pF, const labelUList &points) const |
| Given the internal field and a patch field, add selected elements of the patch field to the internal field. More... | |
| template<class Type1 > | |
| void | setInInternalField (Field< Type1 > &iF, const Field< Type1 > &pF, const labelUList &meshPoints) const |
| Given the internal field and a patch field, set the patch field in the internal field. More... | |
| template<class Type1 > | |
| void | setInInternalField (Field< Type1 > &iF, const Field< Type1 > &pF) const |
| Given the internal field and a patch field, set the patch field in the internal field. More... | |
| virtual void | autoMap (const pointPatchFieldMapper &) |
| Map (and resize as needed) from self given a mapping object. More... | |
| virtual void | rmap (const pointPatchField< Type > &, const labelList &) |
| Reverse map the given pointPatchField onto this pointPatchField. More... | |
| virtual void | initEvaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::buffered) |
| Initialise evaluation of the patch field (do nothing) More... | |
| virtual void | evaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::buffered) |
| Evaluate the patch field, sets updated() to false. More... | |
| virtual void | initEvaluateLocal (const Pstream::commsTypes commsType=Pstream::commsTypes::buffered) |
| Initialise the evaluation of the patch field after a local. More... | |
| virtual void | evaluateLocal (const Pstream::commsTypes commsType=Pstream::commsTypes::buffered) |
| Evaluate the patch field after a local operation (e.g. *=) More... | |
| virtual void | operator= (const pointPatchField< Type > &) |
| virtual void | operator+= (const pointPatchField< Type > &) |
| virtual void | operator-= (const pointPatchField< Type > &) |
| virtual void | operator*= (const pointPatchField< scalar > &) |
| virtual void | operator/= (const pointPatchField< scalar > &) |
| virtual void | operator= (const Field< Type > &) |
| virtual void | operator+= (const Field< Type > &) |
| virtual void | operator-= (const Field< Type > &) |
| virtual void | operator*= (const Field< scalar > &) |
| virtual void | operator/= (const Field< scalar > &) |
| virtual void | operator= (const Type &) |
| virtual void | operator+= (const Type &) |
| virtual void | operator-= (const Type &) |
| virtual void | operator*= (const scalar) |
| virtual void | operator/= (const scalar) |
| virtual void | operator== (const pointPatchField< Type > &) |
| virtual void | operator== (const Field< Type > &) |
| virtual void | operator== (const Type &) |
| bool | operator!= (const pointPatchField< Type > &) const =delete |
| bool | operator!= (const Field< Type > &) const =delete |
| bool | operator!= (const Type &) const =delete |
| void | negate () |
| Negate the field inplace. Dummy placeholder for FieldField. More... | |
| void | normalise () |
| Normalise the field inplace. Dummy placeholder for FieldField. More... | |
| template<class AnyType > | |
| Foam::autoPtr< Foam::pointPatchField< Type > > | NewCalculatedType (const pointPatchField< AnyType > &pf) |
| template<class Type1 > | |
| Foam::tmp< Foam::Field< Type1 > > | patchInternalField (const UList< Type1 > &internalData, const labelUList &addressing) const |
| template<class Type1 > | |
| Foam::tmp< Foam::Field< Type1 > > | patchInternalField (const UList< Type1 > &internalData) const |
Public Member Functions inherited from pointPatchFieldBase | |
| TypeName ("pointPatchField") | |
| Runtime type information. More... | |
| pointPatchFieldBase (const pointPatch &p) | |
| Construct from patch. More... | |
| pointPatchFieldBase (const pointPatch &p, const word &patchType) | |
| Construct from patch and patch type. More... | |
| pointPatchFieldBase (const pointPatch &p, const dictionary &dict) | |
| Construct from patch and dictionary. More... | |
| pointPatchFieldBase (const pointPatchFieldBase &, const pointPatch &p) | |
| Copy construct with new patch. More... | |
| pointPatchFieldBase (const pointPatchFieldBase &) | |
| Copy construct. More... | |
| virtual | ~pointPatchFieldBase ()=default |
| Destructor. More... | |
| virtual bool | fixesValue () const |
| True if the patch field fixes a value. More... | |
| virtual bool | coupled () const |
| True if the patch field is coupled. More... | |
| virtual const word & | constraintType () const |
| The constraint type the pointPatchField implements. More... | |
| const objectRegistry & | db () const |
| The associated objectRegistry. More... | |
| const pointPatch & | patch () const noexcept |
| Return the patch. More... | |
| const word & | patchType () const noexcept |
| The optional patch type. More... | |
| word & | patchType () noexcept |
| The optional patch type. More... | |
| bool | updated () const noexcept |
| True if the boundary condition has already been updated. More... | |
| bool | manipulatedMatrix () const noexcept |
| True if the matrix has already been manipulated. Currently ignored (always false) for pointPatchField. More... | |
| void | checkPatch (const pointPatchFieldBase &rhs) const |
| Check that patches are identical. More... | |
Protected Member Functions | |
| const indexedOctree< treeDataPoint > & | pointTree () const |
Protected Member Functions inherited from pointPatchFieldBase | |
| virtual void | readDict (const dictionary &dict) |
| Read dictionary entries. More... | |
| void | setUpdated (bool state) noexcept |
| Set updated state. More... | |
| void | setManipulated (bool state) noexcept |
| Set matrix manipulated state. Currently a no-op for pointPatchField. More... | |
Additional Inherited Members | |
Public Types inherited from pointPatchField< Type > | |
| typedef pointPatch | Patch |
| The patch type for the patch field. More... | |
| typedef Type | value_type |
| The value_type for the patch field. More... | |
| typedef DimensionedField< Type, pointMesh > | Internal |
| The internal field type associated with the patch field. More... | |
| typedef calculatedPointPatchField< Type > | Calculated |
| Type for a calculated patch. More... | |
Static Public Member Functions inherited from pointPatchField< Type > | |
| template<class DerivedPatchField , class... Args> | |
| static autoPtr< pointPatchField< Type > > | Clone (const DerivedPatchField &pf, Args &&... args) |
| Clone a patch field, optionally with internal field reference etc. More... | |
| static autoPtr< pointPatchField< Type > > | New (const word &patchFieldType, const pointPatch &p, const DimensionedField< Type, pointMesh > &iF) |
| Return a pointer to a new patchField created on freestore given. More... | |
| static autoPtr< pointPatchField< Type > > | New (const word &patchFieldType, const word &actualPatchType, const pointPatch &p, const DimensionedField< Type, pointMesh > &iF) |
| Return a pointer to a new patchField created on freestore given. More... | |
| static autoPtr< pointPatchField< Type > > | New (const pointPatchField< Type > &, const pointPatch &, const DimensionedField< Type, pointMesh > &, const pointPatchFieldMapper &) |
| Return a pointer to a new patchField created on freestore from. More... | |
| static autoPtr< pointPatchField< Type > > | New (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &) |
| Return a pointer to a new patchField created on freestore. More... | |
| static autoPtr< pointPatchField< Type > > | NewCalculatedType (const pointPatch &p) |
| Return a pointer to a new calculatedPointPatchField created on. More... | |
| template<class AnyType > | |
| static autoPtr< pointPatchField< Type > > | NewCalculatedType (const pointPatchField< AnyType > &pf) |
| Return a pointer to a new calculatedPointPatchField created on. More... | |
Static Public Member Functions inherited from pointPatchFieldBase | |
| static const word & | emptyType () noexcept |
The type name for empty patch fields. More... | |
| static const word & | calculatedType () noexcept |
The type name for calculated patch fields. More... | |
| static const word & | zeroGradientType () noexcept |
The type name for zeroGradient patch fields. More... | |
Static Public Attributes inherited from pointPatchFieldBase | |
| static int | disallowGenericPatchField |
| Debug switch to disallow the use of generic pointPatchField. More... | |
Displacement by attraction to nearest point. Use in a displacementMotionSolver as a bc on the pointDisplacement field.
Definition at line 57 of file pointAttractionDisplacementPointPatchVectorField.H.
| pointAttractionDisplacementPointPatchVectorField | ( | const pointPatch & | p, |
| const DimensionedField< vector, pointMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 130 of file pointAttractionDisplacementPointPatchVectorField.C.
Referenced by pointAttractionDisplacementPointPatchVectorField::clone().

| pointAttractionDisplacementPointPatchVectorField | ( | const pointPatch & | p, |
| const DimensionedField< vector, pointMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 142 of file pointAttractionDisplacementPointPatchVectorField.C.
References dict, mesh, Foam::foamVersion::patch, and edgeSlipDisplacementPointPatchVectorField::read().

| pointAttractionDisplacementPointPatchVectorField | ( | const pointAttractionDisplacementPointPatchVectorField & | ppf, |
| const pointPatch & | p, | ||
| const DimensionedField< vector, pointMesh > & | iF, | ||
| const pointPatchFieldMapper & | |||
| ) |
Construct by mapping given patch field onto a new patch.
Definition at line 164 of file pointAttractionDisplacementPointPatchVectorField.C.
| pointAttractionDisplacementPointPatchVectorField | ( | const pointAttractionDisplacementPointPatchVectorField & | ppf | ) |
Construct as copy.
Definition at line 180 of file pointAttractionDisplacementPointPatchVectorField.C.
| pointAttractionDisplacementPointPatchVectorField | ( | const pointAttractionDisplacementPointPatchVectorField & | ppf, |
| const DimensionedField< vector, pointMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 193 of file pointAttractionDisplacementPointPatchVectorField.C.
|
protected |
Definition at line 208 of file pointAttractionDisplacementPointPatchVectorField.C.
References Foam::constant::electromagnetic::e, boundBox::inflate(), objectRegistry::lookupObject(), Foam::foamVersion::patch, points, and rndGen.

| TypeName | ( | "pointAttraction" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements pointPatchField< Type >.
Definition at line 158 of file pointAttractionDisplacementPointPatchVectorField.H.
References pointAttractionDisplacementPointPatchVectorField::pointAttractionDisplacementPointPatchVectorField().

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 182 of file pointAttractionDisplacementPointPatchVectorField.H.
References pointAttractionDisplacementPointPatchVectorField::pointAttractionDisplacementPointPatchVectorField().

|
virtual |
Update the coefficients associated with the patch field.
Reimplemented from pointPatchField< Type >.
Definition at line 245 of file pointAttractionDisplacementPointPatchVectorField.C.
References TimeState::deltaTValue(), forAll, Foam::mag(), Foam::min(), Foam::foamVersion::patch, and pointPatchField< vector >::updateCoeffs().

|
virtual |
Write.
Reimplemented from pointPatchField< Type >.
Definition at line 290 of file pointAttractionDisplacementPointPatchVectorField.C.
References word::null, os(), pointPatchField< Type >::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
