56 const TiXmlElement *pXml)
66 const TiXmlElement *pXmlparameter;
71 pXmlparameter = pXml->FirstChildElement(
"START");
73 atof(pXmlparameter->GetText());
76 pXmlparameter = pXml->FirstChildElement(
"DURATION");
77 m_dur = atof(pXmlparameter->GetText());
79 pXmlparameter = pXml->FirstChildElement(
"S1CYCLELENGTH");
82 pXmlparameter = pXml->FirstChildElement(
"NUM_S1");
83 m_num_s1 = atof(pXmlparameter->GetText());
85 pXmlparameter = pXml->FirstChildElement(
"S2CYCLELENGTH");
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
LibUtilities::SessionReaderSharedPtr m_session
Session.
NekDouble m_s2cyclelength
ProtocolS1S2(const LibUtilities::SessionReaderSharedPtr &pSession, const TiXmlElement *pXml)
NekDouble v_GetAmplitude(const NekDouble time) override
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_SetInitialConditions()
void v_GenerateSummary(SolverUtils::SummaryList &s) override
void Initialise()
Initialise the protocol storage and set initial conditions.
NekDouble m_s1cyclelength
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::vector< std::pair< std::string, std::string > > SummaryList
ProtocolFactory & GetProtocolFactory()