Displacement by attraction to nearest point. Use in a displacementMotionSolver as a bc on the pointDisplacement field. More...
#include <pointAttractionDisplacementPointPatchVectorField.H>


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

| pointAttractionDisplacementPointPatchVectorField | ( | const pointPatch & | p, |
| const DimensionedField< vector, pointMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 140 of file pointAttractionDisplacementPointPatchVectorField.C.
References dict, mesh, p, pointPatchFieldBase::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 162 of file pointAttractionDisplacementPointPatchVectorField.C.
References p, and pointAttractionDisplacementPointPatchVectorField().

| pointAttractionDisplacementPointPatchVectorField | ( | const pointAttractionDisplacementPointPatchVectorField & | ppf | ) |
Construct as copy.
Definition at line 178 of file pointAttractionDisplacementPointPatchVectorField.C.
References pointAttractionDisplacementPointPatchVectorField().

| pointAttractionDisplacementPointPatchVectorField | ( | const pointAttractionDisplacementPointPatchVectorField & | ppf, |
| const DimensionedField< vector, pointMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 191 of file pointAttractionDisplacementPointPatchVectorField.C.
References pointAttractionDisplacementPointPatchVectorField().

|
protected |
Definition at line 208 of file pointAttractionDisplacementPointPatchVectorField.C.
References e, boundBox::inflate(), objectRegistry::lookupObject(), pointPatchFieldBase::patch(), points, and rndGen.

| TypeName | ( | "pointAttraction" | ) |
Runtime type information.
References pointAttractionDisplacementPointPatchVectorField().

|
inlinevirtual |
Construct and return a clone.
Implements pointPatchField< vector >.
Definition at line 158 of file pointAttractionDisplacementPointPatchVectorField.H.
References pointAttractionDisplacementPointPatchVectorField().

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Implements pointPatchField< vector >.
Definition at line 181 of file pointAttractionDisplacementPointPatchVectorField.H.
References pointAttractionDisplacementPointPatchVectorField().

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

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