#include <CylindricalHoneycombMeshGenerator.hpp>
Inherits HoneycombMeshGenerator.
Public Member Functions | |
CylindricalHoneycombMeshGenerator (unsigned numNodesAlongWidth, unsigned numNodesAlongLength, unsigned ghosts=3, double scaleFactor=1.0) | |
MutableMesh< 2, 2 > * | GetMesh () |
Cylindrical2dMesh * | GetCylindricalMesh () |
Honeycomb mesh generator that creates a 2D "cylindrical" mesh (one in which periodicity is imposed on the left and right boundaries) for use in cell-centre simulations.
NOTE: the user should delete the mesh after use to manage memory.
Definition at line 45 of file CylindricalHoneycombMeshGenerator.hpp.
CylindricalHoneycombMeshGenerator::CylindricalHoneycombMeshGenerator | ( | unsigned | numNodesAlongWidth, | |
unsigned | numNodesAlongLength, | |||
unsigned | ghosts = 3 , |
|||
double | scaleFactor = 1.0 | |||
) |
Default constructor.
numNodesAlongWidth | The number of cells you want alopng the bottom of the domain | |
numNodesAlongLength | The number of cells you want sides of the domain | |
ghosts | The thickness of ghost nodes to put around the edge (defaults to 3) | |
scaleFactor | The scale factor for the width (circumference) of the cells (defaults to 1.0) |
Definition at line 33 of file CylindricalHoneycombMeshGenerator.cpp.
References PetscTools::AmMaster(), PetscTools::Barrier(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), EXCEPTION, MutableMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), OutputFileHandler::GetOutputDirectoryFullPath(), PetscTools::IsSequential(), HoneycombMeshGenerator::mBottom, HoneycombMeshGenerator::mDomainDepth, HoneycombMeshGenerator::mDomainWidth, HoneycombMeshGenerator::mGhostNodeIndices, HoneycombMeshGenerator::mMeshFilename, HoneycombMeshGenerator::mNumCellLength, HoneycombMeshGenerator::mNumCellWidth, HoneycombMeshGenerator::mpMesh, HoneycombMeshGenerator::mTop, OutputFileHandler::OpenOutputFile(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::ReMesh(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::SetMeshHasChangedSinceLoading().
Cylindrical2dMesh * CylindricalHoneycombMeshGenerator::GetCylindricalMesh | ( | ) |
Definition at line 227 of file CylindricalHoneycombMeshGenerator.cpp.
References HoneycombMeshGenerator::mpMesh.
MutableMesh< 2, 2 > * CylindricalHoneycombMeshGenerator::GetMesh | ( | ) | [virtual] |
Reimplemented from HoneycombMeshGenerator.
Definition at line 221 of file CylindricalHoneycombMeshGenerator.cpp.
References EXCEPTION, and HoneycombMeshGenerator::mpMesh.