36#include "AbstractStimulusFactory.hpp"
37#include "ZeroStimulus.hpp"
40template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
44 boost::shared_ptr<ZeroStimulus> p_stim (
new ZeroStimulus() );
48template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
51 assert(mpMesh != NULL);
52 return mpMesh->GetNumNodes();
55template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
62template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
67template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
73template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
79template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
84 EXCEPTION(
"The mesh object has not been set in the stimulus factory");
95template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
98 return mGroundedRegions;
#define EXCEPTION(message)
void SetMesh(AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh)
virtual void SetCompatibleExtracellularStimulus()
virtual unsigned GetNumberOfCells()
virtual boost::shared_ptr< AbstractStimulusFunction > CreateStimulusForNode(Node< SPACE_DIM > *pNode)
AbstractStimulusFactory()
AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > * GetMesh()
std::vector< AbstractChasteRegion< SPACE_DIM > * > GetRegionsToBeGrounded()
virtual ~AbstractStimulusFactory()