65 const TiXmlElement* pXml)
70 m_nq = pField->GetTotPoints();
77 const TiXmlElement *pXmlparameter;
79 pXmlparameter = pXml->FirstChildElement(
"p_strength");
102 outarray[0][0] += v_amp;
void Initialise()
Initialise the stimulus storage and set initial conditions.
std::vector< std::pair< std::string, std::string > > SummaryList
ProtocolSharedPtr m_Protocol
Stimulus protocol to apply.
static StimulusSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField, const TiXmlElement *pXml)
Creates an instance of this class.
LibUtilities::SessionReaderSharedPtr m_session
Session.
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
int m_nq
Number of physical points.
static std::string className
Name of class.
boost::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
MultiRegions::ExpListSharedPtr m_field
Transmembrane potential field from PDE system.
StimulusFactory & GetStimulusFactory()
StimulusPoint(const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField, const TiXmlElement *pXml)
virtual void v_GenerateSummary(SolverUtils::SummaryList &s)
virtual void v_Update(Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.