Model Mathematics

Component: environment

Component: wi

ddtimewi=1LpNai+Ki+Cli+HCO3i+Xiwi-Nao+Ko+Clo+HCO3o

Component: wo

wo=w_tot-wi

Component: N_Nai

ddtimeN_Nai=dN_Nai_dt dN_Nai_dt=theta_NKCC1J_NKCC1+theta_NBCJ_NBC-1e10gNaFVm-ENa+3J_NaKATPase

Component: N_Ki

ddtimeN_Ki=dN_Ki_dt dN_Ki_dt=theta_NKCC1J_NKCC1+theta_KCC1J_KCC1+1e102J_NaKATPase-1e10gKFVm-EK

Component: N_HCO3i

ddtimeN_HCO3i=dN_HCO3i_dt dN_HCO3i_dt=2theta_NBCJ_NBC

Component: N_Cli

ddtimeN_Cli=dN_Ki_dt+dN_Nai_dt+dN_HCO3i_dt

Component: N_Nao

ddtimeN_Nao=1e10gNaFVm-ENa+3J_NaKATPase-theta_NKCC1J_NKCC1+theta_NBCJ_NBC+kcy

Component: N_Ko

ddtimeN_Ko=1e10gKFVm-EK+kcy-theta_NKCC1J_NKCC1+theta_KCC1J_KCC1+1e102J_NaKATPase

Component: N_HCO3o

ddtimeN_HCO3o=-2theta_NBCJ_NBC

Component: N_Clo

N_Clo=N_Nao+N_Ko-N_HCO3o

Component: Nernst_potentials

ENa=RT1FlnNaoNai EK=RT1FlnKoKi ECl=RT-1FlnCloCli

Component: J_KCC1

J_KCC1=1e10gKCC1ftFRTFlnKoCloKiCli ft=1iftime10time<200otherwise

Component: J_NBC

J_NBC=1e10gNBCFVm-ENBC

Component: J_NKCC1

J_NKCC1=1e10gNKCC1ftFRTFlnNaoNaiKoKiCloCli2 ft=1iftime10time<200otherwise

Component: ENBC

ENBC=RTzNBCFlnNaoNaiHCO3o2HCO3i2

Component: membrane

Vm=gNaENa+gKEK+gClECl+theta_NBCgNBCENBC-J_NaKATPaseFgNa+gK+gCl+theta_NBCgNBC

Component: J_NaKATPase

J_NaKATPase=PmaxNai1.5Nai1.5+K_Nai1.5KoKo+K_Ko

Component: I_K

I_K=1e102J_NaKATPaseFelementary_chargenA-1e10gKelementary_chargenAVm-EK

Component: I_Cl

I_Cl=1e10gClelementary_chargenAVm-ECl

Component: I_Na

I_Na=J_NBC-1e10gNaelementary_chargenAVm-ENa+1e103J_NaKATPaseFelementary_chargenA

Component: model_parameters

y=gamma_alpha_betagamma_alphagamma_beta1-time-t0deltaTbeta-1time-t0deltaTalpha-1iftimet0timet1-1iftime>t1time<t20otherwise deltaT=t1-t0 gamma_alpha_beta=alpha+beta-1! gamma_alpha=alpha-1! gamma_beta=beta-1! Ki=N_KiwiifN_Kiwi>01e-180otherwise Ko=N_KowoifN_Kowo>01e-180otherwise Nai=N_NaiwiifN_Naiwi>01e-180otherwise Nao=N_NaowoifN_Naowo>01e-180otherwise Cli=N_CliwiifN_Cliwi>01e-180otherwise Clo=N_ClowoifN_Clowo>01e-180otherwise HCO3i=N_HCO3iwiifN_HCO3iwi>01e-180otherwise HCO3o=N_HCO3owoifN_HCO3owo>01e-180otherwise