PottsMeshGenerator< DIM > Class Template Reference

#include <PottsMeshGenerator.hpp>

Collaboration diagram for PottsMeshGenerator< DIM >:
Collaboration graph
[legend]

List of all members.

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)
 PottsMeshGenerator ()
virtual ~PottsMeshGenerator ()
void CaclulateNeighbouringNodeIndices (bool isPeriodicInX)
virtual PottsMesh< DIM > * GetMesh ()

Protected Attributes

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 45 of file PottsMeshGenerator.hpp.


Constructor & Destructor Documentation

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 
) [inline]

Constructor.

Parameters:
numNodesAcross The number of columns of nodes in the mesh
numElementsAcross The number of columns of elements in the mesh
elementWidth Width of the elements
numNodesUp The number of rows of nodes in the mesh (defaults to 1)
numElementsUp The number of rows of elements in the mesh (defaults to 1)
elementHeight Height of the elements (defaults to 1)
numNodesDeep The number nodes deep for this mesh (defaults to 1)
numElementsDeep The number of elements deep for this mesh (defaults to 1)
elementDepth The number of rows of nodes in each element (defaults to 1)
startAtBottomLeft If true then the mesh starts in the bottom left corner of the domain rather than the centre, used for simple tests (defaults to false)
isPeriodicInX If true then the mesh is periodic in the x dimension (defaults to false)
isPeriodicInY If true then the mesh is periodic in the y dimension (defaults to false)
isPeriodicInZ If true then the mesh is periodic in the y dimension (defaults to false)

Definition at line 32 of file PottsMeshGenerator.cpp.

References PottsMeshGenerator< DIM >::mpMesh, and NEVER_REACHED.

template<unsigned DIM>
PottsMeshGenerator< DIM >::PottsMeshGenerator (  )  [inline]

Null constructor for derived classes to call.

Definition at line 89 of file PottsMeshGenerator.hpp.

template<unsigned DIM>
PottsMeshGenerator< DIM >::~PottsMeshGenerator (  )  [inline, virtual]

Destructor - deletes the mesh object and pointer

Definition at line 747 of file PottsMeshGenerator.cpp.

References PottsMeshGenerator< DIM >::mpMesh.


Member Function Documentation

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

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

Parameters:
isPeriodicInX If true then the mesh is periodic in the x dimnension
template<unsigned DIM>
PottsMesh< DIM > * PottsMeshGenerator< DIM >::GetMesh (  )  [inline, virtual]
Returns:
a Cubouid or rectangulr Potts mesh.

Definition at line 753 of file PottsMeshGenerator.cpp.

References PottsMeshGenerator< DIM >::mpMesh.


Member Data Documentation

template<unsigned DIM>
PottsMesh<DIM>* PottsMeshGenerator< DIM >::mpMesh [protected]

The documentation for this class was generated from the following files:
Generated on Thu Dec 22 13:07:20 2011 for Chaste by  doxygen 1.6.3