Nektar++
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Nektar::Protocol Class Referenceabstract

Protocol base class. More...

#include <Protocol.h>

Inheritance diagram for Nektar::Protocol:
[legend]

Public Member Functions

virtual ~Protocol ()
 
void Initialise ()
 Initialise the protocol storage and set initial conditions. More...
 
NekDouble GetAmplitude (const NekDouble time)
 Returns amplitude of stimulus (1 or 0) at given time. More...
 
void GenerateSummary (SolverUtils::SummaryList &s)
 Print a summary of the cell model. More...
 

Protected Member Functions

 Protocol (const LibUtilities::SessionReaderSharedPtr &pSession, const TiXmlElement *pXml)
 
virtual NekDouble v_GetAmplitude (const NekDouble time)=0
 
virtual void v_GenerateSummary (SolverUtils::SummaryList &s)=0
 

Protected Attributes

LibUtilities::SessionReaderSharedPtr m_session
 Session. More...
 

Detailed Description

Protocol base class.

The Stimuli class and derived classes implement a range of stimuli. The stimulus contains input stimuli that can be applied throughout the domain, on specified regions determined by the derived classes of Stimulus, at specified frequencies determined by the derived classes of Protocol.

Definition at line 61 of file Protocol.h.

Constructor & Destructor Documentation

◆ ~Protocol()

virtual Nektar::Protocol::~Protocol ( )
inlinevirtual

Definition at line 64 of file Protocol.h.

65 {
66 }

◆ Protocol()

Nektar::Protocol::Protocol ( const LibUtilities::SessionReaderSharedPtr pSession,
const TiXmlElement *  pXml 
)
protected

Protocol base class constructor.

Definition at line 58 of file Protocol.cpp.

60 : m_session(pSession)
61{
62}
LibUtilities::SessionReaderSharedPtr m_session
Session.
Definition: Protocol.h:85

Member Function Documentation

◆ GenerateSummary()

void Nektar::Protocol::GenerateSummary ( SolverUtils::SummaryList s)
inline

Print a summary of the cell model.

Definition at line 78 of file Protocol.h.

79 {
81 }
virtual void v_GenerateSummary(SolverUtils::SummaryList &s)=0

References v_GenerateSummary().

◆ GetAmplitude()

NekDouble Nektar::Protocol::GetAmplitude ( const NekDouble  time)
inline

Returns amplitude of stimulus (1 or 0) at given time.

Definition at line 72 of file Protocol.h.

73 {
74 return v_GetAmplitude(time);
75 }
virtual NekDouble v_GetAmplitude(const NekDouble time)=0

References v_GetAmplitude().

◆ Initialise()

void Nektar::Protocol::Initialise ( )

Initialise the protocol storage and set initial conditions.

Initialise the protocol. Allocate workspace and variable storage.

Definition at line 67 of file Protocol.cpp.

68{
69}

◆ v_GenerateSummary()

virtual void Nektar::Protocol::v_GenerateSummary ( SolverUtils::SummaryList s)
protectedpure virtual

◆ v_GetAmplitude()

virtual NekDouble Nektar::Protocol::v_GetAmplitude ( const NekDouble  time)
protectedpure virtual

Member Data Documentation

◆ m_session

LibUtilities::SessionReaderSharedPtr Nektar::Protocol::m_session
protected