layeredDisplacement Class Reference

Interpolating motion solver for extruded/layered meshes. More...

Inheritance diagram for layeredDisplacement:
Collaboration diagram for layeredDisplacement:

Public Member Functions

 TypeName ("layeredDisplacement")
 Runtime type information. More...
 
 layeredDisplacement (const polyMesh &, const dictionary &)
 Construct from polyMesh and dictionary. More...
 
 layeredDisplacement (const layeredDisplacement &)=delete
 Disallow default bitwise copy construction. More...
 
 ~layeredDisplacement ()
 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 layeredDisplacement &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from displacement
 TypeName ("displacement")
 Runtime type information. More...
 
 displacement (const polyMesh &, const dictionary &, const word &type)
 Construct from mesh and dictionary. More...
 
 displacement (const displacement &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~displacement ()
 Destructor. More...
 
pointVectorFieldpointDisplacement ()
 Return reference to the point motion displacement field. More...
 
const pointVectorFieldpointDisplacement () const
 Return const reference to the point motion displacement field. More...
 
void operator= (const displacement &)=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 Member Functions inherited from displacement
tmp< pointFieldpoints () const
 Return the points corresponding to the current displacement. More...
 
- Protected Attributes inherited from displacement
pointVectorField pointDisplacement_
 Point motion field. More...
 
- Protected Attributes inherited from displacementPoints0
pointVectorField points0_
 Starting points. More...
 

Detailed Description

Interpolating motion solver for extruded/layered meshes.

Uses a topological walk from points along edges to points from one patch to the opposite, accumulating distance and propagating displacement and then again in the return direction and uses the distances from each point to the two opposite patches to linearly interpolate the displacements of these two patches to the each point.

This motion solver is very simple to configure, only the two opposite patches between which the mesh is layered need be specified as a pair of patch names following the oppositePatches keyword, e.g.

    mover
    {
        type            pointMeshMover;

        libs            ("libfvMotionSolvers.so");

        pointMeshMover    displacementLayered;

        oppositePatches (top bottom);
    }
Source files

Definition at line 73 of file layeredDisplacement_pointMeshMover.H.

Constructor & Destructor Documentation

◆ layeredDisplacement() [1/2]

layeredDisplacement ( const polyMesh mesh,
const dictionary dict 
)

Construct from polyMesh and dictionary.

Definition at line 131 of file layeredDisplacement_pointMeshMover.C.

◆ layeredDisplacement() [2/2]

Disallow default bitwise copy construction.

◆ ~layeredDisplacement()

Destructor.

Definition at line 149 of file layeredDisplacement_pointMeshMover.C.

Member Function Documentation

◆ TypeName()

TypeName ( "layeredDisplacement"  )

Runtime type information.

◆ newPoints()

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

Return point location obtained from the current motion field.

Implements displacement.

Definition at line 156 of file layeredDisplacement_pointMeshMover.C.

References pointConstraints::constrainDisplacement(), DemandDrivenMeshObject< pointMesh, TopoChangeableMeshObject, pointConstraints >::New(), nPoints, and points.

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)

Reimplemented from displacement.

Definition at line 191 of file layeredDisplacement_pointMeshMover.C.

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

Here is the call graph for this function:

◆ operator=()

void operator= ( const layeredDisplacement )
delete

Disallow default bitwise assignment.


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