Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
SimpleBathProblemSetup.hpp File Reference
#include "AbstractCardiacCellFactory.hpp"
#include "DistributedTetrahedralMesh.hpp"
#include "DistributedTetrahedralMeshPartitionType.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

◆ Load2dMeshAndSetCircularTissue() [1/2]

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
Returns
the new mesh

Definition at line 152 of file SimpleBathProblemSetup.hpp.

References SetCircularTissueIn2dMesh().

◆ Load2dMeshAndSetCircularTissue() [2/2]

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
Returns
the new mesh

Definition at line 174 of file SimpleBathProblemSetup.hpp.

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

◆ 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 125 of file SimpleBathProblemSetup.hpp.

References HeartRegionCode::GetValidBathId().

Referenced by Load2dMeshAndSetCircularTissue().