Nektar++
|
#include <Stimulus.h>
Public Member Functions | |
Stimulus (const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField, const TiXmlElement *pXml) | |
virtual | ~Stimulus () |
void | Initialise () |
Initialise the stimulus storage and set initial conditions. | |
void | Update (Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time) |
Updates RHS of outarray by adding a stimulus to it. | |
void | GenerateSummary (SolverUtils::SummaryList &s) |
Print a summary of the outarray. |
Static Public Member Functions | |
static std::vector < StimulusSharedPtr > | LoadStimuli (const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField) |
Protected Member Functions | |
virtual void | v_Update (Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)=0 |
virtual void | v_GenerateSummary (SolverUtils::SummaryList &s)=0 |
Protected Attributes | |
LibUtilities::SessionReaderSharedPtr | m_session |
Session. | |
MultiRegions::ExpListSharedPtr | m_field |
Transmembrane potential field from PDE system. | |
int | m_nq |
Number of physical points. | |
ProtocolSharedPtr | m_Protocol |
Stimulus base class.
The Stimulus 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 66 of file Stimulus.h.
Nektar::Stimulus::Stimulus | ( | const LibUtilities::SessionReaderSharedPtr & | pSession, |
const MultiRegions::ExpListSharedPtr & | pField, | ||
const TiXmlElement * | pXml | ||
) |
Stimulus base class constructor.
Definition at line 65 of file Stimulus.cpp.
References Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), Nektar::GetProtocolFactory(), m_field, m_nq, m_Protocol, and m_session.
|
inlinevirtual |
Definition at line 73 of file Stimulus.h.
|
inline |
Print a summary of the outarray.
Definition at line 86 of file Stimulus.h.
References v_GenerateSummary().
void Nektar::Stimulus::Initialise | ( | ) |
Initialise the stimulus storage and set initial conditions.
Initialise the stimulus. Allocate workspace and variable storage.
Reimplemented in Nektar::StimulusCirc, Nektar::StimulusPoint, and Nektar::StimulusRect.
Definition at line 85 of file Stimulus.cpp.
|
static |
Definition at line 95 of file Stimulus.cpp.
References Nektar::GetStimulusFactory().
Referenced by main().
|
inline |
Updates RHS of outarray by adding a stimulus to it.
Definition at line 79 of file Stimulus.h.
References v_Update().
|
protectedpure virtual |
Implemented in Nektar::StimulusCirc, Nektar::StimulusRect, and Nektar::StimulusPoint.
Referenced by GenerateSummary().
|
protectedpure virtual |
Implemented in Nektar::StimulusCirc, Nektar::StimulusRect, and Nektar::StimulusPoint.
Referenced by Update().
|
protected |
Transmembrane potential field from PDE system.
Definition at line 99 of file Stimulus.h.
Referenced by Stimulus(), Nektar::StimulusCirc::StimulusCirc(), Nektar::StimulusPoint::StimulusPoint(), Nektar::StimulusRect::StimulusRect(), Nektar::StimulusRect::v_Update(), and Nektar::StimulusCirc::v_Update().
|
protected |
Number of physical points.
Definition at line 101 of file Stimulus.h.
Referenced by Stimulus(), Nektar::StimulusCirc::StimulusCirc(), Nektar::StimulusPoint::StimulusPoint(), and Nektar::StimulusRect::StimulusRect().
|
protected |
Definition at line 102 of file Stimulus.h.
Referenced by Stimulus(), Nektar::StimulusPoint::v_Update(), Nektar::StimulusRect::v_Update(), and Nektar::StimulusCirc::v_Update().
|
protected |
Session.
Definition at line 97 of file Stimulus.h.
Referenced by Stimulus(), Nektar::StimulusCirc::StimulusCirc(), Nektar::StimulusPoint::StimulusPoint(), and Nektar::StimulusRect::StimulusRect().