Nektar++
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
solvers
CardiacEPSolver
Stimuli
StimulusPoint.h
Go to the documentation of this file.
1
///////////////////////////////////////////////////////////////////////////////
2
//
3
// File StimulusPoint.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: Rectangular stimulus header file
34
//
35
///////////////////////////////////////////////////////////////////////////////
36
37
#ifndef NEKTAR_SOLVERS_CARDIACEPSOLVER_STIMULI_STIMULUSRECT
38
#define NEKTAR_SOLVERS_CARDIACEPSOLVER_STIMULI_STIMULUSRECT
39
40
#include <
LibUtilities/BasicUtils/NekFactory.hpp
>
41
#include <
LibUtilities/BasicUtils/SessionReader.h
>
42
#include <
LibUtilities/BasicUtils/SharedArray.hpp
>
43
#include <
MultiRegions/ExpList.h
>
44
#include <
CardiacEPSolver/Stimuli/Stimulus.h
>
45
46
namespace
Nektar
47
{
48
49
/// Protocol base class.
50
class
StimulusPoint
:
public
Stimulus
51
{
52
public
:
53
/// Creates an instance of this class
54
static
StimulusSharedPtr
create
(
55
const
LibUtilities::SessionReaderSharedPtr
& pSession,
56
const
MultiRegions::ExpListSharedPtr
& pField,
57
const
TiXmlElement* pXml)
58
{
59
return
MemoryManager<StimulusPoint>
60
::AllocateSharedPtr
(pSession, pField, pXml);
61
}
62
63
/// Name of class
64
static
std::string
className
;
65
66
StimulusPoint
(
const
LibUtilities::SessionReaderSharedPtr
& pSession,
67
const
MultiRegions::ExpListSharedPtr
& pField,
68
const
TiXmlElement* pXml);
69
70
virtual
~StimulusPoint
() {}
71
72
/// Initialise the stimulus storage and set initial conditions
73
void
Initialise
();
74
75
protected
:
76
NekDouble
m_strength
;
77
78
virtual
void
v_Update
(Array<
OneD
, Array<OneD, NekDouble> >&outarray,
79
const
NekDouble
time);
80
81
virtual
void
v_GenerateSummary
(
SolverUtils::SummaryList
& s);
82
83
};
84
}
85
86
#endif
Generated on Sun Mar 15 2015 00:11:35 for Nektar++ by
1.8.1.2