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