58 const TiXmlElement *pXml)
69 const TiXmlElement *pXmlparameter;
72 pXmlparameter = pXml->FirstChildElement(
"START");
73 m_start = atof(pXmlparameter->GetText());
75 pXmlparameter = pXml->FirstChildElement(
"DURATION");
76 m_dur = atof(pXmlparameter->GetText());
78 pXmlparameter = pXml->FirstChildElement(
"S1CYCLELENGTH");
81 pXmlparameter = pXml->FirstChildElement(
"NUM_S1");
82 m_num_s1 = atof(pXmlparameter->GetText());
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
LibUtilities::SessionReaderSharedPtr m_session
Session.
virtual void v_SetInitialConditions()
NekDouble v_GetAmplitude(const NekDouble time) override
void v_GenerateSummary(SolverUtils::SummaryList &s) override
NekDouble m_s1cyclelength
ProtocolS1(const LibUtilities::SessionReaderSharedPtr &pSession, const TiXmlElement *pXml)
static std::string className
Name of class.
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.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::vector< std::pair< std::string, std::string > > SummaryList
ProtocolFactory & GetProtocolFactory()