carputils
Doxygen code documentation for the python framework controlling openCARP
|
class for managing CV tuning More...
Public Member Functions | |
def | __init__ (self, vel=0.6, logfile='tuneCV.log', cvfile='results.dat', tablefile='table.dat') |
def | config (self, args) |
def | configCells (self) |
setup ionic model we want to use for CV tuning More... | |
def | hmean (self) |
Compute harmonic mean conductivity. More... | |
def | configConductivities (self) |
Define myocardial conductivities. More... | |
def | configNumerics (self) |
Define numerical settings for tuning experiment. More... | |
def | summary (self) |
Output summarized user settings. More... | |
def | carp_params (self) |
def | report (self) |
fill dictionaries and output to log file More... | |
def | saveCVResults (self) |
write CV restitution results to .dat file More... | |
def | plotCVRestitutionCurve (self) |
def | saveTuningResults (self) |
write tuning results to .dat file More... | |
def | geomStrand (self) |
Build strand-like FE mesh. More... | |
def | pcl2triggers (self) |
Turn pcl list into stimulus trigger list, assuming a first trigger at t start = 0. More... | |
def | configStimLHFace (self) |
Add stimulus definition to initiate propagation at the lhs face of the strand. More... | |
def | configStimLHFaceCarpentry (self) |
Add stimulus definition to initiate propagation at the lhs face of the strand in using stimulus[] rather than stim[] for backwards compatibility with carpentry. More... | |
def | configLATs (self) |
Set up detection of local activation times. More... | |
def | CV_obs_sites (self, rel_x) |
Extract spatial observation points for CV measurement. More... | |
def | measureCV (self, actsFile) |
Measure conduction velocity along a strand. More... | |
def | x_activated (self, o_lats, o_inds, pcl, siteID) |
def | measureCVRes (self, actsFile) |
Measure conduction velocity along a strand. More... | |
def | buildCmd (self) |
def | iterateCV (self, job) |
def | restituteCV (self, job) |
Public Attributes | |
sres | |
slen | |
geom | |
meshfiles | |
surf | |
model | |
mpar | |
plugin | |
ppar | |
svinit | |
vel | |
gi | |
ge | |
beta | |
beqm | |
conv | |
ctol | |
max_it | |
pcl | |
CVs | |
vel_ | |
gi_ | |
ge_ | |
dt | |
ts | |
stol | |
lump | |
opsplt | |
srcMod | |
stimS | |
stimV | |
log | |
last_it | |
dat | |
table | |
cv_res | |
visualize | |
mode | |
class for managing CV tuning
sres float resolution of strand in um
slen float length of strand in cm
Ionic model parameters ----------------------
model name of ionic model default name is MBRDR
mpar model parameter list
plugin : name of plugin
ppar : plugin parameter list
svinit : initial state vector file
vel float desired velocity in m/s
gi float intracellular conductivity in S/m default is 0.174 S/m
ge float extracellular conductivity in S/m default is 0.625 S/m
beta float surface-to-volume ratio in 1/cm
beqm int switch between harmonic mean and intracellular monodomain tensor 0 intracellular monodomain tensor 1 bidomain equivalent harmonic mean monodomain tensor
conv bool converge to prescribed velocity
ctol float stop tolerance for CV tuning
dt float integration time step in us
ts int time stepping method 0 explicit 1 Crank-Nicolson
stol float solver tolerance
lump bool toggle mass lumping flag
opsplt bool toggle operator splitting flag
srcMod int select source model 0 monodomain 1 bidomain 2 pseudo-bidomain
def carputils.tuning.CVtuning.__init__ | ( | self, | |
vel = 0.6 , |
|||
logfile = 'tuneCV.log' , |
|||
cvfile = 'results.dat' , |
|||
tablefile = 'table.dat' |
|||
) |
def carputils.tuning.CVtuning.buildCmd | ( | self | ) |
def carputils.tuning.CVtuning.carp_params | ( | self | ) |
def carputils.tuning.CVtuning.config | ( | self, | |
args | |||
) |
def carputils.tuning.CVtuning.configCells | ( | self | ) |
setup ionic model we want to use for CV tuning
def carputils.tuning.CVtuning.configConductivities | ( | self | ) |
Define myocardial conductivities.
def carputils.tuning.CVtuning.configLATs | ( | self | ) |
Set up detection of local activation times.
def carputils.tuning.CVtuning.configNumerics | ( | self | ) |
Define numerical settings for tuning experiment.
def carputils.tuning.CVtuning.configStimLHFace | ( | self | ) |
Add stimulus definition to initiate propagation at the lhs face of the strand.
def carputils.tuning.CVtuning.configStimLHFaceCarpentry | ( | self | ) |
Add stimulus definition to initiate propagation at the lhs face of the strand in using stimulus[] rather than stim[] for backwards compatibility with carpentry.
def carputils.tuning.CVtuning.CV_obs_sites | ( | self, | |
rel_x | |||
) |
Extract spatial observation points for CV measurement.
def carputils.tuning.CVtuning.geomStrand | ( | self | ) |
Build strand-like FE mesh.
def carputils.tuning.CVtuning.hmean | ( | self | ) |
Compute harmonic mean conductivity.
def carputils.tuning.CVtuning.iterateCV | ( | self, | |
job | |||
) |
def carputils.tuning.CVtuning.measureCV | ( | self, | |
actsFile | |||
) |
Measure conduction velocity along a strand.
As input the given mesh of a strand and the recorded activation times are used. Arrival times are computed at the interfaces of the quarters Q1/Q2 and Q3/Q4.
def carputils.tuning.CVtuning.measureCVRes | ( | self, | |
actsFile | |||
) |
Measure conduction velocity along a strand.
As input the given mesh of a strand and the recorded activation times are used. Arrival times are computed at the interfaces of the quarters Q1/Q2 and Q3/Q4.
def carputils.tuning.CVtuning.pcl2triggers | ( | self | ) |
Turn pcl list into stimulus trigger list, assuming a first trigger at t start = 0.
def carputils.tuning.CVtuning.plotCVRestitutionCurve | ( | self | ) |
def carputils.tuning.CVtuning.report | ( | self | ) |
fill dictionaries and output to log file
def carputils.tuning.CVtuning.restituteCV | ( | self, | |
job | |||
) |
def carputils.tuning.CVtuning.saveCVResults | ( | self | ) |
write CV restitution results to .dat file
def carputils.tuning.CVtuning.saveTuningResults | ( | self | ) |
write tuning results to .dat file
def carputils.tuning.CVtuning.summary | ( | self | ) |
Output summarized user settings.
def carputils.tuning.CVtuning.x_activated | ( | self, | |
o_lats, | |||
o_inds, | |||
pcl, | |||
siteID | |||
) |
carputils.tuning.CVtuning.beqm |
carputils.tuning.CVtuning.beta |
carputils.tuning.CVtuning.conv |
carputils.tuning.CVtuning.ctol |
carputils.tuning.CVtuning.cv_res |
carputils.tuning.CVtuning.CVs |
carputils.tuning.CVtuning.dat |
carputils.tuning.CVtuning.dt |
carputils.tuning.CVtuning.ge |
carputils.tuning.CVtuning.ge_ |
carputils.tuning.CVtuning.geom |
carputils.tuning.CVtuning.gi |
carputils.tuning.CVtuning.gi_ |
carputils.tuning.CVtuning.last_it |
carputils.tuning.CVtuning.log |
carputils.tuning.CVtuning.lump |
carputils.tuning.CVtuning.max_it |
carputils.tuning.CVtuning.meshfiles |
carputils.tuning.CVtuning.mode |
carputils.tuning.CVtuning.model |
carputils.tuning.CVtuning.mpar |
carputils.tuning.CVtuning.opsplt |
carputils.tuning.CVtuning.pcl |
carputils.tuning.CVtuning.plugin |
carputils.tuning.CVtuning.ppar |
carputils.tuning.CVtuning.slen |
carputils.tuning.CVtuning.srcMod |
carputils.tuning.CVtuning.sres |
carputils.tuning.CVtuning.stimS |
carputils.tuning.CVtuning.stimV |
carputils.tuning.CVtuning.stol |
carputils.tuning.CVtuning.surf |
carputils.tuning.CVtuning.svinit |
carputils.tuning.CVtuning.table |
carputils.tuning.CVtuning.ts |
carputils.tuning.CVtuning.vel |
carputils.tuning.CVtuning.vel_ |
carputils.tuning.CVtuning.visualize |