43 "S1S2 stimulus protocol.");
66 const TiXmlElement *pXmlparameter;
71 pXmlparameter = pXml->FirstChildElement(
"START");
72 m_start = atof(pXmlparameter->GetText());
74 pXmlparameter = pXml->FirstChildElement(
"DURATION");
75 m_dur = atof(pXmlparameter->GetText());
77 pXmlparameter = pXml->FirstChildElement(
"S1CYCLELENGTH");
80 pXmlparameter = pXml->FirstChildElement(
"NUM_S1");
81 m_num_s1 = atof(pXmlparameter->GetText());
83 pXmlparameter = pXml->FirstChildElement(
"S2CYCLELENGTH");
virtual NekDouble v_GetAmplitude(const NekDouble time)
NekDouble m_s2cyclelength
std::vector< std::pair< std::string, std::string > > SummaryList
NekDouble m_s1cyclelength
ProtocolFactory & GetProtocolFactory()
LibUtilities::SessionReaderSharedPtr m_session
Session.
static ProtocolSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const TiXmlElement *pXml)
Creates an instance of this class.
static std::string className
Name of class.
virtual void v_GenerateSummary(SolverUtils::SummaryList &s)
ProtocolS1S2(const LibUtilities::SessionReaderSharedPtr &pSession, const TiXmlElement *pXml)
void Initialise()
Initialise the protocol storage and set initial conditions.
virtual void v_SetInitialConditions()
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
std::shared_ptr< SessionReader > SessionReaderSharedPtr