Nektar++
|
#include <FilterElectrogram.h>
Public Member Functions | |
FilterElectrogram (const LibUtilities::SessionReaderSharedPtr &pSession, const std::map< std::string, std::string > &pParams) | |
Electrogram filter constructor. | |
virtual | ~FilterElectrogram () |
Electrogram filter destructor. | |
Public Member Functions inherited from Nektar::SolverUtils::Filter | |
SOLVER_UTILS_EXPORT | Filter (const LibUtilities::SessionReaderSharedPtr &pSession) |
virtual SOLVER_UTILS_EXPORT | ~Filter () |
SOLVER_UTILS_EXPORT void | Initialise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
SOLVER_UTILS_EXPORT void | Update (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
SOLVER_UTILS_EXPORT void | Finalise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
SOLVER_UTILS_EXPORT bool | IsTimeDependent () |
Static Public Member Functions | |
static SolverUtils::FilterSharedPtr | create (const LibUtilities::SessionReaderSharedPtr &pSession, const std::map< std::string, std::string > &pParams) |
Creates an instance of this class. |
Static Public Attributes | |
static std::string | className |
Name of the class. |
Protected Member Functions | |
virtual void | v_Initialise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
Initialises the electrogram filter and open output file. | |
virtual void | v_Update (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
Compute extracellular potential at egm points at current time. | |
virtual void | v_Finalise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
Finalise the electrogram filter and close output file. | |
virtual bool | v_IsTimeDependent () |
Filter is time-dependent and should be called at each time-step. |
Private Attributes | |
Array< OneD, Array< OneD, NekDouble > > | m_grad_R_x |
Gradient of the radius from each electrogram point in x-direction. | |
Array< OneD, Array< OneD, NekDouble > > | m_grad_R_y |
Gradient of the radius from each electrogram point in y-direction. | |
Array< OneD, Array< OneD, NekDouble > > | m_grad_R_z |
Gradient of the radius from each electrogram point in z-direction. | |
SpatialDomains::PointGeomVector | m_electrogramPoints |
List of electrogram points. | |
unsigned int | m_index |
Counts number of calls to update (number of timesteps) | |
unsigned int | m_outputFrequency |
Number of timesteps between outputs. | |
std::string | m_outputFile |
Filename to output electrogram data to. | |
std::ofstream | m_outputStream |
Output file stream for electrogram data. | |
std::stringstream | m_electrogramStream |
Point coordinate input string. |
Friends | |
class | MemoryManager< FilterElectrogram > |
Additional Inherited Members | |
Protected Attributes inherited from Nektar::SolverUtils::Filter | |
LibUtilities::SessionReaderSharedPtr | m_session |
Definition at line 44 of file FilterElectrogram.h.
Nektar::FilterElectrogram::FilterElectrogram | ( | const LibUtilities::SessionReaderSharedPtr & | pSession, |
const std::map< std::string, std::string > & | pParams | ||
) |
Electrogram filter constructor.
Definition at line 50 of file FilterElectrogram.cpp.
References ASSERTL0, m_electrogramStream, m_index, m_outputFile, m_outputFrequency, and Nektar::SolverUtils::Filter::m_session.
|
virtual |
|
inlinestatic |
Creates an instance of this class.
Definition at line 50 of file FilterElectrogram.h.
|
protectedvirtual |
Finalise the electrogram filter and close output file.
Implements Nektar::SolverUtils::Filter.
Definition at line 264 of file FilterElectrogram.cpp.
References m_outputStream.
|
protectedvirtual |
Initialises the electrogram filter and open output file.
Implements Nektar::SolverUtils::Filter.
Definition at line 100 of file FilterElectrogram.cpp.
References ASSERTL0, m_electrogramPoints, m_electrogramStream, m_grad_R_x, m_grad_R_y, m_grad_R_z, m_index, m_outputFile, m_outputStream, Nektar::SolverUtils::Filter::m_session, npts, Vmath::Sadd(), Vmath::Sdiv(), v_Update(), Vmath::Vsqrt(), Vmath::Vvtvp(), and Vmath::Vvtvvtp().
|
protectedvirtual |
Filter is time-dependent and should be called at each time-step.
Implements Nektar::SolverUtils::Filter.
Definition at line 278 of file FilterElectrogram.cpp.
|
protectedvirtual |
Compute extracellular potential at egm points at current time.
Implements Nektar::SolverUtils::Filter.
Definition at line 206 of file FilterElectrogram.cpp.
References m_electrogramPoints, m_grad_R_x, m_grad_R_y, m_grad_R_z, m_index, m_outputFrequency, m_outputStream, Nektar::LibUtilities::ReduceSum, Vmath::Vvtvp(), and Vmath::Vvtvvtp().
Referenced by v_Initialise().
|
friend |
Definition at line 47 of file FilterElectrogram.h.
|
static |
Name of the class.
Definition at line 60 of file FilterElectrogram.h.
|
private |
List of electrogram points.
Definition at line 94 of file FilterElectrogram.h.
Referenced by v_Initialise(), and v_Update().
|
private |
Point coordinate input string.
Definition at line 104 of file FilterElectrogram.h.
Referenced by FilterElectrogram(), and v_Initialise().
Gradient of the radius from each electrogram point in x-direction.
Definition at line 88 of file FilterElectrogram.h.
Referenced by v_Initialise(), and v_Update().
Gradient of the radius from each electrogram point in y-direction.
Definition at line 90 of file FilterElectrogram.h.
Referenced by v_Initialise(), and v_Update().
Gradient of the radius from each electrogram point in z-direction.
Definition at line 92 of file FilterElectrogram.h.
Referenced by v_Initialise(), and v_Update().
|
private |
Counts number of calls to update (number of timesteps)
Definition at line 96 of file FilterElectrogram.h.
Referenced by FilterElectrogram(), v_Initialise(), and v_Update().
|
private |
Filename to output electrogram data to.
Definition at line 100 of file FilterElectrogram.h.
Referenced by FilterElectrogram(), and v_Initialise().
|
private |
Number of timesteps between outputs.
Definition at line 98 of file FilterElectrogram.h.
Referenced by FilterElectrogram(), and v_Update().
|
private |
Output file stream for electrogram data.
Definition at line 102 of file FilterElectrogram.h.
Referenced by v_Finalise(), v_Initialise(), and v_Update().