Chaste
Release::2017.1
|
#include <PottsMeshGenerator.hpp>
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 () |
void | CaclulateNeighbouringNodeIndices (bool isPeriodicInX) |
virtual PottsMesh< DIM > * | GetMesh () |
Protected Attributes | |
PottsMesh< DIM > * | mpMesh |
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 52 of file PottsMeshGenerator.hpp.
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.
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 41 of file PottsMeshGenerator.cpp.
References NEVER_REACHED.
|
virtual |
Destructor - deletes the mesh object and pointer.
Definition at line 741 of file PottsMeshGenerator.cpp.
void PottsMeshGenerator< DIM >::CaclulateNeighbouringNodeIndices | ( | bool | isPeriodicInX | ) |
Helper method to calculate the Moore and Von Neumann Neighbourhoods of all nodes
isPeriodicInX | If true then the mesh is periodic in the x dimension |
|
virtual |
Definition at line 747 of file PottsMeshGenerator.cpp.
|
protected |
A pointer to the mesh this class creates
Definition at line 57 of file PottsMeshGenerator.hpp.