Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
PottsMeshGenerator< DIM > Class Template Reference

#include <PottsMeshGenerator.hpp>

+ Collaboration diagram for PottsMeshGenerator< DIM >:

Public Member Functions

 PottsMeshGenerator (unsigned numNodesAcross, unsigned numElementsAcross, unsigned elementWidth, unsigned numNodesUp=1u, unsigned numElementsUp=1u, unsigned elementHeight=1u, unsigned numNodesDeep=1u, unsigned numElementsDeep=1u, unsigned elementDepth=1u, bool startAtBottomLeft=false, bool isPeriodicInX=false, bool isPeriodicInY=false, bool isPeriodicInZ=false)
 
virtual ~PottsMeshGenerator ()=default
 
void CaclulateNeighbouringNodeIndices (bool isPeriodicInX)
 
virtual boost::shared_ptr< PottsMesh< DIM > > GetMesh ()
 

Protected Attributes

boost::shared_ptr< PottsMesh< DIM > > mpMesh
 

Detailed Description

template<unsigned DIM>
class PottsMeshGenerator< DIM >

Generator of regular Potts meshes, used as starting points for many simulations.

This class takes in options such as width, height,

NOTE: the user should delete the mesh after use to manage memory.

Definition at line 53 of file PottsMeshGenerator.hpp.

Constructor & Destructor Documentation

◆ PottsMeshGenerator()

template<unsigned DIM>
PottsMeshGenerator< DIM >::PottsMeshGenerator ( unsigned  numNodesAcross,
unsigned  numElementsAcross,
unsigned  elementWidth,
unsigned  numNodesUp = 1u,
unsigned  numElementsUp = 1u,
unsigned  elementHeight = 1u,
unsigned  numNodesDeep = 1u,
unsigned  numElementsDeep = 1u,
unsigned  elementDepth = 1u,
bool  startAtBottomLeft = false,
bool  isPeriodicInX = false,
bool  isPeriodicInY = false,
bool  isPeriodicInZ = false 
)

Constructor.

Parameters
numNodesAcrossThe number of columns of nodes in the mesh
numElementsAcrossThe number of columns of elements in the mesh
elementWidthWidth of the elements
numNodesUpThe number of rows of nodes in the mesh (defaults to 1)
numElementsUpThe number of rows of elements in the mesh (defaults to 1)
elementHeightHeight of the elements (defaults to 1)
numNodesDeepThe number nodes deep for this mesh (defaults to 1)
numElementsDeepThe number of elements deep for this mesh (defaults to 1)
elementDepthThe number of rows of nodes in each element (defaults to 1)
startAtBottomLeftIf true then the mesh starts in the bottom left corner of the domain rather than the centre, used for simple tests (defaults to false)
isPeriodicInXIf true then the mesh is periodic in the x dimension (defaults to false)
isPeriodicInYIf true then the mesh is periodic in the y dimension (defaults to false)
isPeriodicInZIf true then the mesh is periodic in the y dimension (defaults to false)

Definition at line 43 of file PottsMeshGenerator.cpp.

References NEVER_REACHED.

◆ ~PottsMeshGenerator()

template<unsigned DIM>
virtual PottsMeshGenerator< DIM >::~PottsMeshGenerator ( )
virtualdefault

Empty destructor.

Member Function Documentation

◆ CaclulateNeighbouringNodeIndices()

template<unsigned DIM>
void PottsMeshGenerator< DIM >::CaclulateNeighbouringNodeIndices ( bool  isPeriodicInX)

Helper method to calculate the Moore and Von Neumann Neighbourhoods of all nodes

Parameters
isPeriodicInXIf true then the mesh is periodic in the x dimension

◆ GetMesh()

template<unsigned DIM>
boost::shared_ptr< PottsMesh< DIM > > PottsMeshGenerator< DIM >::GetMesh ( )
virtual
Returns
a Cuboid or rectangular Potts mesh.

Definition at line 743 of file PottsMeshGenerator.cpp.

Member Data Documentation

◆ mpMesh

template<unsigned DIM>
boost::shared_ptr<PottsMesh<DIM> > PottsMeshGenerator< DIM >::mpMesh
protected

A pointer to the mesh this class creates

Definition at line 58 of file PottsMeshGenerator.hpp.


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