linearDisplacement Class Reference

Mesh motion solver simple linear expansion and contraction of a mesh region defined by a motion axis and the extents of the motion. More...

Inheritance diagram for linearDisplacement:
Collaboration diagram for linearDisplacement:

Public Member Functions

 TypeName ("linearDisplacement")
 Runtime type information. More...
 
 linearDisplacement (const polyMesh &, const dictionary &)
 Construct from polyMesh and dictionary. More...
 
 linearDisplacement (const linearDisplacement &)=delete
 Disallow default bitwise copy construction. More...
 
 ~linearDisplacement ()
 Destructor. More...
 
virtual tmp< pointFieldnewPoints ()
 Return point location obtained from the current motion field. More...
 
virtual void mapMesh (const polyMeshMap &)
 Update from another mesh using the given map (not implemented) More...
 
void operator= (const linearDisplacement &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from displacementPoints0
 TypeName ("displacementPoints0")
 Runtime type information. More...
 
 displacementPoints0 (const polyMesh &, const dictionary &, const word &type)
 Construct from mesh and dictionary. More...
 
 displacementPoints0 (const displacementPoints0 &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~displacementPoints0 ()
 Destructor. More...
 
pointFieldpoints0 ()
 Return reference to the reference field. More...
 
const pointFieldpoints0 () const
 Return reference to the reference field. More...
 
virtual void movePoints (const pointField &)
 Update local data for geometry changes. More...
 
virtual void topoChange (const polyTopoChangeMap &)
 Update local data for topology changes. More...
 
virtual void distribute (const polyDistributionMap &)
 Update corresponding to the given distribution map. More...
 
virtual bool write () const
 Write points0 if the mesh topology changed. More...
 
void operator= (const displacementPoints0 &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from pointMeshMover
 TypeName ("pointMeshMover")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, pointMeshMover, dictionary,(const polyMesh &mesh, const dictionary &dict),(mesh, dict))
 
 pointMeshMover (const polyMesh &mesh, const word &type)
 Construct from polyMesh and dictionary and type. More...
 
virtual autoPtr< pointMeshMoverclone () const
 Clone function. More...
 
virtual ~pointMeshMover ()
 Destructor. More...
 
const polyMeshpoly () const
 Return reference to mesh. More...
 
virtual void twoDCorrectPoints (pointField &) const
 Correct point field for reduced-dimensionality cases. More...
 
virtual bool solidBodyMotion () const
 Is the motion solid body? I.e., are the volumes and area magnitudes. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from displacementPoints0
static pointVectorField readPoints0 (const polyMesh &mesh)
 
- Static Public Member Functions inherited from pointMeshMover
static autoPtr< pointMeshMoverNew (const polyMesh &, const dictionary &)
 Select constructed from polyMesh and dictionary. More...
 
- Protected Attributes inherited from displacementPoints0
pointVectorField points0_
 Starting points. More...
 

Detailed Description

Mesh motion solver simple linear expansion and contraction of a mesh region defined by a motion axis and the extents of the motion.

Example:

    mover           pointMeshMover;

    libs            ("libfvMotionSolvers.so");

    pointMeshMover  linearDisplacement;

    axis            (0 1 0);
    xFixed          0.8;
    xMoving         0;
    displacement    table
    (
        (0 0)
        (4 0.7)
    );

This mesh is compressed between xFixed and xMoving in the direction axis between time 0 and 4 with a maximum displacement of 0.7. The mesh beyond xFixed is fixed and beyond xMoving moves with maximum displacement.

Source files

Definition at line 75 of file linearDisplacement_pointMeshMover.H.

Constructor & Destructor Documentation

◆ linearDisplacement() [1/2]

linearDisplacement ( const polyMesh mesh,
const dictionary dict 
)

Construct from polyMesh and dictionary.

Definition at line 49 of file linearDisplacement_pointMeshMover.C.

◆ linearDisplacement() [2/2]

linearDisplacement ( const linearDisplacement )
delete

Disallow default bitwise copy construction.

◆ ~linearDisplacement()

Destructor.

Definition at line 74 of file linearDisplacement_pointMeshMover.C.

Member Function Documentation

◆ TypeName()

TypeName ( "linearDisplacement"  )

Runtime type information.

◆ newPoints()

Foam::tmp< Foam::pointField > newPoints ( )
virtual

Return point location obtained from the current motion field.

Implements pointMeshMover.

Definition at line 81 of file linearDisplacement_pointMeshMover.C.

References forAll, lambda(), tmp< T >::ref(), and Foam::dimensions::time.

Here is the call graph for this function:

◆ mapMesh()

void mapMesh ( const polyMeshMap map)
virtual

Update from another mesh using the given map (not implemented)

Implements displacementPoints0.

Definition at line 107 of file linearDisplacement_pointMeshMover.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.

Here is the call graph for this function:

◆ operator=()

void operator= ( const linearDisplacement )
delete

Disallow default bitwise assignment.


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