Skip to main content
. 2023 Oct 19;24(20):15378. doi: 10.3390/ijms242015378
Algorithm 1. Summary of the calculation for the 1D myocyte strand model.
Step1: Calculate conductance matrix of A, B, C in Equation (9);
Step2: Calculate the inverse matrix of the conductance matrix of A, B, C;
Step3: Calculate the right-hand side of Equation (9) from Vm,nt;
Step4: Calculate Vo,nt in Equation (9) by using the inverse matrix obtained in Step 2;
Step5: Calculate Vi,nt from Vo,nt and Vm,nt using Equation (5);
Step6: Calculate Ii,nt from Vi,nt and Vi,n+1t using Equation (6);
Step7: Calculate Io,nt from Ii,nt and Ii,n1t using Equation (7);
Step8: Determine dVm,ntdt using total membrane current Im,nt and Io,nt
                         dVm,ntdt=Ic,ntCm=Im,ntIo,ntCm;
Step9: Integration of parameters for the next time step
                         Vm,nt+dt=Vm,nt+dVm,ntdt·dt;
Step10: Go to Step3.