46 integer,
parameter :: verb = 3
55 type(ionicmodel) :: im
62 procedure(rtor),
pointer :: stim_base => f_c3
63 real(RP) ,
parameter :: stim_time = 20._rp
64 real(RP) ,
parameter :: stim_time_radius = 1._rp
68 type(ode_output) :: co
79 real(RP),
parameter :: t0 = 0.0_rp
80 real(RP),
parameter :: T = 400.0_rp
88 real(RP),
parameter :: dt = 0.4_rp
94 type(ode_solution) :: sol
95 type(ode_problem) :: pb
96 type(ode_solver) :: slv
107 write(*,*)
"ode_cardio_0D : start" 113 write(*,*)
"================================== MODEL DEFINITION" 117 im = ionicmodel(im_type)
118 if (verb>0)
call print(im)
124 write(*,*)
"================================== TIME DISCRETISATION" 130 if (verb>0)
call print(pb)
134 slv = ode_solver(pb, slv_type, nl_meth=nl_meth, verb=1)
135 if (verb>0)
call print(slv)
139 sol = ode_solution(slv, pb)
140 if (verb>0)
call print(sol)
144 co = ode_output(t0, t, im%N)
146 call set(co, vxn_period = 1._rp, vxn_plot=.true.)
147 if (verb>0)
call print(co)
153 write(*,*)
"================================== NUMERICAL RESOLUTION" 156 call assemble(co, dt)
159 call initialcond(sol, pb, slv, t0, im%y0)
162 call solve(sol, slv, pb, t0, t, dt, output=co)
164 write(*,*)
"ode_cardio_0D : end" 171 function stim(x, t)
result(res)
173 real(RP),
dimension(3),
intent(in) :: x
174 real(RP) ,
intent(in) :: t
178 t2 = abs( t - stim_time)/stim_time_radius
180 res = stim_base(t2) * im%Ist
189 real(RP),
dimension(Na),
intent(out) :: a
190 real(RP),
dimension(N) ,
intent(out) :: b
191 real(RP),
dimension(3) ,
intent(in) :: x
192 real(RP) ,
intent(in) :: t
193 real(RP),
dimension(N) ,
intent(in) :: y
194 integer ,
intent(in) :: N, Na
199 call im%AB(a, b, i_app, y, n, na)
subroutine, public choral_init(verb)
Initialisation for the CHORAL library
TOP-LEVEL MODULE FOR THE LIBRARY CHORAL
real(rp) function stim(x, t)
integer, parameter ode_modif_erk2_b
modified ERK2_B
subroutine ode_reaction(a, b, x, t, y, N, Na)
program ode_cardio_0d
RESOLUTION OF the MEMBRANE EQUATION in cardiac-electrophysiology
integer, parameter ode_pb_nl
Non-Linear ODE system: , .
integer, parameter ode_slv_1s
onestep
integer, parameter ionic_tnnp