45 #include "CepModTtp.h"
53 enum class ElectrophysiologyModelType {
61 extern const std::map<std::string,ElectrophysiologyModelType> cep_model_name_to_type;
64 static std::ostream &operator << ( std::ostream& strm, ElectrophysiologyModelType type)
66 const std::map<ElectrophysiologyModelType, std::string> names = {
67 {ElectrophysiologyModelType::NA,
"NA"},
68 {ElectrophysiologyModelType::AP,
"AP"},
69 {ElectrophysiologyModelType::BO,
"BO"},
70 {ElectrophysiologyModelType::FN,
"FN"},
71 {ElectrophysiologyModelType::TTP,
"TTP"},
73 return strm << names.at(type);
77 enum class TimeIntegratioType {
84 extern const std::map<std::string,TimeIntegratioType> cep_time_int_to_type;
86 static std::ostream &operator << ( std::ostream& strm, TimeIntegratioType type)
88 const std::map<TimeIntegratioType, std::string> names = {
89 {TimeIntegratioType::NA,
"NA"},
90 {TimeIntegratioType::FE,
"FE"},
91 {TimeIntegratioType::RK4,
"RK4"},
92 {TimeIntegratioType::CN2,
"CN2"},
94 return strm << names.at(type);
103 TimeIntegratioType
tIntType = TimeIntegratioType::NA;
164 ElectrophysiologyModelType
cepType = ElectrophysiologyModelType::NA;
This module defines data structures for Aliev-Panfilov cellular activation model for cardiac electrop...
Definition: CepModAp.h:43
This module defines data structures for Bueno-Orovio cellular activation model for cardiac electrophy...
Definition: CepModBo.h:46
This module defines data structures for Fitzhugh-Nagumo cellular activation model for cardiac electro...
Definition: CepModFn.h:43
int nXion
Max. dof in cellular activation model.
Definition: CepMod.h:227
CepModBo bo
Interface for ABueno-Orovio cellular activation model.
Definition: CepMod.h:239
bool cepEq
Whether cardiac electrophysiology is solved.
Definition: CepMod.h:224
CepModAp ap
Interface for Aliev-Panfilov cellular activation model.
Definition: CepMod.h:236
CepModFn fn
Interface for Fitzhugh-Nagumo cellular activation model.
Definition: CepMod.h:242
cemModelType cem
Cardiac electromechanics type.
Definition: CepMod.h:233
CepModTtp ttp
Interface for Tusscher-Panfilov cellular activation model.
Definition: CepMod.h:245
Array< double > Xion
Unknowns stored at all nodes.
Definition: CepMod.h:230
ecgLeadsType ecgleads
ECG leads.
Definition: CepMod.h:248
This module defines data structures for ten Tusscher-Panfilov epicardial cellular activation model fo...
Definition: CepModTtp.h:50
Cardiac electromechanics model type.
Definition: CepMod.h:199
bool aStress
Whether active stress formulation is employed.
Definition: CepMod.h:206
bool cpld
Whether electrophysiology and mechanics are coupled.
Definition: CepMod.h:202
bool aStrain
Whether active strain formulation is employed.
Definition: CepMod.h:210
Vector< double > Ya
Local variable integrated in time := activation force for active stress model := fiber stretch for ac...
Definition: CepMod.h:216
Cardiac electrophysiology model type.
Definition: CepMod.h:158
double Diso
Isotropic conductivity.
Definition: CepMod.h:185
int nFn
Number of fiber directions.
Definition: CepMod.h:173
double Ksac
Constant for stretch-activated-currents.
Definition: CepMod.h:182
odeType odes
Time integration options.
Definition: CepMod.h:194
ElectrophysiologyModelType cepType
Type of cardiac electrophysiology model.
Definition: CepMod.h:164
int nX
Number of state variables.
Definition: CepMod.h:167
Vector< double > Dani
Anisotropic conductivity.
Definition: CepMod.h:188
int nG
Number of gating variables.
Definition: CepMod.h:170
double dt
Time step for integration.
Definition: CepMod.h:179
stimType Istim
External stimulus.
Definition: CepMod.h:191
int imyo
Myocardium zone id, default to epicardium.
Definition: CepMod.h:176
ECG leads type.
Definition: CepMod.h:135
Vector< double > pseudo_ECG
Pseudo ECG over each lead.
Definition: CepMod.h:150
Vector< double > x_coords
x coordinates
Definition: CepMod.h:141
int num_leads
Number of leads.
Definition: CepMod.h:138
Vector< double > y_coords
y coordinates
Definition: CepMod.h:144
Vector< double > z_coords
z coordinates
Definition: CepMod.h:147
std::vector< std::string > out_files
Output files.
Definition: CepMod.h:153
Time integration scheme and related parameters.
Definition: CepMod.h:98
double absTol
Absolute tolerance.
Definition: CepMod.h:110
double relTol
Relative tolerance.
Definition: CepMod.h:113
TimeIntegratioType tIntType
Time integration method type.
Definition: CepMod.h:103
int maxItr
Max. iterations for Newton-Raphson method.
Definition: CepMod.h:107
External stimulus type.
Definition: CepMod.h:118
double Ts
start time
Definition: CepMod.h:121
double A
stimulus amplitude
Definition: CepMod.h:130
double CL
cycle length
Definition: CepMod.h:127
double Td
duration of stimulus
Definition: CepMod.h:124