60 const TiXmlElement *pXml)
65 m_nq = pField->GetTotPoints();
74 const TiXmlElement *pXmlparameter;
76 pXmlparameter = pXml->FirstChildElement(
"p_x1");
77 m_px1 = atof(pXmlparameter->GetText());
79 pXmlparameter = pXml->FirstChildElement(
"p_y1");
80 m_py1 = atof(pXmlparameter->GetText());
82 pXmlparameter = pXml->FirstChildElement(
"p_z1");
83 m_pz1 = atof(pXmlparameter->GetText());
85 pXmlparameter = pXml->FirstChildElement(
"p_r1");
86 m_pr1 = atof(pXmlparameter->GetText());
88 pXmlparameter = pXml->FirstChildElement(
"p_is");
89 m_pis = atof(pXmlparameter->GetText());
91 pXmlparameter = pXml->FirstChildElement(
"p_strength");
109 int dim =
m_field->GetCoordim(0);
112 int nq =
m_field->GetNpoints();
121 m_field->GetCoords(x0, x1, x2);
126 for (
int j = 0; j < nq; j++)
136 for (
int j = 0; j < nq; j++)
148 for (
int j = 0; j < nq; j++)
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
void Initialise()
Initialise the protocol storage and set initial conditions.
StimulusCirc(const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField, const TiXmlElement *pXml)
void v_Update(Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time) override
static StimulusSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField, const TiXmlElement *pXml)
Creates an instance of this class.
void v_GenerateSummary(SolverUtils::SummaryList &s) override
NekDouble m_chiCapMembrane
static std::string className
Name of class.
MultiRegions::ExpListSharedPtr m_field
Transmembrane potential field from PDE system.
ProtocolSharedPtr m_Protocol
Stimulus protocol to apply.
int m_nq
Number of physical points.
LibUtilities::SessionReaderSharedPtr m_session
Session.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
std::vector< std::pair< std::string, std::string > > SummaryList
StimulusFactory & GetStimulusFactory()