Chaste  Release::3.4
CylindricalHoneycombMeshGenerator Class Reference

#include <CylindricalHoneycombMeshGenerator.hpp>

+ Inheritance diagram for CylindricalHoneycombMeshGenerator:
+ Collaboration diagram for CylindricalHoneycombMeshGenerator:

Public Member Functions

 CylindricalHoneycombMeshGenerator (unsigned numNodesAlongWidth, unsigned numNodesAlongLength, unsigned ghosts=3, double scaleFactor=1.0)
 
MutableMesh< 2, 2 > * GetMesh ()
 
Cylindrical2dMeshGetCylindricalMesh ()
 
- Public Member Functions inherited from HoneycombMeshGenerator
 HoneycombMeshGenerator (unsigned numNodesAlongWidth, unsigned numNodesAlongLength, unsigned ghosts=0, double scaleFactor=1.0)
 
 HoneycombMeshGenerator ()
 
virtual ~HoneycombMeshGenerator ()
 
std::vector< unsignedGetCellLocationIndices ()
 
MutableMesh< 2, 2 > * GetCircularMesh (double radius)
 
double GetDomainDepth ()
 
double GetDomainWidth ()
 

Additional Inherited Members

- Protected Attributes inherited from HoneycombMeshGenerator
MutableMesh< 2, 2 > * mpMesh
 
std::set< unsignedmGhostNodeIndices
 
std::string mMeshFilename
 
double mDomainWidth
 
double mDomainDepth
 
double mBottom
 
double mTop
 
unsigned mNumCellWidth
 
unsigned mNumCellLength
 

Detailed Description

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 52 of file CylindricalHoneycombMeshGenerator.hpp.

Constructor & Destructor Documentation

CylindricalHoneycombMeshGenerator::CylindricalHoneycombMeshGenerator ( unsigned  numNodesAlongWidth,
unsigned  numNodesAlongLength,
unsigned  ghosts = 3,
double  scaleFactor = 1.0 
)

Default constructor.

Parameters
numNodesAlongWidthThe number of cells you want along the bottom of the domain
numNodesAlongLengthThe number of cells you want sides of the domain
ghostsThe thickness of ghost nodes to put around the edge (defaults to 3)
scaleFactorThe scale factor for the width (circumference) of the cells (defaults to 1.0)

Definition at line 43 of file CylindricalHoneycombMeshGenerator.cpp.

References PetscTools::IsSequential(), HoneycombMeshGenerator::mBottom, HoneycombMeshGenerator::mDomainDepth, HoneycombMeshGenerator::mDomainWidth, HoneycombMeshGenerator::mGhostNodeIndices, HoneycombMeshGenerator::mMeshFilename, HoneycombMeshGenerator::mNumCellLength, HoneycombMeshGenerator::mNumCellWidth, HoneycombMeshGenerator::mpMesh, HoneycombMeshGenerator::mTop, MutableMesh< ELEMENT_DIM, SPACE_DIM >::ReMesh(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::SetMeshHasChangedSinceLoading(), and SmallPow().

Member Function Documentation

Cylindrical2dMesh * CylindricalHoneycombMeshGenerator::GetCylindricalMesh ( )
Returns
a 2D honeycomb mesh with periodic left/right boundaries

Definition at line 226 of file CylindricalHoneycombMeshGenerator.cpp.

References HoneycombMeshGenerator::mpMesh.

MutableMesh< 2, 2 > * CylindricalHoneycombMeshGenerator::GetMesh ( )
virtual
Returns
a 2D honeycomb mesh

Reimplemented from HoneycombMeshGenerator.

Definition at line 220 of file CylindricalHoneycombMeshGenerator.cpp.

References EXCEPTION, and HoneycombMeshGenerator::mpMesh.


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