46 #include "CepModTtp.h"
54 enum class ElectrophysiologyModelType {
62 extern const std::map<std::string,ElectrophysiologyModelType> cep_model_name_to_type;
65 static std::ostream &operator << ( std::ostream& strm, ElectrophysiologyModelType type)
67 const std::map<ElectrophysiologyModelType, std::string> names = {
68 {ElectrophysiologyModelType::NA,
"NA"},
69 {ElectrophysiologyModelType::AP,
"AP"},
70 {ElectrophysiologyModelType::BO,
"BO"},
71 {ElectrophysiologyModelType::FN,
"FN"},
72 {ElectrophysiologyModelType::TTP,
"TTP"},
74 return strm << names.at(type);
78 enum class TimeIntegratioType {
85 extern const std::map<std::string,TimeIntegratioType> cep_time_int_to_type;
87 static std::ostream &operator << ( std::ostream& strm, TimeIntegratioType type)
89 const std::map<TimeIntegratioType, std::string> names = {
90 {TimeIntegratioType::NA,
"NA"},
91 {TimeIntegratioType::FE,
"FE"},
92 {TimeIntegratioType::RK4,
"RK4"},
93 {TimeIntegratioType::CN2,
"CN2"},
95 return strm << names.at(type);
104 TimeIntegratioType
tIntType = TimeIntegratioType::NA;
165 ElectrophysiologyModelType
cepType = ElectrophysiologyModelType::NA;
This module defines data structures for Aliev-Panfilov cellular activation model for cardiac electrop...
Definition: CepModAp.h:44
This module defines data structures for Bueno-Orovio cellular activation model for cardiac electrophy...
Definition: CepModBo.h:47
This module defines data structures for Fitzhugh-Nagumo cellular activation model for cardiac electro...
Definition: CepModFn.h:44
int nXion
Max. dof in cellular activation model.
Definition: CepMod.h:228
CepModBo bo
Interface for ABueno-Orovio cellular activation model.
Definition: CepMod.h:240
bool cepEq
Whether cardiac electrophysiology is solved.
Definition: CepMod.h:225
CepModAp ap
Interface for Aliev-Panfilov cellular activation model.
Definition: CepMod.h:237
CepModFn fn
Interface for Fitzhugh-Nagumo cellular activation model.
Definition: CepMod.h:243
cemModelType cem
Cardiac electromechanics type.
Definition: CepMod.h:234
CepModTtp ttp
Interface for Tusscher-Panfilov cellular activation model.
Definition: CepMod.h:246
Array< double > Xion
Unknowns stored at all nodes.
Definition: CepMod.h:231
ecgLeadsType ecgleads
ECG leads.
Definition: CepMod.h:249
This module defines data structures for ten Tusscher-Panfilov epicardial cellular activation model fo...
Definition: CepModTtp.h:51
Cardiac electromechanics model type.
Definition: CepMod.h:200
bool aStress
Whether active stress formulation is employed.
Definition: CepMod.h:207
bool cpld
Whether electrophysiology and mechanics are coupled.
Definition: CepMod.h:203
bool aStrain
Whether active strain formulation is employed.
Definition: CepMod.h:211
Vector< double > Ya
Local variable integrated in time := activation force for active stress model := fiber stretch for ac...
Definition: CepMod.h:217
Cardiac electrophysiology model type.
Definition: CepMod.h:159
double Diso
Isotropic conductivity.
Definition: CepMod.h:186
int nFn
Number of fiber directions.
Definition: CepMod.h:174
double Ksac
Constant for stretch-activated-currents.
Definition: CepMod.h:183
odeType odes
Time integration options.
Definition: CepMod.h:195
ElectrophysiologyModelType cepType
Type of cardiac electrophysiology model.
Definition: CepMod.h:165
int nX
Number of state variables.
Definition: CepMod.h:168
Vector< double > Dani
Anisotropic conductivity.
Definition: CepMod.h:189
int nG
Number of gating variables.
Definition: CepMod.h:171
double dt
Time step for integration.
Definition: CepMod.h:180
stimType Istim
External stimulus.
Definition: CepMod.h:192
int imyo
Myocardium zone id, default to epicardium.
Definition: CepMod.h:177
ECG leads type.
Definition: CepMod.h:136
Vector< double > pseudo_ECG
Pseudo ECG over each lead.
Definition: CepMod.h:151
Vector< double > x_coords
x coordinates
Definition: CepMod.h:142
int num_leads
Number of leads.
Definition: CepMod.h:139
Vector< double > y_coords
y coordinates
Definition: CepMod.h:145
Vector< double > z_coords
z coordinates
Definition: CepMod.h:148
std::vector< std::string > out_files
Output files.
Definition: CepMod.h:154
Time integration scheme and related parameters.
Definition: CepMod.h:99
double absTol
Absolute tolerance.
Definition: CepMod.h:111
double relTol
Relative tolerance.
Definition: CepMod.h:114
TimeIntegratioType tIntType
Time integration method type.
Definition: CepMod.h:104
int maxItr
Max. iterations for Newton-Raphson method.
Definition: CepMod.h:108
External stimulus type.
Definition: CepMod.h:119
double Ts
start time
Definition: CepMod.h:122
double A
stimulus amplitude
Definition: CepMod.h:131
double CL
cycle length
Definition: CepMod.h:128
double Td
duration of stimulus
Definition: CepMod.h:125