Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StimulusCircle.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File StimulusCircle.h
4 //
5 // For more information, please see: http://www.nektar.info
6 //
7 // The MIT License
8 //
9 //
10 // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
11 // Department of Aeronautics, Imperial College London (UK), and Scientific
12 // Computing and Imaging Institute, University of Utah (USA).
13 //
14 // License for the specific language governing rights and limitations under
15 // Permission is hereby granted, free of charge, to any person obtaining a
16 // copy of this software and associated documentation files (the "Software"),
17 // to deal in the Software without restriction, including without limitation
18 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 // and/or sell copies of the Software, and to permit persons to whom the
20 // Software is furnished to do so, subject to the following conditions:
21 //
22 // The above copyright notice and this permission notice shall be included
23 // in all copies or substantial portions of the Software.
24 //
25 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
26 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
28 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
30 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
31 // DEALINGS IN THE SOFTWARE.
32 //
33 // Description: Circular stimulus header file.
34 //
35 ///////////////////////////////////////////////////////////////////////////////
36 
37 #ifndef NEKTAR_SOLVERS_CARDIACEPSOLVER_STIMULI_STIMULUSCIRC
38 #define NEKTAR_SOLVERS_CARDIACEPSOLVER_STIMULI_STIMULUSCIRC
39 
43 //#include <SpatialDomains/SpatialData.h>
44 #include <MultiRegions/ExpList.h>
48 
49 namespace Nektar
50 {
51 
52  /// Protocol base class.
53  class StimulusCirc: public Stimulus
54  {
55  public:
56  /// Creates an instance of this class
59  const MultiRegions::ExpListSharedPtr& pField,
60  const TiXmlElement* pXml)
61  {
63  ::AllocateSharedPtr(pSession, pField, pXml);
64  }
65 
66  /// Name of class
67  static std::string className;
68 
69  friend class MemoryManager<StimulusCirc>;
70 
71  virtual ~StimulusCirc() {}
72 
73  /// Initialise the protocol storage and set initial conditions
74  void Initialise();
75 
76  protected:
85 
86  virtual void v_Update(Array<OneD, Array<OneD, NekDouble> >&outarray,
87  const NekDouble time);
88 
90 
91  private:
93  const MultiRegions::ExpListSharedPtr& pField,
94  const TiXmlElement* pXml);
95  };
96 
97 }
98 
99 #endif
void Initialise()
Initialise the protocol storage and set initial conditions.
boost::shared_ptr< Stimulus > StimulusSharedPtr
A shared pointer to an EquationSystem object.
Definition: Stimulus.h:50
virtual void v_Update(Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
NekDouble m_chiCapMembrane
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
std::vector< std::pair< std::string, std::string > > SummaryList
Definition: Misc.h:47
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
Definition: MeshPartition.h:51
StimulusCirc(const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField, const TiXmlElement *pXml)
boost::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
virtual void v_GenerateSummary(SolverUtils::SummaryList &s)
Stimulus base class.
Definition: Stimulus.h:66
double NekDouble
static std::string className
Name of class.
Protocol base class.
static StimulusSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField, const TiXmlElement *pXml)
Creates an instance of this class.