Loading...
Searching...
No Matches
surfaceDisplacementPointPatchVectorField Class Reference

Displacement fixed by projection onto triSurface. Use in a displacementMotionSolver as a bc on the pointDisplacement field. More...

#include <surfaceDisplacementPointPatchVectorField.H>

Inheritance diagram for surfaceDisplacementPointPatchVectorField:
Collaboration diagram for surfaceDisplacementPointPatchVectorField:

Public Types

enum  projectMode { NEAREST , POINTNORMAL , FIXEDNORMAL }

Public Member Functions

 TypeName ("surfaceDisplacement")
 Runtime type information.
 surfaceDisplacementPointPatchVectorField (const pointPatch &, const DimensionedField< vector, pointMesh > &)
 Construct from patch and internal field.
 surfaceDisplacementPointPatchVectorField (const pointPatch &, const DimensionedField< vector, pointMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary.
 surfaceDisplacementPointPatchVectorField (const surfaceDisplacementPointPatchVectorField &, const pointPatch &, const DimensionedField< vector, pointMesh > &, const pointPatchFieldMapper &)
 Construct by mapping given patch field onto a new patch.
 surfaceDisplacementPointPatchVectorField (const surfaceDisplacementPointPatchVectorField &)
 Construct as copy.
 surfaceDisplacementPointPatchVectorField (const surfaceDisplacementPointPatchVectorField &, const DimensionedField< vector, pointMesh > &)
 Construct as copy setting internal field reference.
virtual autoPtr< pointPatchField< vector > > clone () const
 Return a clone.
virtual autoPtr< pointPatchField< vector > > clone (const DimensionedField< vector, pointMesh > &iF) const
 Construct and return a clone setting internal field reference.
const searchableSurfacessurfaces () const
 Surface to follow. Demand loads surfaceNames.
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field.
virtual void write (Ostream &) const
 Write.

Detailed Description

Displacement fixed by projection onto triSurface. Use in a displacementMotionSolver as a bc on the pointDisplacement field.

Calculates the projection onto the surface according to the projectMode

  • NEAREST : nearest
  • POINTNORMAL : intersection with point normal
  • FIXEDNORMAL : intersection with fixed vector

This displacement is then clipped with the specified velocity * deltaT.

Optionally (intersection only) removes a component ("wedgePlane") to stay in 2D.

Needs:

  • geometry : dictionary with searchableSurfaces. (usually triSurfaceMeshes in constant/triSurface)
  • projectMode : see above
  • projectDirection : if projectMode = fixedNormal
  • wedgePlane : -1 or component to knock out of intersection normal
  • frozenPointsZone : empty or name of pointZone containing points that do not move
Source files

Definition at line 72 of file surfaceDisplacementPointPatchVectorField.H.

Member Enumeration Documentation

◆ projectMode

Enumerator
NEAREST 
POINTNORMAL 
FIXEDNORMAL 

Definition at line 81 of file surfaceDisplacementPointPatchVectorField.H.

Constructor & Destructor Documentation

◆ surfaceDisplacementPointPatchVectorField() [1/5]

surfaceDisplacementPointPatchVectorField ( const pointPatch & p,
const DimensionedField< vector, pointMesh > & iF )

Construct from patch and internal field.

Definition at line 294 of file surfaceDisplacementPointPatchVectorField.C.

References NEAREST, p, and Foam::Zero.

Referenced by surfaceDisplacementPointPatchVectorField(), surfaceDisplacementPointPatchVectorField(), surfaceDisplacementPointPatchVectorField(), and TypeName().

Here is the caller graph for this function:

◆ surfaceDisplacementPointPatchVectorField() [2/5]

surfaceDisplacementPointPatchVectorField ( const pointPatch & p,
const DimensionedField< vector, pointMesh > & iF,
const dictionary & dict )

Construct from patch, internal field and dictionary.

Definition at line 309 of file surfaceDisplacementPointPatchVectorField.C.

References dict, FIXEDNORMAL, p, and Foam::Zero.

◆ surfaceDisplacementPointPatchVectorField() [3/5]

surfaceDisplacementPointPatchVectorField ( const surfaceDisplacementPointPatchVectorField & ppf,
const pointPatch & p,
const DimensionedField< vector, pointMesh > & iF,
const pointPatchFieldMapper & mapper )

Construct by mapping given patch field onto a new patch.

Definition at line 341 of file surfaceDisplacementPointPatchVectorField.C.

References p, and surfaceDisplacementPointPatchVectorField().

Here is the call graph for this function:

◆ surfaceDisplacementPointPatchVectorField() [4/5]

surfaceDisplacementPointPatchVectorField ( const surfaceDisplacementPointPatchVectorField & ppf)

Construct as copy.

Definition at line 360 of file surfaceDisplacementPointPatchVectorField.C.

References surfaceDisplacementPointPatchVectorField().

Here is the call graph for this function:

◆ surfaceDisplacementPointPatchVectorField() [5/5]

surfaceDisplacementPointPatchVectorField ( const surfaceDisplacementPointPatchVectorField & ppf,
const DimensionedField< vector, pointMesh > & iF )

Construct as copy setting internal field reference.

Definition at line 376 of file surfaceDisplacementPointPatchVectorField.C.

References surfaceDisplacementPointPatchVectorField().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "surfaceDisplacement" )

Runtime type information.

References surfaceDisplacementPointPatchVectorField().

Here is the call graph for this function:

◆ clone() [1/2]

virtual autoPtr< pointPatchField< vector > > clone ( ) const
inlinevirtual

Return a clone.

Definition at line 209 of file surfaceDisplacementPointPatchVectorField.H.

References pointPatchField< Type >::Clone().

Here is the call graph for this function:

◆ clone() [2/2]

virtual autoPtr< pointPatchField< vector > > clone ( const DimensionedField< vector, pointMesh > & iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 217 of file surfaceDisplacementPointPatchVectorField.H.

References pointPatchField< Type >::Clone().

Here is the call graph for this function:

◆ surfaces()

const Foam::searchableSurfaces & surfaces ( ) const

Surface to follow. Demand loads surfaceNames.

Definition at line 396 of file surfaceDisplacementPointPatchVectorField.C.

References IOobjectOption::MUST_READ, and IOobjectOption::NO_WRITE.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 423 of file surfaceDisplacementPointPatchVectorField.C.

References forAll, Foam::mag(), mesh, Foam::min(), and Foam::operator==().

Here is the call graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write.

Definition at line 464 of file surfaceDisplacementPointPatchVectorField.C.

References word::null, os(), valuePointPatchField< Type >::write(), and Foam::Zero.

Here is the call graph for this function:

The documentation for this class was generated from the following files: