carputils
Doxygen code documentation for the python framework controlling openCARP
Functions
carputils.model.protocols.RP_B_algorithm Namespace Reference

Functions

def RP_B (args, job, cmd_ref, meshname, stim_points, steady_state_dir)
 Rapid Pacing with reentry check after every Beat: More...
 
def check_propagation (args, job, meshname, cmd_ref, stim_index, simid, nodes_to_check_str, startstatef, start_S2)
 

Function Documentation

◆ check_propagation()

def carputils.model.protocols.RP_B_algorithm.check_propagation (   args,
  job,
  meshname,
  cmd_ref,
  stim_index,
  simid,
  nodes_to_check_str,
  startstatef,
  start_S2 
)

◆ RP_B()

def carputils.model.protocols.RP_B_algorithm.RP_B (   args,
  job,
  cmd_ref,
  meshname,
  stim_points,
  steady_state_dir 
)

Rapid Pacing with reentry check after every Beat:

It consists of a train of electrical stimulations with decreasing coupling interval (args.step) between args.start_bcl and args.end_bcl. It can give multiple beats with the same cycle length (args.max_n_beats_RP) and it checks for arrhythmia induction after every beat.

Input parser arguments (args), output directory (job.ID), struct containing imp_regions and gregions (cmd_ref), meshname, stimulation point location (x,y,z) and prepacing directory (steady_state_dir)

'--M_lump',
type=int,
default='1',
help='set 1 for mass lumping, 0 otherwise. Mass lumping will speed up the simulation. Use with regular meshes.'
'--stim_size',
type=str,
default='2000.0',
help='stimulation edge square size in micrometers'
'--step',
type=float,
default=10,
help='Step to decrease bcl in ms'
'--max_n_beats_RP',
type=int,
default=1,
help='Max number of beats for th RP'
'--start',
type=float, default=2000.0,
help='initial basic cycle lenght in [ms]'
'--start_bcl',
type=float, default=200.0,
help='initial basic cycle lenght in [ms]'
'--end_bcl',
type=float, default=130.0,
help='last basic cycle lenght in [ms]'