Model { Name "faber_07_ss_internal" Version 7.1 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.153" NumModelReferences 0 NumTestPointedSignals 0 } Description "Model Code from:\nFaber GM, Silva J, Livshitz L, Rudy Y.\nKinetic properties of the cardiac L-type Ca2+ channel and its role in myocyte\nelectrophysiology: a theoretical investigation.\nBiophys J. 2007 Mar 1;92(5):1522-43. ]\n\nThis system is actually an algebraic differential equation since voltage is already given \nby a combination of the internal ionic concentrations and hence differential equation \nfor voltage is redundant. However it was shown if one implements the stimulus current \nin the ionic balance (here K+ stimulus current assignment) and uses an ‘appropriate’ solver \nthe numerical solution of the differential equation system shows also stability in long time\nstimulation (1h).\n\nSource Code\n/* The Luo-Rudy Dynamic (LRd) Model of the Mammalian Ventricular Myocyte */\n/* Gregory Faber */\n/* This code requires a C++ compiler */\n/* Detailed list of equations and model description are provided in */\n\n/* Biophy J 2007;In Press */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#define bcl 1000 // Basic Cycle Length (ms)\n#define beats 10 // Number of Beats\n\n#define betaad 0 // Set this Value to 1 to Introduce Beta Adrenergic Effects\n#define csqnmut 0 // Set this Value to 1 to Introdue CASQ2 Mutation Effects\n\n/* List of variables and paramaters (this code uses all global variables) */\n\n /* Creation of Data File */\n FILE *ap;\n FILE *fmaxs;\n FILE *fpara;\n FILE *statedata;\n FILE *ryrdata;\n void prttofile (); \n int printdata; \n int printval; \n\n /* Cell Geometry */\n const double l = 0.01; // Length of the cell (cm)\n const double a = 0.0011; // Radius of the cell (cm)\n const double pi = 3.141592; // Pi\n double vcell; // Cell volume (uL)\n double ageo; // Geometric membrane area (cm^2)\n double acap; // Capacitive membrane area (cm^2)\n double vmyo; // Myoplasm volume (uL)\n double vmito; // Mitochondria volume (uL)\n double vsr; // SR volume (uL)\n double vnsr; // NSR volume (uL)\n double vjsr; // JSR volume (uL)\n double volrss; // Restricted Subspace (uL)\n \n /* Voltage */\n double v; // Membrane voltage (mV)\n double vnew; // New Voltage (mV)\n double dvdt; // Change in Voltage / Change in Time (mV/ms)\n double dvdtnew; // New dv/dt (mV/ms)\n double boolien; // Boolien condition to test for dvdtmax\n \n /* Time Step */\n double dt; // Time step (ms)\n double t; // Time (ms)\n double udt; // Universal Time Step\n int utsc; // Universal Time Step Counter\n int nxstep; // Interval Between Calculating Ion Currents\n int steps; // Number of Steps\n int increment; // Loop Control Variable\n \n /* Action Potential Duration and Max. Info */\n double vmax[beats]; // Max. Voltage (mV)\n double dvdtmax[beats]; // Max. dv/dt (mV/ms)\n double apd[beats]; // Action Potential Duration\n double toneapd[beats]; // Time of dv/dt Max.\n double ttwoapd[beats]; // Time of 90% Repolarization\n double rmbp[beats]; // Resting Membrane Potential\n double nair[beats]; // Intracellular Na At Rest\n double cair[beats]; // Intracellular Ca At Rest\n double kir[beats]; // Intracellular K At Rest\n double caimax[beats]; // Peak Intracellular Ca\n int i; // Stimulus Counter\n \n /* Total Current and Stimulus */\n double st; // Constant Stimulus (uA/cm^2)\n double tstim; // Time Stimulus is Applied (ms)\n double stimtime; // Time period during which stimulus is applied (ms)\n double it; // Total current (uA/cm^2)\n\n /* Terms for Solution of Conductance and Reversal Potential */\n const double R = 8314; // Universal Gas Constant (J/kmol*K)\n const double frdy = 96485; // Faraday's Constant (C/mol)\n const double temp = 310; // Temperature (K)\n\n /* Ion Valences */\n const double zna = 1; // Na valence\n const double zk = 1; // K valence\n const double zca = 2; // Ca valence\n\n /* Myoplasmic Ion Concentrations */\n double nai; // Intracellular Na Concentration (mM)\n double nao; // Extracellular Na Concentration (mM)\n double ki; // Intracellular K Concentration (mM)\n double ko; // Extracellular K Concentration (mM)\n double cai; // Intracellular Ca Concentration (mM)\n double cao; // Extracellular Ca Concentration (mM)\n double cmdn; // Calmodulin Buffered Ca Concentration (mM)\n double trpn; // Troponin Buffered Ca Concentration (mM)\n double buffersmyo; // Ratio of Buffered [Ca] in the Myoplasm\n const double cmdnbar = 0.050; // Max. [Ca] buffered in CMDN (mM)\n const double trpnbar = 0.070; // Max. [Ca] buffered in TRPN (mM)\n const double kmcmdn = 0.00238; // Equalibrium constant of buffering for CMDN (mM)\n const double kmtrpn = 0.0005; // Equalibrium constant of buffering for TRPN (mM)\n\n /* SR Ion Concentrations */\n double nsr; // NSR Ca Concentration (mM)\n double jsr; // JSR Ca Concentration (mM)\n double csqn; // Calsequestrin Buffered Ca Concentration (mM)\n\n /* Myoplasmic Na Ion Concentration Changes */\n double naiont; // Total Na Ion Flow (uA/uF)\n double dnai; // Change in Intracellular Na Concentration (mM)\n\n /* Myoplasmic K Ion Concentration Changes */\n double kiont; // Total K Ion Flow (uA/uF)\n double dki; // Change in Intracellular K Concentration (mM)\n\n /* Myoplasmic Ca Ion Concentration Changes */\n double caiont; // Total Ca Ion Flow (uA/uF)\n double dcai; // Change in myoplasmic Ca concentration (mM)\n\n /* NSR Ca Ion Concentration Changes */\n double dnsr; // Change in [Ca] in the NSR (mM)\n double iup; // Ca uptake from myo. to NSR (mM/ms)\n double ileak; // Ca leakage from NSR to myo. (mM/ms)\n double kleak; // Rate constant of Ca leakage from NSR (ms^-1)\n double kmup; // Half-saturation concentration of iup (mM)\n double iupbar; // Max. current through iup channel (mM/ms)\n double nsrbar; // Max. [Ca] in NSR (mM) \n \n /* JSR Ca Ion Concentration Changes */\n double djsr; // Change in [Ca] in the JSR (mM)\n double csqnbar; // Max. [Ca] buffered in CSQN (mM)\n const double kmcsqn = 0.8; // Equalibrium constant of buffering for CSQN (mM)\n double caiontold; // Old rate of change of Ca entry\n double buffersjsr; // Ratio of Buffered [Ca] in the Junctional SR\n\n /* Subspace Ion Concentrations */\n double caiss; // [Ca] in the Subspace (mM)\n double naiss; // [Na] in the Subspace (mM)\n double kiss; // [K] in the Subspace (mM)\n double dcaresspace; // Change of [Ca] in the Subspace (mM)\n double dnaresspace; // Change of [Na] in the Subspace (mM)\n double dkresspace; // Change of [K] in the Subspace (mM)\n double idiffca; // [Ca] Transfer from Subspace to Myoplasm (mM/ms)\n double idiffna; // [Na] Transfer from Subspace to Myoplasm (mM/ms)\n double idiffk; // [K] Transfer from Subspace to Myoplasm (mM/ms)\n double taudiffss; // Time constant of ion transfer from Subspace to Myoplasm (ms)\n double bsr; // Anionic SR binding sites for Calcium in the Subspace (mM)\n const double bsrbar = 0.047; // Max. [Ca] buffered in Anionic SR binding sites (mM)\n const double kmbsr = 0.00087; // Equalibrium constant of buffering for BSR (mM)\n double bsl; // Anionic Sarcolemmal binding sites for Calcium in the Subspace (mM)\n const double bslbar = 2.124; // Max. [Ca] buffered in Anionic Sarcolemmal binding sites (mM)\n const double kmbsl = 0.127; // Equalibrium constant of buffering for BSL (mM)\n double buffersss; // Ratio of Buffered [Ca] in the Subspace\n\n /* Translocation of Ca Ions from NSR to JSR */\n double itr; // Translocation current of Ca ions from NSR to JSR (mM/ms)\n const double tautr = 120; // Time constant of Ca transfer from NSR to JSR (ms)\n \n /* Fast Sodium Current (time dependant) */\n double ina; // Fast Na Current (uA/uF)\n double gna; // Max. Conductance of the Na Channel (mS/uF)\n double ena; // Reversal Potential of Na (mV)\n double am; // Na alpha-m rate constant (ms^-1)\n double bm; // Na beta-m rate constant (ms^-1)\n double ah; // Na alpha-h rate constant (ms^-1)\n double bh; // Na beta-h rate constant (ms^-1)\n double aj; // Na alpha-j rate constant (ms^-1)\n double bj; // Na beta-j rate constant (ms^-1)\n double m; // Na activation\n double h; // Na inactivation\n double j; // Na inactivation\n\n /* Current through T-type Ca Channel */\n double icat; // Ca current through T-type Ca channel (uA/uF)\n double gcat; // Max. Conductance of the T-type Ca channel (mS/uF)\n double eca; // Reversal Potential of the T-type Ca channel (mV)\n double b; // Voltage dependant activation gate\n double bss; // Steady-state value of activation gate b \n double taub; // Time constant of gate b (ms^-1)\n double g; // Voltage dependant inactivation gate\n double gss; // Steady-state value of inactivation gate g\n double taug; // Time constant of gate g (ms^-1)\n\n /* Rapidly Activating Potassium Current */\n double ikr; // Rapidly Activating K Current (uA/uF)\n double gkr; // Channel Conductance of Rapidly Activating K Current (mS/uF)\n double ekr; // Reversal Potential of Rapidly Activating K Current (mV)\n double xr; // Rapidly Activating K time-dependant activation\n double xrss; // Steady-state value of inactivation gate xr\n double tauxr; // Time constant of gate xr (ms^-1)\n double r; // K time-independant inactivation\n \n /* Slowly Activating Potassium Current */\n double iks; // Slowly Activating K Current (uA/uF)\n double gks; // Channel Conductance of Slowly Activating K Current (mS/uF)\n double eks; // Reversal Potential of Slowly Activating K Current (mV)\n double xs1; // Slowly Activating K time-dependant activation\n double xs1ss; // Steady-state value of inactivation gate xs1\n double tauxs1; // Time constant of gate xs1 (ms^-1)\n double xs2; // Slowly Activating K time-dependant activation\n double xs2ss; // Steady-state value of inactivation gate xs2\n double tauxs2; // Time constant of gate xs2 (ms^-1)\n const double prnak = 0.01833; // Na/K Permiability Ratio\n \n /* Potassium Current (time-independant) */\n double iki; // Time-independant K current (uA/uF)\n double gki; // Channel Conductance of Time Independant K Current (mS/uF)\n double eki; // Reversal Potential of Time Independant K Current (mV)\n double aki; // K alpha-ki rate constant (ms^-1)\n double bki; // K beta-ki rate constant (ms^-1)\n double kin; // K inactivation\n\n /* Plateau Potassium Current */\n double ikp; // Plateau K current (uA/uF)\n double gkp; // Channel Conductance of Plateau K Current (mS/uF)\n double ekp; // Reversal Potential of Plateau K Current (mV)\n double kp; // K plateau factor \n \n /* Sodium-Calcium Exchanger V-S */\n double inaca; // NaCa exchanger current (uA/uF)\n double inacass; // NaCa exchanger current in the Subspace (uA/uF)\n double c1; // NaCa Scaling factor\n double c2; // Half-saturation concentration of NaCa exhanger (mM)\n double c3; // NaCa exhanger Extracellular Na Dependence\n double gammanaca; // Position of energy barrier controlling voltage dependance of inaca\n\n /* Sodium-Potassium Pump */\n double inak; // NaK pump current (uA/uF)\n double fnak; // Voltage-dependance parameter of inak\n double sigma; // [Na]o dependance factor of fnak\n double ibarnak; // Max. current through Na-K pump (uA/uF)\n const double kmnai = 10; // Half-saturation concentration of NaK pump (mM)\n const double kmko = 1.5; // Half-saturation concentration of NaK pump (mM)\n \n /* Sarcolemmal Ca Pump */\n double ipca; // Sarcolemmal Ca pump current (uA/uF)\n double ibarpca; // Max. Ca current through sarcolemmal Ca pump (uA/uF)\n \n /* Ca Background Current */\n double icab; // Ca background current (uA/uF)\n double gcab; // Max. conductance of Ca background (mS/uF)\n double ecan; // Nernst potential for Ca (mV)\n\n /* Na Background Current */\n double inab; // Na background current (uA/uF)\n double gnab; // Max. conductance of Na background (mS/uF)\n double enan; // Nernst potential for Na (mV)\n \n /* L-type Calcium Channel Markov Formulation */ \n void comp_ltypesc (); // Function That Will Compute L-type Current\n void comp_ltypeca (); // Calculates Currents through Markov L-Type Ca Channel\n void comp_rates (); // Calculates the Rate Transitions of L-type Markov Model\n\n double ical; // Ca current through L-type Ca channel (uA/uF)\n double ilca; // Ca current through L-type Ca channel (uA/uF)\n double ilcana; // Na current through L-type Ca channel (uA/uF)\n double ilcak ; // K current through L-type Ca channel (uA/uF)\n double ilcatot; // Total current through the L-type Ca channel (uA/uF)\n double ibarca; // Max. Ca current through Ca channel (uA/uF)\n double ibarna; // Max. Na current through Ca channel (uA/uF)\n double ibark; // Max. K current through Ca channel (uA/uF)\n const double pca = 0.006615; // Permiability of membrane to Ca (cm/s)\n const double gacai = 0.01; // Activity coefficient of Ca\n const double gacao = 0.341; // Activity coefficient of Ca\n const double pna = 0.000008265; // Permiability of membrane to Na (cm/s)\n const double ganai = 0.75; // Activity coefficient of Na\n const double ganao = 0.75; // Activity coefficient of Na\n const double pk = 0.000002363; // Permiability of membrane to K (cm/s)\n const double gaki = 0.75; // Activity coefficient of K\n const double gako = 0.75; // Activity coefficient of K\n\n\n double ltypeCzero;\n double dltypeCzero;\n double Czero1;\n double Czero2;\n \n double ltypeCone;\n double dltypeCone;\n double Cone1;\n double Cone2;\n \n double ltypeCtwo;\n double dltypeCtwo;\n double Ctwo1;\n double Ctwo2;\n\n double ltypeCthree;\n double dltypeCthree;\n double Cthree1;\n double Cthree2;\n\n double ltypeO;\n double dltypeO;\n double O1;\n double O2;\n\n double ltypeIVf;\n double dltypeIVf;\n double IVf1;\n double IVf2;\n\n double ltypeIVs;\n double dltypeIVs;\n double IVs1;\n double IVs2;\n\n double icaCzero;\n double icaCone;\n double icaCtwo;\n double icaCthree;\n double icaO;\n double icaIVf;\n double icaIVs;\n double icaCzerocdi;\n double icaConecdi;\n double icaCtwocdi;\n double icaCthreecdi;\n double icaIcdi;\n double icaIVfcdi;\n double icaIVscdi;\n\n double alphaequation;\n double betaequation;\n double alpha0;\n double alpha1;\n double alpha2;\n double alpha3;\n double beta0;\n double beta1;\n double beta2;\n double beta3;\n double gammmaf;\n double gammmas;\n double phif;\n double phis;\n double lambdaf;\n double lambdas;\n double omegaf;\n double omegas;\n double omegasf;\n double omegafs;\n\n double fcasc;\n double caon;\n double caoff;\n \n double fmode0;\n double mode0on;\n double mode0off;\n\n\n \n /* RyR Channal Markov Formulation */\n \n void comp_ryrrates(); // Computes RyR Rates\n void comp_ryr(); // Computes RyR State Residencies\n\n double sponrel; // Spontaneous SR Ca Release Function\n double sponrelss; // JSR dependence of Spontaneous SR Ca Release\n double spontau; // Time constant of Spontaneous Release\n double gradedrel; // Controls Graded Release\n double vgainofrel; // Controls Variable Dependent Gain of Relase\n double vg;\n double grel; // Irel Scalar\n double irel; // SR Ca Release\n\n double ryrCone;\n double dryrCone;\n double ryrCone1;\n double ryrCone11;\n double ryrCone2;\n\n double ryrCtwo;\n double dryrCtwo;\n double ryrCtwo1;\n double ryrCtwo11;\n double ryrCtwo2;\n\n double ryrCthree;\n double dryrCthree;\n double ryrCthree1;\n double ryrCthree11;\n double ryrCthree2;\n \n double ryrCfour;\n double dryrCfour;\n double ryrCfour1;\n double ryrCfour11;\n double ryrCfour2;\n\n double ryrOone;\n double dryrOone;\n double ryrOone1;\n double ryrOone11;\n double ryrOone2;\n\n double ryrIone;\n double dryrIone;\n double ryrIone1;\n double ryrIone11;\n double ryrIone2;\n\n double ryrItwo;\n double dryrItwo;\n double ryrItwo1;\n double ryrItwo11;\n double ryrItwo2;\n\n double ryrIthree;\n double dryrIthree;\n double ryrIthree1;\n double ryrIthree11;\n double ryrIthree2;\n\n double ryrIfour;\n double dryrIfour;\n double ryrIfour1;\n double ryrIfour11;\n double ryrIfour2;\n\n double ryrIfive;\n double dryrIfive;\n double ryrIfive1;\n double ryrIfive11;\n double ryrIfive2;\n\n double C1_C2;\n double C2_C3;\n double C3_C4;\n double C4_O1;\n\n double I1_I2;\n double I2_I3;\n double I3_I4;\n double I4_I5;\n\n double O1_C4;\n double C4_C3;\n double C3_C2;\n double C2_C1;\n\n double I5_I4;\n double I4_I3;\n double I3_I2;\n double I2_I1;\n\n double C1_I1;\n double C2_I2;\n double C3_I3;\n double C4_I4;\n double O1_I5;\n \n double I1_C1;\n double I2_C2;\n double I3_C3;\n double I4_C4;\n double I5_O1;\n\n /* Ion Current Functions */ \n void comp_ina (); // Calculates Fast Na Current\n void comp_ical (); // Calculates Currents through L-Type Ca Channel\n void comp_icat (); // Calculates Currents through T-Type Ca Channel\n void comp_ikr (); // Calculates Rapidly Activating K Current\n void comp_iks (); // Calculates Slowly Activating K Current\n void comp_iki (); // Calculates Time-Independant K Current\n void comp_ikp (); // Calculates Plateau K Current\n void comp_inaca (); // Calculates Na-Ca Exchanger Current\n void comp_inak (); // Calculates Na-K Pump Current\n void comp_ipca (); // Calculates Sarcolemmal Ca Pump Current\n void comp_icab (); // Calculates Ca Background Current\n void comp_inab (); // Calculates Na Background Current\n void comp_it (); // Calculates Total Current\n\n /* Ion Concentration Functions */\n void conc_nai (); // Calculates new myoplasmic Na ion concentration\n void conc_ki (); // Calculates new myoplasmic K ion concentration\n void conc_nsr (); // Calculates new NSR Ca ion concentration\n void conc_jsr (); // Calculates new JSR Ca ion concentration\n void calc_itr (); // Calculates Translocation of Ca from NSR to JSR\n void conc_cai (); // Calculates new myoplasmic Ca ion concentration\n void comp_Cacon (); // Calculates Ca Concentration in Restricted Space\n\nint main ()\n{ \n /* Opening of Datafiles */\n ap = fopen(\"ap\", \"w\");\n fpara = fopen(\"fpara\", \"w\");\n fmaxs = fopen(\"fmaxs\", \"w\");\n statedata = fopen(\"statedata\", \"w\");\n ryrdata = fopen(\"ryrdata\", \"w\");\n printdata = 60;\n \n /* Cell Geometry */\n vcell = 1000*pi*a*a*l; // vell = 3.801e-5 uL\n ageo = 2*pi*a*a+2*pi*a*l; // ageo = 7.671e-5 cm^2\n acap = ageo*2; // acap = 1.534e-4 cm^2\n volrss = vcell*0.02; // volrss = 7.602e-7 uL\n vmyo = vcell*0.68; // vmyo = 2.584e-5 uL\n vmito = vcell*0.24; // vmito = 9.122e-6 uL\n vsr = vcell*0.06; // vsr = 2.281e-6 uL\n vnsr = vcell*0.0552; // vnsr = 2.098e-6 uL\n vjsr = vcell*0.0048; // vjsr = 1.824e-7 uL\n \n /* Time Loop Conditions */\n t = 0; // Time (ms)\n udt = 0.001; // Time step (ms)\n steps = (bcl*beats)/udt; // Number of ms\n st = -100; // Stimulus\n tstim = 10; // Time to begin stimulus\n stimtime = 10; // Initial Condition for Stimulus\n v = -91.34; // Initial Voltage (mv)\n\n /* Beginning Ion Concentrations */\n nai = 10.71; // Initial Intracellular Na (mM)\n naiss = 10.71; // Initial Subspace Na (mM)\n nao = 130; // Initial Extracellular Na (mM)\n ki = 137.6; // Initial Intracellular K (mM)\n kiss = 137.6; // Initial Subspace K (mM)\n ko = 4.5; // Initial Extracellular K (mM)\n cai = 0.0000821; // Initial Intracellular Ca (mM)\n caiss = 0.0000672; // Initial Subspace Ca (mM)\n cao = 1.8; // Initial Extracellular Ca (mM)\n\n /* Initial Gate Conditions */\n m = 0.000642;\n h = 0.996271;\n j = 0.997286;\n xs1 = 0.004761;\n xs2 = 0.03291;\n xr = 0.0001096;\n b = 0.000880231;\n g = 0.994305;\n \n fmode0 = .22;\n fcasc = 1;\n \n /* Initial Conditions */\n jsr = 2.479;\n nsr = 2.553;\n trpn = 0.00987;\n cmdn = 0.00166;\n csqn = 7.56; \n boolien = 1;\n dt = udt;\n utsc = 50;\n i=-1;\n \n ryrCone = 0.89;\n ryrCtwo = 0.021;\n ryrCthree = 0.003;\n ryrCfour = 0.001;\n ryrOone = 0;\n ryrIone = 0.082;\n ryrItwo = 0.002;\n ryrIthree = 0.001;\n ryrIfour = 0;\n ryrIfive = 1-(ryrCone+ryrCtwo+ryrCthree+ryrCfour+ryrOone+ryrIone+ryrItwo+ryrIthree+ryrIfour);\n\n\n ltypeCzero = 0.948;\n ltypeCone = 0.052;\n ltypeCtwo = 0;\n ltypeCthree = 0.;\n ltypeIVf = 0;\n ltypeIVs = 0;\n ltypeO = 1-(ltypeCzero+ltypeCone+ltypeCtwo+ltypeCthree+ltypeIVf+ltypeIVs);\n\n\n /* Beginning of Time Loop */\n for (increment = 0; increment < steps; increment++)\n {\n if(v<-50)\n {nxstep = 10;}\n else\n {nxstep = 1;}\n \n if(utsc>=nxstep || dvdt>5 || irel>0.01 || (t>=(tstim-udt) && t<=(tstim+udt)) || (stimtime>=0 && stimtime<0.5))\n {\n\n /* List of functions called for each timestep, currents commented out are only used when modeling pathological conditions */\n\n comp_ina ();\n comp_ltypesc ();\n comp_icat ();\n comp_ikr ();\n comp_iks ();\n comp_iki ();\n comp_ikp ();\n comp_inaca ();\n comp_inak ();\n comp_ipca ();\n comp_icab ();\n comp_inab ();\n comp_it ();\n \n conc_nai ();\n conc_ki ();\n conc_nsr ();\n comp_ryrrates ();\n comp_ryr ();\n conc_jsr ();\n calc_itr ();\n conc_cai ();\n\n stimtime = stimtime+dt;\n vnew = v-it*dt;\n dvdtnew = (vnew-v)/dt;\n\n \n utsc = 0;\n dt = 0;\n\n }\n\n if(v>-85 || (stimtime>=0 && stimtime<0.5))\n {printval = 500;}\n else\n {printval = 10000;}\n \n if(printdata>=printval) \n {prttofile(); \n printdata = 0;}\n \n printdata = printdata+1;\n\n \n if(i>=0)\n {\n if (vnew>vmax[i])\n vmax[i] = vnew;\n if (cai>caimax[i])\n caimax[i] = cai;\n if (dvdtnew>dvdtmax[i])\n {dvdtmax[i] = dvdtnew;\n toneapd[i] = t;}\n if (vnew>=(vmax[i]-0.9*(vmax[i]-rmbp[i])))\n ttwoapd[i] = t;\n }\n\n v = vnew;\n dvdt = dvdtnew;\n caiontold = caiont;\n \n dt = dt+udt;\n utsc = utsc+1;\n \n t = t+udt;\n\n }\n\n fprintf(fpara,\"%.3f\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n%g\\n\", t, v, nai, ki, cai, naiss, kiss, caiss, jsr, nsr, nao, ko, cao, m, h, j, xs1, xs2, xr, b, g);\n for(i=0;i=tstim && t<(tstim+dt))\n {stimtime = 0;\n tstim = tstim+bcl;\n boolien = 0;\n i = i+1;\n rmbp[i]=v;\n nair[i] = nai;\n cair[i] = cai;\n kir[i] = ki;}\n \n if(stimtime>=0 && stimtime<0.5)\n {it = st+naiont+kiont+caiont;\n cout << t << endl;cout << v << endl;cout << nair[i] << endl;}\n else\n {it = naiont+kiont+caiont;}\n\n}\n\n\n/* Functions that calculate intracellular ion concentrations begins here */\n\n\nvoid conc_nai ()\n{\n// The units of dnai is in mM. Note that naiont should be multiplied by the\n// cell capacitance to get the correct units. Since cell capacitance = 1 uF/cm^2,\n// it doesn't explicitly appear in the equation below.\n// This holds true for the calculation of dki and dcai. */\n\n dnai = -dt*(((naiont-3*inacass-ilcana)*acap)/(vmyo*zna*frdy)-idiffna*(volrss/vmyo));\n nai = dnai + nai;\n}\n\nvoid conc_ki ()\n{\n if(stimtime>=0 && stimtime<0.5)\n {dki = -dt*(((kiont-ilcak+st)*acap)/(vmyo*zk*frdy)-idiffk*(volrss/vmyo));}\n else\n {dki = -dt*(((kiont-ilcak)*acap)/(vmyo*zk*frdy)-idiffk*(volrss/vmyo));}\n\n ki = dki + ki;\n}\n\nvoid conc_nsr ()\n{\n kmup = 0.00092;\n iupbar = 0.017325;\n nsrbar = 15;\n \n kleak = 0.00875/nsrbar;\n ileak = kleak*nsr;\n \n if(betaad==0)\n {\n iup = iupbar*cai/(cai+kmup);\n }\n \n if(betaad==1)\n {\n iup = 1.2*iupbar*cai/(cai+kmup);\n }\n \n dnsr = dt*(iup-ileak-itr*vjsr/vnsr);\n nsr = nsr+dnsr;\n}\n\nvoid comp_ryrrates()\n{\n\nC1_C2 = 1750*caiss;\nC2_C3 = 5600*caiss;\nC3_C4 = 5600*caiss;\nC4_O1 = 5600*caiss;\n\nI1_I2 = 1750*caiss;\nI2_I3 = 5600*caiss;\nI3_I4 = 5600*caiss;\nI4_I5 = 5600*caiss;\n\nC2_C1 = 5;\nC3_C2 = 2.625;\nC4_C3 = 1;\nO1_C4 = 6.25;\n\nI2_I1 = 5;\nI3_I2 = 2.625;\nI4_I3 = 1;\nI5_I4 = 6.25;\n\nC1_I1 = 0.4*caiss;\nC2_I2 = 1.2*caiss;\nC3_I3 = 2.8*caiss;\nC4_I4 = 5.2*caiss;\nO1_I5 = 8.4*caiss;\n\nI1_C1 = 0.01/(1+pow((csqnbar*0.75/csqn),9));\nI2_C2 = 0.001/(1+pow((csqnbar*0.75/csqn),9));\nI3_C3 = 0.0001/(1+pow((csqnbar*0.75/csqn),9));\nI4_C4 = 0.00001/(1+pow((csqnbar*0.75/csqn),9));\nI5_O1 = 0.000001/(1+pow((csqnbar*0.75/csqn),9));\n\n}\n\nvoid comp_ryr()\n{\nryrCone1 = ryrCone;\nryrCtwo1 = ryrCtwo;\nryrCthree1 = ryrCthree;\nryrCfour1 = ryrCfour;\nryrOone1 = ryrOone;\nryrIone1 = ryrIone;\nryrItwo1 = ryrItwo;\nryrIthree1 = ryrIthree;\nryrIfour1 = ryrIfour;\nryrIfive1 = 1-(ryrCone1+ryrCtwo1+ryrCthree1+ryrCfour1+ryrOone1+ryrIone1+ryrItwo1+ryrIthree1+ryrIfour1);\n\ndryrCone = dt*(C2_C1*ryrCtwo1+I1_C1*ryrIone1-ryrCone1*(C1_C2+C1_I1));\ndryrCtwo = dt*(C1_C2*ryrCone1+C3_C2*ryrCthree1+I2_C2*ryrItwo1-ryrCtwo1*(C2_C1+C2_C3+C2_I2));\ndryrCthree = dt*(C2_C3*ryrCtwo1+C4_C3*ryrCfour1+I3_C3*ryrIthree1-ryrCthree1*(C3_C2+C3_C4+C3_I3));\ndryrCfour = dt*(O1_C4*ryrOone1+C3_C4*ryrCthree1+I4_C4*ryrIfour1-ryrCfour1*(C4_C3+C4_O1+C4_I4));\ndryrOone = dt*(C4_O1*ryrCfour1+I5_O1*ryrIfive1-ryrOone1*(O1_I5+O1_C4));\n\ndryrIone = dt*(C1_I1*ryrCone1+I2_I1*ryrItwo1-ryrIone1*(I1_C1+I1_I2));\ndryrItwo = dt*(C2_I2*ryrCtwo1+I1_I2*ryrIone1+I3_I2*ryrIthree1-ryrItwo1*(I2_C2+I2_I1+I2_I3));\ndryrIthree = dt*(C3_I3*ryrCthree1+I2_I3*ryrItwo1+I4_I3*ryrIfour1-ryrIthree1*(I3_C3+I3_I2+I3_I4));\ndryrIfour = dt*(C4_I4*ryrCfour1+I3_I4*ryrIthree1+I5_I4*ryrIfive1-ryrIfour1*(I4_C4+I4_I3+I4_I5));\ndryrIfive = dt*(O1_I5*ryrOone1+I4_I5*ryrIfour1-ryrIfive1*(I5_O1+I5_I4));\n\nryrCone2 = ryrCone+dryrCone;\nryrCtwo2 = ryrCtwo+dryrCtwo;\nryrCthree2 = ryrCthree+dryrCthree;\nryrCfour2 = ryrCfour+dryrCfour;\nryrOone2 = ryrOone+dryrOone;\nryrIone2 = ryrIone+dryrIone;\nryrItwo2 = ryrItwo+dryrItwo;\nryrIthree2 = ryrIthree+dryrIthree;\nryrIfour2 = ryrIfour+dryrIfour;\nryrIfive2 = ryrIfive+dryrIfive;\n\nryrCone = ryrCone2;\nryrCtwo = ryrCtwo2;\nryrCthree = ryrCthree2;\nryrCfour = ryrCfour2;\nryrOone = ryrOone2;\nryrIone = ryrIone2;\nryrItwo = ryrItwo2;\nryrIthree = ryrIthree2;\nryrIfour = ryrIfour2;\nryrIfive = 1-(ryrCone2+ryrCtwo2+ryrCthree2+ryrCfour2+ryrOone2+ryrIone2+ryrItwo2+ryrIthree2+ryrIfour2);\n}\n\n\nvoid conc_jsr ()\n{\n sponrelss = 25/(1+exp((5.3-jsr)/.001));\n spontau = 125;\n sponrel = sponrelss-(sponrelss-sponrel)*exp(-dt/spontau);\n\n gradedrel = (1/(1+exp((20+ical)/6))-0.034445);\n vgainofrel = (1+exp(((0.015*ibarca)+1.25)/0.75));\n\n vg = gradedrel/vgainofrel;\n\n grel = 250*(vg+sponrel);\n\n irel = grel*(ryrOone)*(jsr-caiss);\n\n\nif (csqnmut == 0)\n {csqnbar = 10;}\nif (csqnmut == 1)\n {csqnbar = 4;}\n\n\n csqn = csqnbar*(jsr/(jsr+kmcsqn));\n\n buffersjsr = 1/(1+(csqnbar*kmcsqn/(pow(kmcsqn+jsr,2))));\n djsr = dt*buffersjsr*(itr-irel);\n jsr = jsr+djsr;\n}\n\nvoid calc_itr ()\n{\n itr = (nsr-jsr)/tautr;\n}\n\nvoid conc_cai ()\n{\n trpn = trpnbar*(cai/(cai+kmtrpn));\n cmdn = cmdnbar*(cai/(cai+kmcmdn));\n\n buffersmyo = 1/(1+(trpnbar*kmtrpn)/((kmtrpn+cai)*(kmtrpn+cai))+(cmdnbar*kmcmdn)/((kmcmdn+cai)*(kmcmdn+cai)));\n dcai = -dt*buffersmyo*((((caiont-ilca+2*inacass)*acap)/(vmyo*zca*frdy))+((iup-ileak)*(vnsr/vmyo))-idiffca*(volrss/vmyo));\n cai = cai+dcai;\n}\n\n\nvoid comp_ltypesc ()\n{\n comp_rates ();\n comp_ltypeca ();\n comp_Cacon ();\n \n ibarca = pca*zca*zca*((v*frdy*frdy)/(R*temp))*((gacai*caiss*exp((zca*(v-0)*frdy)/(R*temp))-gacao*cao)/(exp((zca*(v-0)*frdy)/(R*temp))-1));\n ibarna = pna*zna*zna*((v*frdy*frdy)/(R*temp))*((ganai*naiss*exp((zna*v*frdy)/(R*temp))-ganao*nao)/(exp((zna*v*frdy)/(R*temp))-1));\n ibark = pk*zk*zk*((v*frdy*frdy)/(R*temp))*((gaki*kiss*exp((zk*v*frdy)/(R*temp))-gako*ko)/(exp((zk*v*frdy)/(R*temp))-1));\n \n fcasc = caoff/(caon+caoff)-((caoff/(caon+caoff))-fcasc)*exp(-dt/(1/(caon+caoff)));\n fmode0 = mode0off/(mode0on+mode0off)-((mode0off/(mode0on+mode0off))-fmode0)*exp(-dt/(1/(mode0on+mode0off)));\n \n ical = ibarca*fcasc*fmode0*ltypeO;\n ilcana = ibarna*fcasc*fmode0*ltypeO;\n ilcak = ibark*fcasc*fmode0*ltypeO;\n\n ilca = ical;\n}\n\n\nvoid comp_rates ()\n{\n\nif(betaad==0)\n{\nalphaequation = 0.925*exp(v/30);\nbetaequation = 0.39*exp(v/-40);\nalpha0 = 4*alphaequation;\nalpha1 = 3*alphaequation;\nalpha2 = 2*alphaequation;\nalpha3 = 1*alphaequation;\nbeta0 = 1*betaequation;\nbeta1 = 2*betaequation;\nbeta2 = 3*betaequation;\nbeta3 = 4*betaequation;\ngammmaf = 0.245*exp(v/10);\ngammmas = 0.005*exp(v/-40);\nphif = 0.02*exp(v/500);\nphis = 0.03*exp(v/-280);\nlambdaf = 0.035*exp(v/-300);\nlambdas = 0.0011*exp(v/500);\nomegaf = (lambdaf*beta3*gammmaf)/(phif*alpha3);\nomegas = (lambdas*beta3*gammmas)/(phis*alpha3);\nomegasf = (lambdas*phif)/(lambdaf);\nomegafs = phis;\ncaon = 4/(1+1/caiss);\ncaoff = 0.01;\nmode0on = 0.0008;\nmode0off = 0.00018;\n}\n\nif(betaad==1)\n{\nalphaequation = 0.925*exp(v/30);\nbetaequation = 0.39*exp(v/-40);\nalpha0 = 4*alphaequation;\nalpha1 = 3*alphaequation;\nalpha2 = 2*alphaequation;\nalpha3 = 1*alphaequation;\nbeta0 = 1*betaequation;\nbeta1 = 2*betaequation;\nbeta2 = 3*betaequation;\nbeta3 = 4*betaequation;\ngammmaf = 0.245*exp(v/10);\ngammmas = 0.005*exp(v/-40);\nphif = 0.02*exp(v/500);\nphis = 0.014*exp(v/-20);\nlambdaf = 0.015*exp(v/-300);\nlambdas = 0.0022*exp(v/500);\nomegaf = (lambdaf*beta3*gammmaf)/(phif*alpha3);\nomegas = (lambdas*beta3*gammmas)/(phis*alpha3);\nomegasf = (lambdas*phif)/(lambdaf);\nomegafs = phis;\ncaon = 5/(1+1/caiss);\ncaoff = 0.001;\nmode0on = 0.0004;\nmode0off = 0.0004545;\n}\n\n\n}\n\nvoid comp_ltypeca()\n{\nCzero1 = ltypeCzero;\nCone1 = ltypeCone;\nCtwo1 = ltypeCtwo;\nCthree1 = ltypeCthree;\nIVf1 = ltypeIVf;\nIVs1 = ltypeIVs;\nO1 = 1-(Czero1+Cone1+Ctwo1+Cthree1+IVf1+IVs1);\n\ndltypeCzero = dt*(Cone1*beta0-Czero1*(alpha0));\ndltypeCone = dt*(Ctwo1*beta1+Czero1*alpha0-Cone1*(alpha1+beta0));\ndltypeCtwo = dt*(Cone1*alpha1+Cthree1*beta2-Ctwo1*(beta1+alpha2));\ndltypeCthree = dt*(O1*beta3+IVf1*omegaf+IVs1*omegas+Ctwo1*alpha2-Cthree1*(gammmaf+gammmas+alpha3+beta2));\ndltypeO = dt*(IVf1*lambdaf+IVs1*lambdas+Cthree1*alpha3-O1*(phif+phis+beta3));\ndltypeIVf = dt*(O1*phif+Cthree1*gammmaf+IVs1*omegasf-IVf1*(omegaf+lambdaf+omegafs));\ndltypeIVs = dt*(O1*phis+Cthree1*gammmas+IVf1*omegafs-IVs1*(omegas+lambdas+omegasf));\n\nCzero2 = ltypeCzero+dltypeCzero;\nCone2 = ltypeCone+dltypeCone;\nCtwo2 = ltypeCtwo+dltypeCtwo;\nCthree2 = ltypeCthree+dltypeCthree;\nO2 = ltypeO+dltypeO;\nIVf2 = ltypeIVf+dltypeIVf;\nIVs2 = ltypeIVs+dltypeIVs;\n\n ltypeCzero = Czero2;\n ltypeCone = Cone2;\n ltypeCtwo = Ctwo2;\n ltypeCthree = Cthree2;\n ltypeIVf = IVf2;\n ltypeIVs = IVs2;\n ltypeO = 1-(Czero2+Cone2+Ctwo2+Cthree2+IVf2+IVs2);\n\n}\n\nvoid comp_Cacon ()\n{\n taudiffss = 0.1;\n\n bsr = bsrbar*(caiss/(caiss+kmbsr));\n bsl = bslbar*(caiss/(caiss+kmbsl));\n\n\n buffersss = 1/(1+(bsrbar*kmbsr)/((kmbsr+caiss)*(kmbsr+caiss))+(bslbar*kmbsl)/((kmbsl+caiss)*(kmbsl+caiss)));\n idiffca = (caiss-cai)/taudiffss;\n \n dcaresspace = dt*buffersss*(-(ical-2*inacass)*acap/(volrss*frdy*2)+(irel*(vjsr/volrss))-idiffca);\n caiss = caiss+dcaresspace;\n \n idiffna = (naiss-nai)/taudiffss;\n dnaresspace = dt*(-(3*inacass+ilcana)*acap/(volrss*frdy)-idiffna);\n naiss = naiss+dnaresspace;\n\n idiffk = (kiss-ki)/taudiffss;\n dkresspace = dt*(-ilcak*acap/(volrss*frdy)-idiffk);\n kiss = kiss+dkresspace;\n\n}\n\n/* Values are printed to a file called ap. The voltage and currents can be plotted versus time using graphing software. */\n\nvoid prttofile()\n{\n\n/* These equations compute the state residencies for the 14 state model; the first 7 equations are residencies in ModeV and the latter 7 equations are residencies in ModeCa */\n\n icaCzero = ltypeCzero*fcasc;\n icaCone = ltypeCone*fcasc;\n icaCtwo = ltypeCtwo*fcasc;\n icaCthree = ltypeCthree*fcasc;\n icaO = ltypeO*fcasc;\n icaIVf = ltypeIVf*fcasc;\n icaIVs = ltypeIVs*fcasc;\n icaCzerocdi = ltypeCzero*(1-fcasc);\n icaConecdi = ltypeCone*(1-fcasc);\n icaCtwocdi = ltypeCtwo*(1-fcasc);\n icaCthreecdi = ltypeCthree*(1-fcasc);\n icaIcdi = ltypeO*(1-fcasc);\n icaIVfcdi = ltypeIVf*(1-fcasc);\n icaIVscdi = ltypeIVs*(1-fcasc);\n\n/* Prints to File */\n\nif(t>(0) && t<(300000))\n {fprintf(ap,\"%.3f\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\n\", t, v, 1000*cai, ilca, irel, inaca, inacass, inak, ikr, iks, iki, ikp, ina, inab, icab, icat, nsr, jsr, csqn);}\nif(t>(0) && t<(300000))\n {fprintf(statedata,\"%.3f\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\t%g\\n\", t, ilca, icaO, icaIcdi, icaIVf, icaIVfcdi, icaIVs, icaIVscdi, (icaCzero+icaCone+icaCtwo+icaCthree), (icaCzerocdi+icaConecdi+icaCtwocdi+icaCthreecdi));}\nif(t>(0) && t<(300000))\n {fprintf(ryrdata,\"%.3f\\t%g\\t%g\\t%g\\t%g\\t%g\\n\", t, irel, (ryrCone+ryrCtwo+ryrCthree+ryrCfour), ryrOone, (ryrIone+ryrItwo+ryrIthree), (ryrIfour+ryrIfive));}\n\n}\n" SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "all" WideLines off ShowLineDimensions on ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip on BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Tue Dec 05 17:26:22 2000" Creator "KZPa" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "KZPa" ModifiedDateFormat "%" LastModifiedDate "Tue Jul 15 10:44:41 2008" RTWModifiedTimeStamp 0 ModifiedComment "KZPa -- Wed Feb 27 09:12:42 2008 -- Version 1.118\n" ModifiedHistory "KZPa -- Wed Feb 27 09:12:42 2008 -- Version 1.118\n\n" ModelVersionFormat "1.%" ConfigurationManager "none" SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on CovModelRefEnable "Off" ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "oneshot" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect off ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse off ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.4.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.4.0" StartTime "0.0" StopTime "1000" AbsTol "auto" FixedStep "0.005" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 2 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-6" SolverMode "Auto" Solver "ode15s" SolverName "ode15s" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Non-adaptive" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" } Simulink.DataIOCC { $ObjectID 3 Version "1.4.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints off MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState on SaveFormat "Array" SaveOutput off SaveState off SignalLogging on InspectSignalLogs off SaveTime off StateSaveName "xout" TimeSaveName "t" OutputSaveName "yout" SignalLoggingName "sigsOut" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Version "1.4.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams on InlineInvariantSignals off OptimizeBlockIOStorage off BufferReuse off EnhancedBackFolding off EnforceIntegerDowncast on ExpressionFolding off ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs off RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.4.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "none" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "none" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "warning" MultiTaskCondExecSysMsg "none" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "warning" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StrictBusMsg "None" LoggingUnavailableSignals "error" BlockIODiagnostic "none" } Simulink.HardwareCC { $ObjectID 6 Version "1.4.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown on ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.4.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferenceSigSizeVariationType "Always allowed" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Version "1.4.0" SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on TemplateMakefile "grt_default_tmf" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime on GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateCodeInfo off RTWCompilerOptimization "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Version "1.4.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Version "1.4.0" TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant off CompOptLevelCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging off MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off AutosarCompliant off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } PropName "Components" } Name "Configuration" CurrentDlgPage "Solver" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Clock DisplayTime off } Block { BlockType From IconDisplay "Tag" TagVisibility "local" } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParameterDataTypeMode "Same as input" ParameterDataType "fixdt(1,16,0)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "[]" ParamDataTypeStr "Inherit: Same as input" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Goto IconDisplay "Tag" } Block { BlockType Ground } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" IgnoreLimit off ZeroCross on ContinuousStateAttributes "''" } Block { BlockType Math Operator "exp" OutputSignalType "auto" SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on AccumDataTypeStr "Inherit: Inherit via internal rule" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" FixptAsFi off } Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "fixdt(1,16,0)" ConRadixGroup "Use specified scaling" OutScaling "[]" OutDataTypeStr "Inherit: Inherit from 'Constant value'" SampleTime "inf" FramePeriod "inf" } Block { BlockType DiscretePulseGenerator PulseType "Sample based" TimeSource "Use simulation time" Amplitude "1" Period "2" PulseWidth "1" PhaseDelay "0" SampleTime "1" VectorParams1D on } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "faber_07_ss_internal" Location [351, 82, 1270, 978] Open on ModelBrowserVisibility on ModelBrowserWidth 349 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "Extracellulär & Workspace" Ports [] Position [636, 460, 805, 595] DropShadow on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Extracellulär & Workspace" Location [1011, 497, 1151, 759] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType SubSystem Name "To Workspace" Ports [] Position [25, 25, 115, 105] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "To Workspace" Location [202, 82, 1270, 978] Open off ModelBrowserVisibility on ModelBrowserWidth 336 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Clock Name "Clock" Position [305, 30, 325, 50] Decimation "1" } Block { BlockType From Name "From" Position [275, 101, 315, 129] CloseFcn "tagdialog Close" GotoTag "volt" TagVisibility "global" } Block { BlockType From Name "From1" Position [270, 201, 310, 229] CloseFcn "tagdialog Close" GotoTag "CAi" TagVisibility "global" } Block { BlockType From Name "From10" Position [280, 396, 320, 424] CloseFcn "tagdialog Close" GotoTag "CAjsr" TagVisibility "global" } Block { BlockType From Name "From11" Position [280, 456, 320, 484] CloseFcn "tagdialog Close" GotoTag "CAnsr" TagVisibility "global" } Block { BlockType From Name "From12" Position [285, 546, 325, 574] CloseFcn "tagdialog Close" GotoTag "Ileak" TagVisibility "global" } Block { BlockType From Name "From13" Position [285, 611, 325, 639] CloseFcn "tagdialog Close" GotoTag "Iup" TagVisibility "global" } Block { BlockType From Name "From14" Position [285, 676, 325, 704] CloseFcn "tagdialog Close" GotoTag "Itr" TagVisibility "global" } Block { BlockType From Name "From15" Position [290, 741, 330, 769] CloseFcn "tagdialog Close" GotoTag "CSQN" TagVisibility "global" } Block { BlockType From Name "From16" Position [255, 791, 295, 819] CloseFcn "tagdialog Close" GotoTag "TRPN" TagVisibility "global" } Block { BlockType From Name "From17" Position [35, 791, 75, 819] CloseFcn "tagdialog Close" GotoTag "CMDN" TagVisibility "global" } Block { BlockType From Name "From18" Position [275, 156, 315, 184] CloseFcn "tagdialog Close" GotoTag "NAi" TagVisibility "global" } Block { BlockType From Name "From19" Position [650, 426, 690, 454] CloseFcn "tagdialog Close" GotoTag "ICaNa" TagVisibility "global" } Block { BlockType From Name "From2" Position [275, 266, 315, 294] CloseFcn "tagdialog Close" GotoTag "Ki" TagVisibility "global" } Block { BlockType From Name "From20" Position [45, 551, 85, 579] CloseFcn "tagdialog Close" GotoTag "NAKp" TagVisibility "global" } Block { BlockType From Name "From21" Position [45, 621, 85, 649] CloseFcn "tagdialog Close" GotoTag "IPCA" TagVisibility "global" } Block { BlockType From Name "From22" Position [40, 686, 80, 714] CloseFcn "tagdialog Close" GotoTag "I_NAb" TagVisibility "global" } Block { BlockType From Name "From23" Position [40, 746, 80, 774] CloseFcn "tagdialog Close" GotoTag "ICAb" TagVisibility "global" } Block { BlockType From Name "From24" Position [580, 96, 620, 124] CloseFcn "tagdialog Close" GotoTag "IREL" TagVisibility "global" } Block { BlockType From Name "From25" Position [595, 225, 665, 255] CloseFcn "tagdialog Close" GotoTag "INCXss" TagVisibility "global" } Block { BlockType From Name "From26" Position [640, 366, 680, 394] CloseFcn "tagdialog Close" GotoTag "ICAL" TagVisibility "global" } Block { BlockType From Name "From27" Position [710, 736, 750, 764] CloseFcn "tagdialog Close" GotoTag "CAss" TagVisibility "global" } Block { BlockType From Name "From28" Position [715, 691, 755, 719] CloseFcn "tagdialog Close" GotoTag "NAss" TagVisibility "global" } Block { BlockType From Name "From29" Position [50, 31, 90, 59] CloseFcn "tagdialog Close" GotoTag "I_K1" TagVisibility "global" } Block { BlockType From Name "From3" Position [270, 326, 310, 354] CloseFcn "tagdialog Close" GotoTag "I_NA" TagVisibility "global" } Block { BlockType From Name "From30" Position [715, 801, 755, 829] CloseFcn "tagdialog Close" GotoTag "Kss" TagVisibility "global" } Block { BlockType From Name "From31" Position [650, 481, 690, 509] CloseFcn "tagdialog Close" GotoTag "ICaK" TagVisibility "global" } Block { BlockType From Name "From32" Position [675, 561, 715, 589] CloseFcn "tagdialog Close" GotoTag "BSR" TagVisibility "global" } Block { BlockType From Name "From33" Position [675, 611, 715, 639] CloseFcn "tagdialog Close" GotoTag "BSL" TagVisibility "global" } Block { BlockType From Name "From4" Position [30, 91, 70, 119] CloseFcn "tagdialog Close" GotoTag "I_Ks" TagVisibility "global" } Block { BlockType From Name "From5" Position [30, 141, 70, 169] CloseFcn "tagdialog Close" GotoTag "I_Kr" TagVisibility "global" } Block { BlockType From Name "From6" Position [40, 216, 80, 244] CloseFcn "tagdialog Close" GotoTag "INCX" TagVisibility "global" } Block { BlockType From Name "From7" Position [40, 281, 80, 309] CloseFcn "tagdialog Close" GotoTag "I_Kp" TagVisibility "global" } Block { BlockType From Name "From8" Position [40, 346, 80, 374] CloseFcn "tagdialog Close" GotoTag "ICAt" TagVisibility "global" } Block { BlockType From Name "From9" Position [40, 421, 80, 449] CloseFcn "tagdialog Close" GotoTag "stim" TagVisibility "global" } Block { BlockType ToWorkspace Name "T W1" Position [385, 400, 425, 420] VariableName "ca_jsr" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W10" Position [170, 216, 215, 244] VariableName "i_na_ca" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W11" Position [165, 424, 215, 446] VariableName "reiz" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W12" Position [390, 270, 430, 290] VariableName "k_i" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W13" Position [400, 795, 440, 815] VariableName "trpn" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W14" Position [145, 795, 185, 815] VariableName "cmdn" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W15" Position [380, 160, 420, 180] VariableName "na_i" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W16" Position [770, 430, 815, 450] VariableName "i_Ca_na" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W17" Position [190, 554, 240, 576] VariableName "i_nak" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W18" Position [180, 624, 230, 646] VariableName "i_cap" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W19" Position [180, 689, 230, 711] VariableName "i_nab" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W2" Position [390, 680, 430, 700] VariableName "i_tr" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W20" Position [185, 749, 235, 771] VariableName "i_cab" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W21" Position [670, 100, 710, 120] VariableName "i_rel" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W22" Position [755, 227, 835, 253] VariableName "i_na_ca_ss" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W23" Position [760, 370, 805, 390] VariableName "i_CaL" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W24" Position [830, 805, 870, 825] VariableName "k_iss" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W25" Position [820, 695, 860, 715] VariableName "na_iss" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W26" Position [820, 740, 860, 760] VariableName "ca_iss" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W27" Position [770, 485, 815, 505] VariableName "i_Ca_k" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W28" Position [785, 565, 830, 585] VariableName "bsr" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W29" Position [785, 615, 830, 635] VariableName "bsl" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W3" Position [385, 551, 425, 569] VariableName "i_leak" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W4" Position [400, 331, 425, 349] VariableName "i_na" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W5" Position [380, 205, 420, 225] VariableName "ca_i" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W6" Position [395, 745, 435, 765] VariableName "csqn" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W7" Position [385, 460, 425, 480] VariableName "ca_nsr" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W8" Position [170, 285, 215, 305] VariableName "i_kp" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "T W9" Position [160, 350, 205, 370] VariableName "i_Cat" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace" Position [370, 97, 425, 123] VariableName "v" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace1" Position [395, 614, 430, 636] VariableName "i_up" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace2" Position [360, 25, 420, 55] VariableName "tsim" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace3" Position [170, 147, 205, 163] VariableName "i_kr" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace4" Position [170, 94, 200, 116] VariableName "i_ks" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace5" Position [170, 34, 200, 56] VariableName "i_k1" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Clock" SrcPort 1 DstBlock "To Workspace2" DstPort 1 } Line { SrcBlock "From" SrcPort 1 Points [0, -5] DstBlock "To Workspace" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 DstBlock "T W5" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 DstBlock "T W12" DstPort 1 } Line { SrcBlock "From3" SrcPort 1 DstBlock "T W4" DstPort 1 } Line { SrcBlock "From4" SrcPort 1 DstBlock "To Workspace4" DstPort 1 } Line { SrcBlock "From5" SrcPort 1 DstBlock "To Workspace3" DstPort 1 } Line { SrcBlock "From6" SrcPort 1 DstBlock "T W10" DstPort 1 } Line { SrcBlock "From7" SrcPort 1 DstBlock "T W8" DstPort 1 } Line { SrcBlock "From8" SrcPort 1 DstBlock "T W9" DstPort 1 } Line { SrcBlock "From9" SrcPort 1 DstBlock "T W11" DstPort 1 } Line { SrcBlock "From10" SrcPort 1 DstBlock "T W1" DstPort 1 } Line { SrcBlock "From11" SrcPort 1 DstBlock "T W7" DstPort 1 } Line { SrcBlock "From12" SrcPort 1 DstBlock "T W3" DstPort 1 } Line { SrcBlock "From13" SrcPort 1 DstBlock "To Workspace1" DstPort 1 } Line { SrcBlock "From14" SrcPort 1 DstBlock "T W2" DstPort 1 } Line { SrcBlock "From15" SrcPort 1 DstBlock "T W6" DstPort 1 } Line { SrcBlock "From16" SrcPort 1 DstBlock "T W13" DstPort 1 } Line { SrcBlock "From17" SrcPort 1 DstBlock "T W14" DstPort 1 } Line { SrcBlock "From18" SrcPort 1 DstBlock "T W15" DstPort 1 } Line { SrcBlock "From20" SrcPort 1 DstBlock "T W17" DstPort 1 } Line { SrcBlock "From21" SrcPort 1 DstBlock "T W18" DstPort 1 } Line { SrcBlock "From22" SrcPort 1 DstBlock "T W19" DstPort 1 } Line { SrcBlock "From23" SrcPort 1 DstBlock "T W20" DstPort 1 } Line { SrcBlock "From24" SrcPort 1 DstBlock "T W21" DstPort 1 } Line { SrcBlock "From29" SrcPort 1 DstBlock "To Workspace5" DstPort 1 } Line { SrcBlock "From25" SrcPort 1 Points [0, 0] DstBlock "T W22" DstPort 1 } Line { SrcBlock "From26" SrcPort 1 DstBlock "T W23" DstPort 1 } Line { SrcBlock "From27" SrcPort 1 Points [0, 0] DstBlock "T W26" DstPort 1 } Line { SrcBlock "From30" SrcPort 1 Points [0, 0] DstBlock "T W24" DstPort 1 } Line { SrcBlock "From28" SrcPort 1 Points [0, 0] DstBlock "T W25" DstPort 1 } Line { SrcBlock "From19" SrcPort 1 DstBlock "T W16" DstPort 1 } Line { SrcBlock "From31" SrcPort 1 DstBlock "T W27" DstPort 1 } Line { SrcBlock "From32" SrcPort 1 DstBlock "T W28" DstPort 1 } Line { SrcBlock "From33" SrcPort 1 DstBlock "T W29" DstPort 1 } } } Block { BlockType SubSystem Name "extracellular" Ports [] Position [32, 158, 115, 235] Orientation "left" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "extracellular" Location [315, 79, 1211, 983] Open off ModelBrowserVisibility on ModelBrowserWidth 135 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Constant Name "Ca_o" Position [455, 137, 490, 153] Orientation "left" NamePlacement "alternate" Value "1.8" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Goto Name "Goto" Position [385, 65, 425, 95] Orientation "left" NamePlacement "alternate" GotoTag "NAo" TagVisibility "global" } Block { BlockType Goto Name "Goto1" Position [380, 130, 420, 160] Orientation "left" NamePlacement "alternate" GotoTag "CAo" TagVisibility "global" } Block { BlockType Goto Name "Goto2" Position [380, 190, 420, 220] Orientation "left" NamePlacement "alternate" GotoTag "Ko" TagVisibility "global" } Block { BlockType Constant Name "K_o" Position [460, 196, 490, 214] Orientation "left" NamePlacement "alternate" Value "4.5" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Na_o" Position [460, 69, 490, 91] Orientation "left" NamePlacement "alternate" Value "130" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Na_o" SrcPort 1 DstBlock "Goto" DstPort 1 } Line { SrcBlock "Ca_o" SrcPort 1 DstBlock "Goto1" DstPort 1 } Line { SrcBlock "K_o" SrcPort 1 DstBlock "Goto2" DstPort 1 } } } } } Block { BlockType SubSystem Name "IRelease" Ports [] Position [80, 457, 297, 589] ForegroundColor "orange" DropShadow on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "IRelease" Location [317, 195, 1082, 671] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType SubSystem Name "IRELEASE" Ports [] Position [180, 105, 310, 190] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "IRELEASE" Location [202, 82, 1282, 978] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType From Name "From" Position [25, 49, 90, 81] CloseFcn "tagdialog Close" GotoTag "ICAL" TagVisibility "global" } Block { BlockType From Name "From1" Position [25, 115, 90, 145] CloseFcn "tagdialog Close" GotoTag "ICAmax" TagVisibility "global" } Block { BlockType From Name "From2" Position [395, 224, 460, 256] CloseFcn "tagdialog Close" GotoTag "OR" TagVisibility "global" } Block { BlockType From Name "From3" Position [290, 389, 355, 421] CloseFcn "tagdialog Close" GotoTag "CAss" TagVisibility "global" } Block { BlockType From Name "From4" Position [290, 339, 355, 371] CloseFcn "tagdialog Close" GotoTag "CAjsr" TagVisibility "global" } Block { BlockType Gain Name "Gain" Position [295, 50, 350, 80] Gain "250" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Goto Name "Goto" Position [685, 225, 740, 255] GotoTag "IREL" TagVisibility "global" } Block { BlockType Product Name "Grel" Ports [2, 1] Position [455, 32, 485, 163] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Irel" Ports [3, 1] Position [555, 28, 605, 452] Inputs "***" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [425, 328, 450, 432] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Fcn Name "gradedrel" Position [180, 50, 240, 80] Expr "( 1 / ( 1 + exp ( ( 20 + u) / 6 ) ) ) - 0.034445" } Block { BlockType Fcn Name "vgainorel" Position [180, 115, 240, 145] Expr "1 + exp ( ( 0.015 * u + 1.25 ) / 0.75 ) " } Line { SrcBlock "From" SrcPort 1 DstBlock "gradedrel" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 Points [0, 0] DstBlock "vgainorel" DstPort 1 } Line { SrcBlock "gradedrel" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "vgainorel" SrcPort 1 DstBlock "Grel" DstPort 2 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Grel" DstPort 1 } Line { SrcBlock "Grel" SrcPort 1 DstBlock "Irel" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 DstBlock "Irel" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Irel" DstPort 3 } Line { SrcBlock "From3" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "From4" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Irel" SrcPort 1 DstBlock "Goto" DstPort 1 } } } Block { BlockType SubSystem Name "Kinetik & Rate constants" Ports [] Position [375, 101, 500, 202] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Kinetik & Rate constants" Location [338, 82, 1270, 978] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType SubSystem Name "C_Drei_R" Ports [] Position [25, 263, 106, 305] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "C_Drei_R" Location [202, 82, 1270, 978] Open off ModelBrowserVisibility on ModelBrowserWidth 323 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Integrator Name "C3R" Ports [1, 1] Position [640, 360, 730, 470] InitialCondition "0.003056231 \n" } Block { BlockType From Name "From" Position [230, 321, 295, 349] CloseFcn "tagdialog Close" GotoTag "alpha_2R" TagVisibility "global" } Block { BlockType From Name "From1" Position [230, 276, 295, 304] CloseFcn "tagdialog Close" GotoTag "C2R" TagVisibility "global" } Block { BlockType From Name "From2" Position [230, 516, 295, 544] CloseFcn "tagdialog Close" GotoTag "delta_3R" TagVisibility "global" } Block { BlockType From Name "From3" Position [230, 471, 295, 499] CloseFcn "tagdialog Close" GotoTag "I3R" TagVisibility "global" } Block { BlockType From Name "From4" Position [20, 756, 85, 784] CloseFcn "tagdialog Close" GotoTag "gamma_3R" TagVisibility "global" } Block { BlockType From Name "From5" Position [25, 576, 95, 604] CloseFcn "tagdialog Close" GotoTag "alpha_3R" TagVisibility "global" } Block { BlockType From Name "From6" Position [25, 666, 95, 694] CloseFcn "tagdialog Close" GotoTag "beta_2R" TagVisibility "global" } Block { BlockType From Name "From7" Position [235, 126, 300, 154] CloseFcn "tagdialog Close" GotoTag "beta_3R" TagVisibility "global" } Block { BlockType From Name "From8" Position [235, 81, 300, 109] CloseFcn "tagdialog Close" GotoTag "C4R" TagVisibility "global" } Block { BlockType Goto Name "Goto" Position [890, 400, 930, 430] GotoTag "C3R" TagVisibility "global" } Block { BlockType Product Name "Product" Ports [2, 1] Position [350, 267, 375, 358] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [350, 462, 375, 553] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [350, 657, 375, 748] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [355, 72, 380, 163] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [4, 1] Position [470, 25, 520, 800] ShowName off Inputs "+++-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [3, 1] Position [135, 545, 165, 815] ShowName off Inputs "+++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Line { SrcBlock "From" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 Points [0, 0] DstBlock "Product1" DstPort 2 } Line { SrcBlock "From3" SrcPort 1 Points [0, 0] DstBlock "Product1" DstPort 1 } Line { SrcBlock "From5" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Product2" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "C3R" DstPort 1 } Line { SrcBlock "C3R" SrcPort 1 Points [0, 0; 60, 0] Branch { Points [0, 410; -510, 0; 0, -100] DstBlock "Product2" DstPort 2 } Branch { DstBlock "Goto" DstPort 1 } } Line { SrcBlock "From4" SrcPort 1 Points [0, 0] DstBlock "Sum1" DstPort 3 } Line { SrcBlock "From6" SrcPort 1 Points [0, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { SrcBlock "From7" SrcPort 1 Points [0, 0] DstBlock "Product3" DstPort 2 } Line { SrcBlock "From8" SrcPort 1 Points [0, 0] DstBlock "Product3" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Sum" DstPort 4 } } } Block { BlockType SubSystem Name "C_Eins_R" Ports [] Position [25, 93, 106, 135] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "C_Eins_R" Location [202, 82, 1270, 978] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Integrator Name "C1R" Ports [1, 1] Position [640, 285, 730, 395] InitialCondition "0.888791385 \n" } Block { BlockType From Name "From" Position [230, 346, 295, 374] CloseFcn "tagdialog Close" GotoTag "delta_1R" TagVisibility "global" } Block { BlockType From Name "From1" Position [230, 301, 295, 329] CloseFcn "tagdialog Close" GotoTag "I1R" TagVisibility "global" } Block { BlockType From Name "From4" Position [20, 511, 85, 539] CloseFcn "tagdialog Close" GotoTag "gamma_1R" TagVisibility "global" } Block { BlockType From Name "From5" Position [25, 436, 95, 464] CloseFcn "tagdialog Close" GotoTag "alpha_1R" TagVisibility "global" } Block { BlockType From Name "From7" Position [235, 171, 300, 199] CloseFcn "tagdialog Close" GotoTag "beta_1R" TagVisibility "global" } Block { BlockType From Name "From8" Position [235, 126, 300, 154] CloseFcn "tagdialog Close" GotoTag "C2R" TagVisibility "global" } Block { BlockType Goto Name "Goto" Position [880, 325, 920, 355] GotoTag "C1R" TagVisibility "global" } Block { BlockType Product Name "Product" Ports [2, 1] Position [350, 292, 375, 383] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [350, 467, 375, 558] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [355, 117, 380, 208] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [465, 75, 505, 605] ShowName off Inputs "++-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [135, 413, 165, 562] ShowName off InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Line { SrcBlock "From" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "From5" SrcPort 1 Points [0, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Product2" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "C1R" DstPort 1 } Line { SrcBlock "C1R" SrcPort 1 Points [0, 0; 60, 0] Branch { Points [0, 320; -510, 0; 0, -125] DstBlock "Product2" DstPort 2 } Branch { DstBlock "Goto" DstPort 1 } } Line { SrcBlock "From4" SrcPort 1 Points [0, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "From7" SrcPort 1 Points [0, 0] DstBlock "Product3" DstPort 2 } Line { SrcBlock "From8" SrcPort 1 Points [0, 0] DstBlock "Product3" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType SubSystem Name "C_Vier_R" Ports [] Position [25, 338, 106, 380] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "C_Vier_R" Location [202, 82, 1270, 978] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Integrator Name "C4R" Ports [1, 1] Position [645, 190, 735, 300] InitialCondition "0.001160897 \n" } Block { BlockType From Name "From" Position [235, 86, 300, 114] CloseFcn "tagdialog Close" GotoTag "alpha_3R" TagVisibility "global" } Block { BlockType From Name "From1" Position [235, 41, 300, 69] CloseFcn "tagdialog Close" GotoTag "C3R" TagVisibility "global" } Block { BlockType From Name "From2" Position [235, 196, 300, 224] CloseFcn "tagdialog Close" GotoTag "beta_4R" TagVisibility "global" } Block { BlockType From Name "From3" Position [235, 151, 300, 179] CloseFcn "tagdialog Close" GotoTag "OR" TagVisibility "global" } Block { BlockType From Name "From4" Position [25, 401, 90, 429] CloseFcn "tagdialog Close" GotoTag "beta_3R" TagVisibility "global" } Block { BlockType From Name "From5" Position [30, 331, 100, 359] CloseFcn "tagdialog Close" GotoTag "alpha_4R" TagVisibility "global" } Block { BlockType From Name "From6" Position [240, 306, 305, 334] CloseFcn "tagdialog Close" GotoTag "delta_4R" TagVisibility "global" } Block { BlockType From Name "From7" Position [240, 261, 305, 289] CloseFcn "tagdialog Close" GotoTag "I4R" TagVisibility "global" } Block { BlockType From Name "From8" Position [30, 471, 95, 499] CloseFcn "tagdialog Close" GotoTag "gamma_4R" TagVisibility "global" } Block { BlockType Goto Name "Goto" Position [895, 230, 935, 260] GotoTag "C4R" TagVisibility "global" } Block { BlockType Product Name "Product" Ports [2, 1] Position [355, 32, 380, 123] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [355, 142, 380, 233] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [355, 362, 380, 453] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [360, 252, 385, 343] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [4, 1] Position [475, 25, 515, 465] ShowName off Inputs "+++-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [3, 1] Position [140, 312, 175, 518] ShowName off Inputs "+++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "From" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "From2" SrcPort 1 DstBlock "Product1" DstPort 2 } Line { SrcBlock "From3" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { SrcBlock "From4" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "From5" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [0, -30] DstBlock "Product2" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "C4R" DstPort 1 } Line { SrcBlock "C4R" SrcPort 1 Points [0, 0; 20, 0] Branch { Points [0, 365; -470, 0; 0, -180] DstBlock "Product2" DstPort 2 } Branch { DstBlock "Goto" DstPort 1 } } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { SrcBlock "Product3" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { SrcBlock "From6" SrcPort 1 Points [0, 0] DstBlock "Product3" DstPort 2 } Line { SrcBlock "From7" SrcPort 1 Points [0, 0] DstBlock "Product3" DstPort 1 } Line { SrcBlock "From8" SrcPort 1 DstBlock "Sum1" DstPort 3 } } } Block { BlockType SubSystem Name "C_Zwei_R" Ports [] Position [25, 178, 106, 220] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "C_Zwei_R" Location [338, 82, 1270, 961] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Integrator Name "C2R" Ports [1, 1] Position [640, 285, 730, 395] InitialCondition "0.021112482 \n" } Block { BlockType From Name "From" Position [230, 281, 295, 309] CloseFcn "tagdialog Close" GotoTag "alpha_1R" TagVisibility "global" } Block { BlockType From Name "From1" Position [230, 236, 295, 264] CloseFcn "tagdialog Close" GotoTag "C1R" TagVisibility "global" } Block { BlockType From Name "From2" Position [230, 411, 295, 439] CloseFcn "tagdialog Close" GotoTag "delta_2R" TagVisibility "global" } Block { BlockType From Name "From3" Position [230, 366, 295, 394] CloseFcn "tagdialog Close" GotoTag "I2R" TagVisibility "global" } Block { BlockType From Name "From4" Position [20, 546, 85, 574] CloseFcn "tagdialog Close" GotoTag "gamma_2R" TagVisibility "global" } Block { BlockType From Name "From5" Position [25, 446, 95, 474] CloseFcn "tagdialog Close" GotoTag "alpha_2R" TagVisibility "global" } Block { BlockType From Name "From6" Position [25, 496, 95, 524] CloseFcn "tagdialog Close" GotoTag "beta_1R" TagVisibility "global" } Block { BlockType From Name "From7" Position [235, 151, 300, 179] CloseFcn "tagdialog Close" GotoTag "beta_2R" TagVisibility "global" } Block { BlockType From Name "From8" Position [235, 106, 300, 134] CloseFcn "tagdialog Close" GotoTag "C3R" TagVisibility "global" } Block { BlockType Goto Name "Goto" Position [890, 325, 930, 355] GotoTag "C2R" TagVisibility "global" } Block { BlockType Product Name "Product" Ports [2, 1] Position [350, 227, 375, 318] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [350, 357, 375, 448] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [350, 487, 375, 578] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [355, 97, 380, 188] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [4, 1] Position [470, 75, 510, 605] ShowName off Inputs "+++-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [3, 1] Position [135, 436, 165, 584] ShowName off Inputs "+++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Line { SrcBlock "From" SrcPort 1 Points [0, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "From1" SrcPort 1 Points [0, 0] DstBlock "Product" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 Points [0, 0] DstBlock "Product1" DstPort 2 } Line { SrcBlock "From3" SrcPort 1 Points [0, 0] DstBlock "Product1" DstPort 1 } Line { SrcBlock "From5" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Product2" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "C2R" DstPort 1 } Line { SrcBlock "C2R" SrcPort 1 Points [0, 0; 60, 0] Branch { Points [0, 340; -510, 0; 0, -125] DstBlock "Product2" DstPort 2 } Branch { DstBlock "Goto" DstPort 1 } } Line { SrcBlock "From4" SrcPort 1 DstBlock "Sum1" DstPort 3 } Line { SrcBlock "From6" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { SrcBlock "From7" SrcPort 1 DstBlock "Product3" DstPort 2 } Line { SrcBlock "From8" SrcPort 1 DstBlock "Product3" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType SubSystem Name "I_Drei_R" Ports [] Position [190, 263, 271, 305] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "I_Drei_R" Location [202, 82, 1270, 978] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType From Name "From" Position [230, 321, 295, 349] CloseFcn "tagdialog Close" GotoTag "alpha_2R" TagVisibility "global" } Block { BlockType From Name "From1" Position [230, 276, 295, 304] CloseFcn "tagdialog Close" GotoTag "I2R" TagVisibility "global" } Block { BlockType From Name "From2" Position [230, 516, 295, 544] CloseFcn "tagdialog Close" GotoTag "gamma_3R" TagVisibility "global" } Block { BlockType From Name "From3" Position [230, 471, 295, 499] CloseFcn "tagdialog Close" GotoTag "C3R" TagVisibility "global" } Block { BlockType From Name "From4" Position [20, 756, 85, 784] CloseFcn "tagdialog Close" GotoTag "delta_3R" TagVisibility "global" } Block { BlockType From Name "From5" Position [25, 576, 95, 604] CloseFcn "tagdialog Close" GotoTag "alpha_3R" TagVisibility "global" } Block { BlockType From Name "From6" Position [25, 666, 95, 694] CloseFcn "tagdialog Close" GotoTag "beta_2R" TagVisibility "global" } Block { BlockType From Name "From7" Position [235, 126, 300, 154] CloseFcn "tagdialog Close" GotoTag "beta_3R" TagVisibility "global" } Block { BlockType From Name "From8" Position [235, 81, 300, 109] CloseFcn "tagdialog Close" GotoTag "I4R" TagVisibility "global" } Block { BlockType Goto Name "Goto" Position [890, 400, 930, 430] GotoTag "I3R" TagVisibility "global" } Block { BlockType Integrator Name "I3R" Ports [1, 1] Position [640, 360, 730, 470] InitialCondition "0.00028849 \n" } Block { BlockType Product Name "Product" Ports [2, 1] Position [350, 267, 375, 358] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [350, 462, 375, 553] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [350, 657, 375, 748] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [355, 72, 380, 163] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [4, 1] Position [470, 25, 520, 800] ShowName off Inputs "+++-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [3, 1] Position [135, 545, 165, 815] ShowName off Inputs "+++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Line { SrcBlock "From" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 Points [0, 0] DstBlock "Product1" DstPort 2 } Line { SrcBlock "From3" SrcPort 1 Points [0, 0] DstBlock "Product1" DstPort 1 } Line { SrcBlock "From5" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Product2" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "I3R" DstPort 1 } Line { SrcBlock "I3R" SrcPort 1 Points [0, 0; 60, 0] Branch { Points [0, 415; -510, 0; 0, -105] DstBlock "Product2" DstPort 2 } Branch { DstBlock "Goto" DstPort 1 } } Line { SrcBlock "From4" SrcPort 1 Points [0, 0] DstBlock "Sum1" DstPort 3 } Line { SrcBlock "From6" SrcPort 1 Points [0, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { SrcBlock "From7" SrcPort 1 Points [0, 0] DstBlock "Product3" DstPort 2 } Line { SrcBlock "From8" SrcPort 1 Points [0, 0] DstBlock "Product3" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Sum" DstPort 4 } } } Block { BlockType SubSystem Name "I_Fünf_R" Ports [] Position [190, 428, 271, 470] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "I_Fünf_R" Location [202, 82, 1270, 978] Open off ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType From Name "From" Position [230, 156, 295, 184] CloseFcn "tagdialog Close" GotoTag "alpha_4R" TagVisibility "global" } Block { BlockType From Name "From1" Position [230, 111, 295, 139] CloseFcn "tagdialog Close" GotoTag "I4R" TagVisibility "global" } Block { BlockType From Name "From2" Position [235, 416, 300, 444] CloseFcn "tagdialog Close" GotoTag "gamma_5R" TagVisibility "global" } Block { BlockType From Name "From3" Position [235, 371, 300, 399] CloseFcn "tagdialog Close" GotoTag "OR" TagVisibility "global" } Block { BlockType From Name "From5" Position [25, 561, 95, 589] CloseFcn "tagdialog Close" GotoTag "delta_5R" TagVisibility "global" } Block { BlockType From Name "From6" Position [15, 696, 85, 724] CloseFcn "tagdialog Close" GotoTag "beta_4R" TagVisibility "global" } Block { BlockType Goto Name "Goto" Position [890, 395, 930, 425] GotoTag "I5R" TagVisibility "global" } Block { BlockType Integrator Name "I5_R" Ports [1, 1] Position [640, 355, 730, 465] InitialCondition "6.74334E-06 \n" } Block { BlockType Product Name "Product" Ports [2, 1] Position [350, 102, 375, 193] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [355, 362, 380, 453] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [350, 622, 375, 713] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [470, 23, 520, 797] ShowName off Inputs "++-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [135, 507, 165, 778] ShowName off InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Line { SrcBlock "From"