Displacement follows a triSurface. Use in a displacement fvMotionSolver as a bc on the pointDisplacement field. Following is done by calculating the projection onto the surface according to the projectMode. More...
#include <fvMotionSolvers/surfaceSlipDisplacementPointPatchVectorField.H>
Displacement follows a triSurface. Use in a displacement fvMotionSolver as a bc on the pointDisplacement field. Following is done by calculating the projection onto the surface according to the projectMode.
Optionally (intersection only) removes a component ("wedgePlane") to stay in 2D.
Needs:
Definition at line 68 of file surfaceSlipDisplacementPointPatchVectorField.H.
Public Types | |
enum | projectMode { NEAREST, POINTNORMAL, FIXEDNORMAL } |
![]() | |
typedef pointPatch | Patch |
Public Member Functions | |
TypeName ("surfaceSlipDisplacement") | |
Runtime type information. | |
surfaceSlipDisplacementPointPatchVectorField (const pointPatch &, const DimensionedField< vector, pointMesh > &) | |
Construct from patch and internal field. | |
surfaceSlipDisplacementPointPatchVectorField (const pointPatch &, const DimensionedField< vector, pointMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. | |
surfaceSlipDisplacementPointPatchVectorField (const surfaceSlipDisplacementPointPatchVectorField &, const pointPatch &, const DimensionedField< vector, pointMesh > &, const pointPatchFieldMapper &) | |
Construct by mapping given patchField<vector> onto a new patch. | |
surfaceSlipDisplacementPointPatchVectorField (const surfaceSlipDisplacementPointPatchVectorField &) | |
Construct as copy. | |
virtual autoPtr < pointPatchVectorField > | clone () const |
Construct and return a clone. | |
surfaceSlipDisplacementPointPatchVectorField (const surfaceSlipDisplacementPointPatchVectorField &, 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. | |
const searchableSurfaces & | surfaces () const |
Surface to follow. Demand loads surfaceNames. | |
virtual void | evaluate (const Pstream::commsTypes commsType=Pstream::blocking) |
Update the patch field. | |
virtual void | write (Ostream &) const |
Write. | |
![]() | |
TypeName ("pointPatchField") | |
Runtime type information. | |
declareRunTimeSelectionTable (autoPtr, pointPatchField, pointPatch,(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. | |
pointPatchField (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. | |
pointPatchField (const pointPatchField< Type > &) | |
Construct as copy. | |
pointPatchField (const pointPatchField< Type > &, const DimensionedField< Type, pointMesh > &) | |
Construct as copy setting internal field reference. | |
virtual autoPtr < pointPatchField< Type > > | clone (const DimensionedField< Type, pointMesh > &iF) const =0 |
Construct and return a clone setting internal field reference. | |
virtual | ~pointPatchField () |
const objectRegistry & | db () const |
Return local objectRegistry. | |
label | size () const |
Return size. | |
const pointPatch & | patch () const |
Return patch. | |
const DimensionedField< Type, pointMesh > & | dimensionedInternalField () const |
Return dimensioned internal field reference. | |
const Field< Type > & | internalField () const |
Return internal field reference. | |
virtual bool | coupled () const |
Return true if this patch field is coupled. | |
bool | updated () const |
Return true if the boundary condition has already been updated. | |
tmp< Field< Type > > | patchInternalField () const |
Return field created from appropriate internal field values. | |
template<class Type1 > | |
tmp< Field< Type1 > > | patchInternalField (const Field< Type1 > &iF) const |
Return field created from appropriate internal field values. | |
template<class Type1 > | |
void | addToInternalField (Field< Type1 > &iF, const Field< Type1 > &pF) const |
Given the internal field and a patch field,. | |
template<class Type1 > | |
void | setInInternalField (Field< Type1 > &iF, const Field< Type1 > &pF, const labelList &meshPoints) const |
Given the internal field and a patch field,. | |
template<class Type1 > | |
void | setInInternalField (Field< Type1 > &iF, const Field< Type1 > &pF) const |
Given the internal field and a patch field,. | |
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 | updateCoeffs () |
Update the coefficients associated with the patch field. | |
virtual void | initEvaluate (const Pstream::commsTypes commsType=Pstream::blocking) |
Initialise evaluation of the patch field (do nothing) | |
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 &) |
Additional Inherited Members | |
![]() | |
static autoPtr < pointPatchField< Type > > | New (const word &, const pointPatch &, const DimensionedField< Type, pointMesh > &) |
Return a pointer to a new patchField created on freestore given. | |
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. | |
static autoPtr < pointPatchField< Type > > | New (const pointPatch &, const DimensionedField< Type, pointMesh > &, const dictionary &) |
Return a pointer to a new patchField created on freestore. | |
template<class Type2 > | |
static autoPtr < pointPatchField< Type > > | NewCalculatedType (const pointPatchField< Type2 > &) |
Return a pointer to a new CalculatedpointPatchField created on. | |
static const word & | calculatedType () |
Return the type of the calculated for of pointPatchField. | |
![]() | |
static int | disallowGenericPointPatchField |
Debug switch to disallow the use of genericPointPatchField. |
enum projectMode |
Definition at line 77 of file surfaceSlipDisplacementPointPatchVectorField.H.
surfaceSlipDisplacementPointPatchVectorField | ( | const pointPatch & | p, |
const DimensionedField< vector, pointMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 313 of file surfaceSlipDisplacementPointPatchVectorField.C.
Referenced by surfaceSlipDisplacementPointPatchVectorField::clone().
surfaceSlipDisplacementPointPatchVectorField | ( | const pointPatch & | p, |
const DimensionedField< vector, pointMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 327 of file surfaceSlipDisplacementPointPatchVectorField.C.
surfaceSlipDisplacementPointPatchVectorField | ( | const surfaceSlipDisplacementPointPatchVectorField & | ppf, |
const pointPatch & | p, | ||
const DimensionedField< vector, pointMesh > & | iF, | ||
const pointPatchFieldMapper & | |||
) |
Construct by mapping given patchField<vector> onto a new patch.
Definition at line 344 of file surfaceSlipDisplacementPointPatchVectorField.C.
surfaceSlipDisplacementPointPatchVectorField | ( | const surfaceSlipDisplacementPointPatchVectorField & | ppf | ) |
Construct as copy.
Definition at line 362 of file surfaceSlipDisplacementPointPatchVectorField.C.
surfaceSlipDisplacementPointPatchVectorField | ( | const surfaceSlipDisplacementPointPatchVectorField & | ppf, |
const DimensionedField< vector, pointMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 377 of file surfaceSlipDisplacementPointPatchVectorField.C.
TypeName | ( | "surfaceSlipDisplacement" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements pointPatchField< Type >.
Definition at line 158 of file surfaceSlipDisplacementPointPatchVectorField.H.
References surfaceSlipDisplacementPointPatchVectorField::surfaceSlipDisplacementPointPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 178 of file surfaceSlipDisplacementPointPatchVectorField.H.
References surfaceSlipDisplacementPointPatchVectorField::surfaceSlipDisplacementPointPatchVectorField().
const searchableSurfaces & surfaces | ( | ) | const |
Surface to follow. Demand loads surfaceNames.
Definition at line 394 of file surfaceSlipDisplacementPointPatchVectorField.C.
References pointPatchField< Type >::db(), autoPtr< T >::empty(), IOobject::MUST_READ, IOobject::NO_WRITE, and autoPtr< T >::reset().
|
virtual |
Update the patch field.
Reimplemented from pointPatchField< Type >.
Definition at line 420 of file surfaceSlipDisplacementPointPatchVectorField.C.
References pointPatchField< vector >::evaluate().
|
virtual |
Write.
Reimplemented from pointPatchField< Type >.
Definition at line 439 of file surfaceSlipDisplacementPointPatchVectorField.C.
References token::END_STATEMENT, Foam::nl, word::null, and Ostream::writeKeyword().