displacementLinearMotionMotionSolver 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 displacementLinearMotionMotionSolver:
Collaboration diagram for displacementLinearMotionMotionSolver:

Public Member Functions

 TypeName ("displacementLinearMotion")
 Runtime type information. More...
 
 displacementLinearMotionMotionSolver (const word &name, const polyMesh &, const dictionary &)
 Construct from polyMesh and dictionary. More...
 
 displacementLinearMotionMotionSolver (const displacementLinearMotionMotionSolver &)=delete
 Disallow default bitwise copy construction. More...
 
 ~displacementLinearMotionMotionSolver ()
 Destructor. More...
 
virtual tmp< pointFieldcurPoints () const
 Return point location obtained from the current motion field. More...
 
virtual void solve ()
 Solve for motion. More...
 
void operator= (const displacementLinearMotionMotionSolver &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from points0MotionSolver
 TypeName ("points0MotionSolver")
 Runtime type information. More...
 
 points0MotionSolver (const word &name, const polyMesh &, const dictionary &, const word &type)
 Construct from mesh and dictionary. More...
 
 points0MotionSolver (const points0MotionSolver &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~points0MotionSolver ()
 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 mapMesh (const polyMeshMap &)
 Update from another mesh using the given map. 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 points0MotionSolver &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from motionSolver
 TypeName ("motionSolver")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, motionSolver, dictionary,(const word &name, const polyMesh &mesh, const dictionary &dict),(name, mesh, dict))
 
 motionSolver (const word &name, const polyMesh &mesh, const dictionary &, const word &type)
 Construct from polyMesh and dictionary and type. More...
 
virtual autoPtr< motionSolverclone () const
 Clone function. More...
 
virtual ~motionSolver ()
 Destructor. More...
 
const wordname () const
 Return name. More...
 
const wordkeyword () const
 Return keyword. More...
 
const polyMeshmesh () const
 Return reference to mesh. More...
 
const dictionarycoeffDict () const
 Const access to the coefficients dictionary. More...
 
virtual tmp< pointFieldnewPoints ()
 Provide new points for motion. Solves for motion. More...
 
virtual void twoDCorrectPoints (pointField &) const
 Correct point field for reduced-dimensionality cases. More...
 
virtual bool solidBody () const
 Is the motion solid body? I.e., are the volumes and area magnitudes. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from points0MotionSolver
static pointVectorField readPoints0 (const polyMesh &mesh)
 
- Static Public Member Functions inherited from motionSolver
static autoPtr< motionSolverNew (const word &name, const polyMesh &, const dictionary &)
 Select constructed from polyMesh and dictionary. More...
 
- Protected Attributes inherited from points0MotionSolver
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           motionSolver;

    libs            ("libfvMotionSolvers.so");

    motionSolver    displacementLinearMotion;

    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 73 of file displacementLinearMotionMotionSolver.H.

Constructor & Destructor Documentation

◆ displacementLinearMotionMotionSolver() [1/2]

displacementLinearMotionMotionSolver ( const word name,
const polyMesh mesh,
const dictionary dict 
)

Construct from polyMesh and dictionary.

Definition at line 46 of file displacementLinearMotionMotionSolver.C.

◆ displacementLinearMotionMotionSolver() [2/2]

Disallow default bitwise copy construction.

◆ ~displacementLinearMotionMotionSolver()

Member Function Documentation

◆ TypeName()

TypeName ( "displacementLinearMotion"  )

Runtime type information.

◆ curPoints()

Foam::tmp< Foam::pointField > curPoints ( ) const
virtual

Return point location obtained from the current motion field.

Implements motionSolver.

Definition at line 81 of file displacementLinearMotionMotionSolver.C.

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

Here is the call graph for this function:

◆ solve()

virtual void solve ( )
inlinevirtual

Solve for motion.

Implements motionSolver.

Definition at line 125 of file displacementLinearMotionMotionSolver.H.

◆ operator=()

void operator= ( const displacementLinearMotionMotionSolver )
delete

Disallow default bitwise assignment.


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