Chaste Release::3.1
SimpleBathProblemSetup.hpp File Reference
#include "AbstractCardiacCellFactory.hpp"
#include "SimpleStimulus.hpp"
#include "LuoRudy1991.hpp"
#include "HeartRegionCodes.hpp"
Include dependency graph for SimpleBathProblemSetup.hpp:

Go to the source code of this file.

Classes

class  BathCellFactory< DIM, CELLTYPE >

Functions

template<class MeshType >
void SetCircularTissueIn2dMesh (MeshType *pMesh, double centreX, double centreY, double radius)
template<class MeshType >
MeshType * Load2dMeshAndSetCircularTissue (const std::string &rMeshPath, double centreX, double centreY, double radius)
template<>
DistributedTetrahedralMesh< 2, 2 > * Load2dMeshAndSetCircularTissue (const std::string &rMeshPath, double centreX, double centreY, double radius)

Detailed Description

Some helper classes and functions for setting up a simple bath problem for testing.

Definition in file SimpleBathProblemSetup.hpp.


Function Documentation

template<class MeshType >
MeshType* Load2dMeshAndSetCircularTissue ( const std::string &  rMeshPath,
double  centreX,
double  centreY,
double  radius 
)

Load a 2d mesh, and set everything outside a central circle to be bath.

Parameters:
rMeshPathrelative path to the mesh
centreXX co-ord of tissue centre
centreYY co-ord of tissue centre
radiusradius of tissue

Definition at line 150 of file SimpleBathProblemSetup.hpp.

References SetCircularTissueIn2dMesh().

template<>
DistributedTetrahedralMesh<2,2>* Load2dMeshAndSetCircularTissue ( const std::string &  rMeshPath,
double  centreX,
double  centreY,
double  radius 
)

Specialization for a parallel mesh.

Parameters:
rMeshPathrelative path to the mesh
centreXX co-ord of tissue centre
centreYY co-ord of tissue centre
radiusradius of tissue

Definition at line 171 of file SimpleBathProblemSetup.hpp.

References DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and SetCircularTissueIn2dMesh().

template<class MeshType >
void SetCircularTissueIn2dMesh ( MeshType *  pMesh,
double  centreX,
double  centreY,
double  radius 
)

Set everything outside a central circle in the given 2d mesh to be bath.

Parameters:
pMeshthe mesh
centreXX co-ord of tissue centre
centreYY co-ord of tissue centre
radiusradius of tissue

Definition at line 124 of file SimpleBathProblemSetup.hpp.

References HeartRegionCode::GetValidBathId().

Referenced by Load2dMeshAndSetCircularTissue().