Model Mathematics

Component: gas_exchange

x_m=log10⁡Pin_m-k1_m+k2_m⁢pH_m-7.4k3_m x_m1=10x_m S_m=100⁢x_m11+x_m1 x_f=log10⁡Pin_f-k1_f+k2_f⁢pH_f-7.4k3_f x_f1=10x_f S_f=100⁢x_f11+x_f1 O2_m=1.34⁢Hb_m100k4_m⁢Pin_m-1k3_m+1+a⁢Pin_m O2_f=1.34⁢Hb_f100k4_f⁢Pin_f-1k3_f+1+a⁢Pin_f x1_m=ⅇ-1⁢c2⁢100-96ifS_m>96ⅇ-1⁢c2⁢100-S_motherwise theta_96_m=c1⁢1-x1_m+c3⁢S_m-c4⁢1.34100⁢Hb_m0.2⁢ks_mkh theta_m=theta_96_m-theta_96_m⁢96-S_m-4ifS_m>96c1⁢1-x1_m+c3⁢S_m-c4⁢1.34100⁢Hb_m0.2⁢ks_mkhotherwise x1_f=ⅇ-1⁢c2⁢100-96ifS_f>96ⅇ-1⁢c2⁢100-S_fotherwise theta_96_f=c1⁢1-x1_f+c3⁢S_f-c4⁢1.34100⁢Hb_f0.2⁢ks_fkh theta_f=theta_96_f-theta_96_f⁢96-S_f-4ifS_f>96c1⁢1-x1_f+c3⁢S_f-c4⁢1.34100⁢Hb_f0.2⁢ks_fkhotherwise R_m=1theta_m⁢V_m R_f=1theta_f⁢V_f R_p=1Dm R_t=R_m+R_f+R_p Dp=1R_t60 dodt_m=B⁢-1⁢Dp⁢Pin_m-Pin_fV_m dodt_f=-1B⁢V_mV_f⁢dodt_m tt=V_fQ_f60 dt=tt100 O2_mnew=O2_m+dodt_m⁢dt2 O2_fnew=O2_f+dodt_f⁢dt2 f_m=1.34⁢Hb_m100k4_m⁢Pin_m-1k3_m+1+a⁢Pin_m-O2_mnew f_f=1.34⁢Hb_f100k4_f⁢Pin_f-1k3_f+1+a⁢Pin_f-O2_fnew upper_m=1.34⁢Hb_m⁢k4_m⁢Pin_m-1k3_m-1 lower_m=100⁢k3_m⁢k4_m⁢Pin_m-1k3_m+12 dfdP_m=upper_mlower_m+a upper_f=1.34⁢Hb_f⁢k4_f⁢Pin_f-1k3_f-1 lower_f=100⁢k3_f⁢k4_f⁢Pin_f-1k3_f+12 dfdP_f=upper_flower_f+a Pend1_m=Pin_m-f_mdfdP_m Pend1_f=Pin_f-f_fdfdP_f x_m_sec=log10⁡Pend1_m-k1_m+k2_m⁢pH_m-7.4k3_m x_m1_sec=10x_m_sec S_m_sec=100⁢x_m1_sec1+x_m1_sec x_f_sec=log10⁡Pend1_f-k1_f+k2_f⁢pH_f-7.4k3_f x_f1_sec=10x_f_sec S_f_sec=100⁢x_f1_sec1+x_f1_sec x1_m_sec=ⅇ-1⁢c2⁢100-96ifS_m_sec>96ⅇ-1⁢c2⁢100-S_m_secotherwise theta_96_m_sec=c1⁢1-x1_m_sec+c3⁢S_m_sec-c4⁢1.34100⁢Hb_m0.2⁢ks_mkh theta_m_sec=theta_96_m_sec-theta_96_m_sec⁢96-S_m_sec-4ifS_m_sec>96c1⁢1-x1_m_sec+c3⁢S_m_sec-c4⁢1.34100⁢Hb_m0.2⁢ks_mkhotherwise x1_f_sec=ⅇ-1⁢c2⁢100-96ifS_f_sec>96ⅇ-1⁢c2⁢100-S_f_secotherwise theta_96_f_sec=c1⁢1-x1_f_sec+c3⁢S_f_sec-c4⁢1.34100⁢Hb_f0.2⁢ks_fkh theta_f_sec=theta_96_f_sec-theta_96_f_sec⁢96-S_f_sec-4ifS_f_sec>96c1⁢1-x1_f_sec+c3⁢S_f_sec-c4⁢1.34100⁢Hb_f0.2⁢ks_fkhotherwise R_m_sec=1theta_m_sec⁢V_m R_f_sec=1theta_f_sec⁢V_f R_p_sec=1Dm R_t_sec=R_m_sec+R_f_sec+R_p_sec Dp_sec=1R_t_sec60 dodt_m_sec=B⁢-1⁢Dp_sec⁢Pend1_m-Pend1_fV_m dodt_f_sec=-1B⁢V_mV_f⁢dodt_m_sec O2_mnew_sec=O2_m+dodt_m_sec⁢dt2 O2_fnew_sec=O2_f+dodt_f_sec⁢dt2 f_m_sec=1.34⁢Hb_m100k4_m⁢Pend1_m-1k3_m+1+a⁢Pend1_m-O2_mnew_sec f_f_sec=1.34⁢Hb_f100k4_f⁢Pend1_f-1k3_f+1+a⁢Pend1_f-O2_fnew_sec upper_m_sec=1.34⁢Hb_m⁢k4_m⁢Pend1_m-1k3_m-1 lower_m_sec=100⁢k3_m⁢k4_m⁢Pend1_m-1k3_m+12 dfdP_m_sec=upper_m_seclower_m_sec+a upper_f_sec=1.34⁢Hb_f⁢k4_f⁢Pend1_f-1k3_f-1 lower_f_sec=100⁢k3_f⁢k4_f⁢Pend1_f-1k3_f+12 dfdP_f_sec=upper_f_seclower_f_sec+a Pend2_m=Pend1_m-f_m_secdfdP_m_sec Pend2_f=Pend1_f-f_f_secdfdP_f_sec x_m_trd=log10⁡Pend2_m-k1_m+k2_m⁢pH_m-7.4k3_m x_m1_trd=10x_m_trd S_m_trd=100⁢x_m1_trd1+x_m1_trd x_f_trd=log10⁡Pend2_f-k1_f+k2_f⁢pH_f-7.4k3_f x_f1_trd=10x_f_trd S_f_trd=100⁢x_f1_trd1+x_f1_trd x1_m_trd=ⅇ-1⁢c2⁢100-96ifS_m_trd>96ⅇ-1⁢c2⁢100-S_m_trdotherwise theta_96_m_trd=c1⁢1-x1_m_trd+c3⁢S_m_trd-c4⁢1.34100⁢Hb_m0.2⁢ks_mkh theta_m_trd=theta_96_m_trd-theta_96_m_trd⁢96-S_m_trd-4ifS_m_trd>96c1⁢1-x1_m_trd+c3⁢S_m_trd-c4⁢1.34100⁢Hb_m0.2⁢ks_mkhotherwise x1_f_trd=ⅇ-1⁢c2⁢100-96ifS_f_trd>96ⅇ-1⁢c2⁢100-S_f_trdotherwise theta_96_f_trd=c1⁢1-x1_f_trd+c3⁢S_f_trd-c4⁢1.34100⁢Hb_f0.2⁢ks_fkh theta_f_trd=theta_96_f_trd-theta_96_f_trd⁢96-S_f_trd-4ifS_f_trd>96c1⁢1-x1_f_trd+c3⁢S_f_trd-c4⁢1.34100⁢Hb_f0.2⁢ks_fkhotherwise R_m_trd=1theta_m_trd⁢V_m R_f_trd=1theta_f_trd⁢V_f R_p_trd=1Dm R_t_trd=R_m_trd+R_f_trd+R_p_trd Dp_trd=1R_t_trd60 dodt_m_trd=B⁢-1⁢Dp_trd⁢Pend2_m-Pend2_fV_m dodt_f_trd=-1B⁢V_mV_f⁢dodt_m_trd O2_mnew_trd=O2_m+dodt_m_trd⁢dt O2_fnew_trd=O2_f+dodt_f_trd⁢dt f_m_trd=1.34⁢Hb_m100k4_m⁢Pend2_m-1k3_m+1+a⁢Pend2_m-O2_mnew_trd f_f_trd=1.34⁢Hb_f100k4_f⁢Pend2_f-1k3_f+1+a⁢Pend2_f-O2_fnew_trd upper_m_trd=1.34⁢Hb_m⁢k4_m⁢Pend2_m-1k3_m-1 lower_m_trd=100⁢k3_m⁢k4_m⁢Pend2_m-1k3_m+12 dfdP_m_trd=upper_m_trdlower_m_trd+a upper_f_trd=1.34⁢Hb_f⁢k4_f⁢Pend2_f-1k3_f-1 lower_f_trd=100⁢k3_f⁢k4_f⁢Pend2_f-1k3_f+12 dfdP_f_trd=upper_f_trdlower_f_trd+a Pend3_m=Pend2_m-f_m_trddfdP_m_trd Pend3_f=Pend2_f-f_f_trddfdP_f_trd x_m_for=log10⁡Pend3_m-k1_m+k2_m⁢pH_m-7.4k3_m x_m1_for=10x_m_for S_m_for=100⁢x_m1_for1+x_m1_for x_f_for=log10⁡Pend3_f-k1_f+k2_f⁢pH_f-7.4k3_f x_f1_for=10x_f_for S_f_for=100⁢x_f1_for1+x_f1_for x1_m_for=ⅇ-1⁢c2⁢100-96ifS_m_for>96ⅇ-1⁢c2⁢100-S_m_forotherwise theta_96_m_for=c1⁢1-x1_m_for+c3⁢S_m_for-c4⁢1.34100⁢Hb_m0.2⁢ks_mkh theta_m_for=theta_96_m_for-theta_96_m_for⁢96-S_m_for-4ifS_m_for>96c1⁢1-x1_m_for+c3⁢S_m_for-c4⁢1.34100⁢Hb_m0.2⁢ks_mkhotherwise x1_f_for=ⅇ-1⁢c2⁢100-96ifS_f_for>96ⅇ-1⁢c2⁢100-S_f_forotherwise theta_96_f_for=c1⁢1-x1_f_for+c3⁢S_f_for-c4⁢1.34100⁢Hb_f0.2⁢ks_fkh theta_f_for=theta_96_f_for-theta_96_f_for⁢96-S_f_for-4ifS_f_for>96c1⁢1-x1_f_for+c3⁢S_f_for-c4⁢1.34100⁢Hb_f0.2⁢ks_fkhotherwise R_m_for=1theta_m_for⁢V_m R_f_for=1theta_f_for⁢V_f R_p_for=1Dm R_t_for=R_m_for+R_f_for+R_p_for Dp_for=1R_t_for60 dodt_m_for=B⁢-1⁢Dp_for⁢Pend3_m-Pend3_fV_m dodt_f_for=-1B⁢V_mV_f⁢dodt_m_for O2_mnew_final=O2_m+16⁢dodt_m+2⁢dodt_m_sec+2⁢dodt_m_trd+dodt_m_for⁢dt O2_fnew_final=O2_f+16⁢dodt_f+2⁢dodt_f_sec+2⁢dodt_f_trd+dodt_f_for⁢dt f_m_final=1.34⁢Hb_m100k4_m⁢Pend3_m-1k3_m+1+a⁢Pend3_m-O2_mnew_final f_f_final=1.34⁢Hb_f100k4_f⁢Pend3_f-1k3_f+1+a⁢Pend3_f-O2_fnew_final upper_m_final=1.34⁢Hb_m⁢k4_m⁢Pend3_m-1k3_m-1 lower_m_final=100⁢k3_m⁢k4_m⁢Pend3_m-1k3_m+12 dfdP_m_final=upper_m_finallower_m_final+a upper_f_final=1.34⁢Hb_f⁢k4_f⁢Pend3_f-1k3_f-1 lower_f_final=100⁢k3_f⁢k4_f⁢Pend3_f-1k3_f+12 dfdP_f_final=upper_f_finallower_f_final+a Pfinal_m=Pend3_m-f_m_finaldfdP_m_final Pfinal_f=Pend3_f-f_f_finaldfdP_f_final ddtPin_m=Pfinal_m-Pin_mdt ddtPin_f=Pfinal_f-Pin_fdt