Location: BG_crossbridge_TRPN @ a860c209c5fa / BG_crossbridge_TRPN.cellml

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-10 10:02:03+13:00
Desc:
Fixing mapping
Permanent Source URI:
https://models.physiomeproject.org/workspace/7fb/rawfile/a860c209c5fad9caaae22dca3c2492893f2d5a98/BG_crossbridge_TRPN.cellml

<?xml version='1.0' encoding='UTF-8'?>
<!-- mass action kinetics for BUWS transitions (state of crossbridge stroke) combined with CaTRPN binding and unbinding-->
<!-- 2-damper system for zeta (distortion)
 assume dLambda/dt = 0 (as per Land)  ..  meaning no extension-->
<!-- INPUTS: dCaTRPN/dt-->
<model name="individual_crossbridge_TRPN" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:xlink="http://www.w3.org/1999/xlink">
    <import xlink:href="units_and_constants/units_BG.cellml">
        <units name="mM" units_ref="mM"/>
        <units name="fmol" units_ref="fmol"/>
        <units name="per_fmol" units_ref="per_fmol"/>
        <units name="J_per_mol" units_ref="J_per_mol"/>
        <units name="fmol_per_sec" units_ref="fmol_per_sec"/>
        <units name="C_per_mol" units_ref="C_per_mol"/>
        <units name="J_per_C" units_ref="J_per_C"/>
        <units name="microm3" units_ref="microm3"/>
        <units name="fF" units_ref="fF"/>
        <units name="fC" units_ref="fC"/>
        <units name="fA" units_ref="fA"/>
        <units name="per_second" units_ref="per_second"/>
        <units name="millivolt" units_ref="millivolt"/>
        <units name="per_sec" units_ref="per_sec"/>
        <units name="J_per_K_per_mol" units_ref="J_per_K_per_mol"/>
        <units name="fmol_per_L" units_ref="fmol_per_L"/>
        <units name="fmol_per_L_per_sec" units_ref="fmol_per_L_per_sec"/>
        <units name="per_sec_per_fmol_per_L" units_ref="per_sec_per_fmol_per_L"/>
        <units name="uM" units_ref="uM"/>
        <units name="mM_per_sec" units_ref="mM_per_sec"/>
        <units name="uM_per_sec" units_ref="uM_per_sec"/>
        <units name="pL" units_ref="pL"/>
        <units name="m_to_u" units_ref="m_to_u"/>
    </import>
    <import xlink:href="units_and_constants/constants_BG.cellml">
        <component component_ref="constants" name="constants"/>
    </import>
    <units name="mm">
        <unit prefix="milli" units="metre"/>
    </units>
    <units name="mm2">
        <unit exponent="2" units="mm"/>
    </units>
    <units name="N_per_mm2">
        <unit units="newton"/>
        <unit exponent="-1" units="mm2"/>
    </units>
    <units name="mm2_per_N">
        <unit exponent="-1" units="N_per_mm2"/>
    </units>
    <units name="J_per_m">
        <unit units="joule"/>
        <unit exponent="-1" units="metre"/>
    </units>
    <units name="m_per_s">
        <unit units="metre"/>
        <unit exponent="-1" units="second"/>
    </units>
    <units name="Js_per_m2">
        <unit units="joule"/>
        <unit units="second"/>
        <unit exponent="-2" units="metre"/>
    </units>
    <units name="kPa">
        <unit prefix="kilo" units="pascal"/>
    </units>
    <units name="J_per_m_per_kPa">
        <unit units="joule"/>
        <unit exponent="-1" units="metre"/>
        <unit exponent="-1" units="kPa"/>
    </units>
    <units name="k_to_M">
        <unit prefix="mega" units="metre"/>
        <unit exponent="-1" prefix="kilo" units="metre"/>
    </units>
    <component name="environment">
        <variable name="time" public_interface="out" units="second"/>
        <!-- initial values-->
        <variable initial_value="2.57" name="q_TRPN" public_interface="out" units="fmol"/>
        <variable initial_value="6.82e-1" name="q_Cai" public_interface="out" units="fmol"/>
        <variable initial_value="1e-6" name="q_Ca_TRPN" public_interface="out" units="fmol"/>
        <variable initial_value="1" name="q_B" public_interface="out" units="fmol"/>
        <variable initial_value="0" name="q_U" public_interface="out" units="fmol"/>
        <variable initial_value="0" name="q_W" public_interface="out" units="fmol"/>
        <variable initial_value="0" name="q_S" public_interface="out" units="fmol"/>
        <!-- From submodule-->
        <variable name="v_R_TRPNCa" public_interface="in" units="fmol_per_sec"/>
        <variable name="v_R_BU" public_interface="in" units="fmol_per_sec"/>
        <variable name="v_R_UW" public_interface="in" units="fmol_per_sec"/>
        <variable name="v_R_WS" public_interface="in" units="fmol_per_sec"/>
        <variable name="v_R_SU" public_interface="in" units="fmol_per_sec"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>q_Cai</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v_R_TRPNCa</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>q_TRPN</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v_R_TRPNCa</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>q_Ca_TRPN</ci>
                </apply>
                <ci>v_R_TRPNCa</ci>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>q_B</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v_R_BU</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>q_U</ci>
                </apply>
                <apply>
                    <plus/>
                    <apply>
                        <minus/>
                        <ci>v_R_BU</ci>
                        <ci>v_R_UW</ci>
                    </apply>
                    <ci>v_R_SU</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>q_W</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v_R_UW</ci>
                    <ci>v_R_WS</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>q_S</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v_R_WS</ci>
                    <ci>v_R_SU</ci>
                </apply>
            </apply>
        </math>
        <!-- tension-->
        <variable name="T_total" public_interface="in" units="kPa"/>
        <variable name="SL" public_interface="in" units="metre"/>
    </component>
    <component name="crossbridge_TRPN_parameters">
        <variable initial_value="52.0453" name="kappa_R_TRPNCa" public_interface="out" units="fmol_per_sec"/>
        <variable initial_value="2.90875" name="kappa_R_BU" public_interface="out" units="fmol_per_sec"/>
        <variable initial_value="0.332501" name="kappa_R_UW" public_interface="out" units="fmol_per_sec"/>
        <variable initial_value="0.00782356" name="kappa_R_WS" public_interface="out" units="fmol_per_sec"/>
        <variable initial_value="140824" name="kappa_R_SU" public_interface="out" units="fmol_per_sec"/>
        <variable initial_value="1.27424" name="K_TRPN" public_interface="out" units="per_fmol"/>
        <variable initial_value="1.27424" name="K_Cai" public_interface="out" units="per_fmol"/>
        <variable initial_value="0.11171" name="K_Ca_TRPN" public_interface="out" units="per_fmol"/>
        <variable initial_value="6.06164" name="K_B" public_interface="out" units="per_fmol"/>
        <variable initial_value="2.27312" name="K_U" public_interface="out" units="per_fmol"/>
        <variable initial_value="14.8627" name="K_W" public_interface="out" units="per_fmol"/>
        <variable initial_value="3.71567e-06" name="K_S" public_interface="out" units="per_fmol"/>
    </component>
    <component name="crossbridge_TRPN">
        <variable name="time" public_interface="in" units="second"/>
        <variable name="R" public_interface="in" units="J_per_K_per_mol"/>
        <variable name="T" public_interface="in" units="kelvin"/>
        <!-- parameters-->
        <variable name="kappa_R_TRPNCa" public_interface="in" units="fmol_per_sec"/>
        <variable name="kappa_R_BU" public_interface="in" units="fmol_per_sec"/>
        <variable name="kappa_R_UW" public_interface="in" units="fmol_per_sec"/>
        <variable name="kappa_R_WS" public_interface="in" units="fmol_per_sec"/>
        <variable name="kappa_R_SU" public_interface="in" units="fmol_per_sec"/>
        <variable name="K_TRPN" public_interface="in" units="per_fmol"/>
        <variable name="K_Cai" public_interface="in" units="per_fmol"/>
        <variable name="K_Ca_TRPN" public_interface="in" units="per_fmol"/>
        <variable name="K_B" public_interface="in" units="per_fmol"/>
        <variable name="K_U" public_interface="in" units="per_fmol"/>
        <variable name="K_W" public_interface="in" units="per_fmol"/>
        <variable name="K_S" public_interface="in" units="per_fmol"/>
        <variable initial_value="1.1" name="n_Tm" units="dimensionless"/>
        <!-- Input from global environment-->
        <variable name="q_TRPN" public_interface="in" units="fmol"/>
        <variable name="q_Cai" public_interface="in" units="fmol"/>
        <variable name="q_Ca_TRPN" public_interface="in" units="fmol"/>
        <variable name="q_B" public_interface="in" units="fmol"/>
        <variable name="q_U" public_interface="in" units="fmol"/>
        <variable name="q_W" public_interface="in" units="fmol"/>
        <variable name="q_S" public_interface="in" units="fmol"/>
        <!-- Constitutive parameters-->
        <variable name="mu_TRPN" units="J_per_mol"/>
        <variable name="mu_Cai" units="J_per_mol"/>
        <variable name="mu_Ca_TRPN" units="J_per_mol"/>
        <variable name="mu_B" units="J_per_mol"/>
        <variable name="mu_U" units="J_per_mol"/>
        <variable name="mu_W" units="J_per_mol"/>
        <variable name="mu_S" units="J_per_mol"/>
        <variable name="v_R_TRPNCa" public_interface="out" units="fmol_per_sec"/>
        <variable name="v_R_BU" public_interface="out" units="fmol_per_sec"/>
        <variable name="v_R_UW" public_interface="out" units="fmol_per_sec"/>
        <variable name="v_R_WS" public_interface="out" units="fmol_per_sec"/>
        <variable name="v_R_SU" public_interface="out" units="fmol_per_sec"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>mu_TRPN</ci>
                <apply>
                    <times/>
                    <ci>R</ci>
                    <ci>T</ci>
                    <apply>
                        <ln/>
                        <apply>
                            <times/>
                            <ci>K_TRPN</ci>
                            <ci>q_TRPN</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_Cai</ci>
                <apply>
                    <times/>
                    <ci>R</ci>
                    <ci>T</ci>
                    <apply>
                        <ln/>
                        <apply>
                            <times/>
                            <ci>K_Cai</ci>
                            <ci>q_Cai</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_Ca_TRPN</ci>
                <apply>
                    <times/>
                    <ci>R</ci>
                    <ci>T</ci>
                    <apply>
                        <ln/>
                        <apply>
                            <times/>
                            <ci>K_Ca_TRPN</ci>
                            <ci>q_Ca_TRPN</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_B</ci>
                <apply>
                    <times/>
                    <ci>R</ci>
                    <ci>T</ci>
                    <apply>
                        <ln/>
                        <apply>
                            <times/>
                            <ci>K_B</ci>
                            <ci>q_B</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_U</ci>
                <apply>
                    <times/>
                    <ci>R</ci>
                    <ci>T</ci>
                    <apply>
                        <ln/>
                        <apply>
                            <times/>
                            <ci>K_U</ci>
                            <ci>q_U</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_W</ci>
                <apply>
                    <times/>
                    <ci>R</ci>
                    <ci>T</ci>
                    <apply>
                        <ln/>
                        <apply>
                            <times/>
                            <ci>K_W</ci>
                            <ci>q_W</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_S</ci>
                <apply>
                    <times/>
                    <ci>R</ci>
                    <ci>T</ci>
                    <apply>
                        <ln/>
                        <apply>
                            <times/>
                            <ci>K_S</ci>
                            <ci>q_S</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_R_TRPNCa</ci>
                <apply>
                    <times/>
                    <ci>kappa_R_TRPNCa</ci>
                    <apply>
                        <minus/>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <apply>
                                    <plus/>
                                    <ci>mu_Cai</ci>
                                    <ci>mu_TRPN</ci>
                                </apply>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <apply>
                                    <plus/>
                                    <ci>mu_Ca_TRPN</ci>
                                    <ci>mu_tension</ci>
                                </apply>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_R_BU</ci>
                <apply>
                    <times/>
                    <ci>kappa_R_BU</ci>
                    <apply>
                        <minus/>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <apply>
                                    <plus/>
                                    <ci>mu_B</ci>
                                    <apply>
                                        <times/>
                                        <ci>n_Tm</ci>
                                        <ci>mu_Ca_TRPN</ci>
                                    </apply>
                                </apply>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <apply>
                                    <plus/>
                                    <ci>mu_U</ci>
                                    <apply>
                                        <times/>
                                        <ci>n_Tm</ci>
                                        <ci>mu_Ca_TRPN</ci>
                                    </apply>
                                </apply>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_R_UW</ci>
                <apply>
                    <times/>
                    <ci>kappa_R_UW</ci>
                    <apply>
                        <minus/>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <ci>mu_U</ci>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <ci>mu_W</ci>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_R_WS</ci>
                <apply>
                    <times/>
                    <ci>kappa_R_WS</ci>
                    <apply>
                        <minus/>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <ci>mu_W</ci>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <ci>mu_S</ci>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_R_SU</ci>
                <apply>
                    <times/>
                    <ci>kappa_R_SU</ci>
                    <apply>
                        <minus/>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <ci>mu_S</ci>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <ci>mu_U</ci>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                    </apply>
                </apply>
            </apply>
        </math>
        <!-- &#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;
 Tension and transformer for CaTRPN unbinding-->
        <variable name="tension" units="N_per_mm2"/>
        <variable name="mu_tension" units="J_per_mol"/>
        <variable initial_value="-0.0118" name="kf_coeff" units="dimensionless"/>
        <variable name="n" units="J_per_mol"/>
        <variable initial_value="1" name="hh" units="mm2_per_N"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>tension</ci>
                <apply>
                    <times/>
                    <ci>T_total</ci>
                    <cn cellml:units="k_to_M" type="e-notation">1<sep/>3</cn>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>n</ci>
                <apply>
                    <times/>
                    <ci>kf_coeff</ci>
                    <ci>R</ci>
                    <ci>T</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_tension</ci>
                <apply>
                    <times/>
                    <ci>hh</ci>
                    <ci>n</ci>
                    <ci>tension</ci>
                </apply>
            </apply>
        </math>
        <!-- &#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;
 damper system for zeta (distortion) and lambda (extension) variables
 using dimensionalised variables: 
 G = zeta * SL_0
 SL = lambda / SL_0-->
        <variable initial_value="2e-6" name="SL_0" units="metre"/>
        <variable initial_value="1e-6" name="q_MS" units="fmol"/>
        <variable initial_value="0.25" name="r_s" units="dimensionless"/>
        <variable initial_value="0.5" name="r_w" units="dimensionless"/>
        <variable initial_value="25" name="A_eff" units="dimensionless"/>
        <variable initial_value="2.23" name="phi" units="dimensionless"/>
        <variable initial_value="26" name="k_uw" units="per_sec"/>
        <variable initial_value="4" name="k_ws" units="per_sec"/>
        <!-- -->
        <variable initial_value="1e-6" name="G_w" units="metre"/>
        <variable initial_value="1e-6" name="G_s" units="metre"/>
        <variable initial_value="1e-6" name="SL" public_interface="out" units="metre"/>
        <variable name="c_w" units="per_sec"/>
        <variable name="c_s" units="per_sec"/>
        <variable name="A_w" units="dimensionless"/>
        <variable name="A_s" units="dimensionless"/>
        <variable name="mu_1" units="J_per_m"/>
        <variable name="mu_2" units="J_per_m"/>
        <variable name="mu_3" units="J_per_m"/>
        <variable name="mu_4" units="J_per_m"/>
        <variable name="mu_5" units="J_per_m"/>
        <variable name="mu_6" units="J_per_m"/>
        <variable name="v_1" units="m_per_s"/>
        <variable initial_value="0" name="v_2" units="m_per_s"/>
        <variable name="v_4" units="m_per_s"/>
        <variable initial_value="1" name="v_to_mu" units="Js_per_m2"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>A_w</ci>
                <apply>
                    <divide/>
                    <apply>
                        <times/>
                        <ci>A_eff</ci>
                        <ci>r_s</ci>
                    </apply>
                    <apply>
                        <plus/>
                        <apply>
                            <times/>
                            <apply>
                                <minus/>
                                <cn cellml:units="dimensionless">1</cn>
                                <ci>r_s</ci>
                            </apply>
                            <ci>r_w</ci>
                        </apply>
                        <ci>r_s</ci>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>A_s</ci>
                <ci>A_w</ci>
            </apply>
            <apply>
                <eq/>
                <ci>c_w</ci>
                <apply>
                    <divide/>
                    <apply>
                        <times/>
                        <ci>phi</ci>
                        <ci>k_uw</ci>
                        <apply>
                            <minus/>
                            <cn cellml:units="dimensionless">1</cn>
                            <ci>r_w</ci>
                        </apply>
                    </apply>
                    <ci>r_w</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>c_s</ci>
                <apply>
                    <divide/>
                    <apply>
                        <times/>
                        <ci>phi</ci>
                        <ci>k_ws</ci>
                        <apply>
                            <minus/>
                            <cn cellml:units="dimensionless">1</cn>
                            <ci>r_s</ci>
                        </apply>
                        <ci>r_w</ci>
                    </apply>
                    <ci>r_s</ci>
                </apply>
            </apply>
            <!-- -->
            <apply>
                <eq/>
                <ci>v_1</ci>
                <apply>
                    <divide/>
                    <ci>mu_1</ci>
                    <ci>v_to_mu</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_2</ci>
                <apply>
                    <times/>
                    <apply>
                        <minus/>
                        <ci>A_w</ci>
                    </apply>
                    <ci>v_2</ci>
                    <ci>v_to_mu</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_3</ci>
                <apply>
                    <times/>
                    <ci>c_w</ci>
                    <ci>G_w</ci>
                    <ci>v_to_mu</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_4</ci>
                <apply>
                    <divide/>
                    <ci>mu_4</ci>
                    <ci>v_to_mu</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_5</ci>
                <apply>
                    <times/>
                    <apply>
                        <minus/>
                        <ci>A_s</ci>
                    </apply>
                    <ci>v_2</ci>
                    <ci>v_to_mu</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_6</ci>
                <apply>
                    <times/>
                    <ci>c_s</ci>
                    <ci>G_s</ci>
                    <ci>v_to_mu</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>G_w</ci>
                </apply>
                <ci>v_1</ci>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>SL</ci>
                </apply>
                <ci>v_2</ci>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>G_s</ci>
                </apply>
                <ci>v_4</ci>
            </apply>
            <!-- constitutive relations-->
            <apply>
                <eq/>
                <ci>mu_1</ci>
                <apply>
                    <minus/>
                    <apply>
                        <minus/>
                        <ci>mu_2</ci>
                    </apply>
                    <ci>mu_3</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_4</ci>
                <apply>
                    <minus/>
                    <apply>
                        <minus/>
                        <ci>mu_5</ci>
                    </apply>
                    <ci>mu_6</ci>
                </apply>
            </apply>
        </math>
        <!-- &#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;
 Active tension 
 all terms of Eqn 53 are set as potentials
 kPa is a unit of potential ( kPa = kJ/m3 )-->
        <variable name="T_active" units="kPa"/>
        <variable initial_value="40.5" name="T_ref" units="kPa"/>
        <!--        var T_to_mu: J_per_m_per_kPa {init: 1};-->
        <variable name="mu_T_a" units="kPa"/>
        <variable name="mu_T_S" units="kPa"/>
        <variable name="mu_T_W" units="kPa"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>T_active</ci>
                <ci>mu_T_a</ci>
            </apply>
            <apply>
                <eq/>
                <ci>mu_T_S</ci>
                <apply>
                    <times/>
                    <apply>
                        <divide/>
                        <ci>T_ref</ci>
                        <apply>
                            <times/>
                            <ci>SL_0</ci>
                            <ci>q_MS</ci>
                            <ci>r_s</ci>
                        </apply>
                    </apply>
                    <ci>q_S</ci>
                    <apply>
                        <plus/>
                        <ci>G_s</ci>
                        <ci>SL_0</ci>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_T_W</ci>
                <apply>
                    <times/>
                    <apply>
                        <divide/>
                        <ci>T_ref</ci>
                        <apply>
                            <times/>
                            <ci>SL_0</ci>
                            <ci>q_MS</ci>
                            <ci>r_s</ci>
                        </apply>
                    </apply>
                    <ci>q_W</ci>
                    <ci>G_w</ci>
                </apply>
            </apply>
            <!-- constitutive relation-->
            <apply>
                <eq/>
                <ci>mu_T_a</ci>
                <apply>
                    <plus/>
                    <ci>mu_T_S</ci>
                    <ci>mu_T_W</ci>
                </apply>
            </apply>
        </math>
        <!-- &#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;
 Passive viscoelastic tension-->
        <variable initial_value="0" name="Cdd" units="metre"/>
        <variable name="eta" units="per_sec"/>
        <!--        var eta_l: per_sec {init: 200e3};
        var eta_s: per_sec {init: 20e3};-->
        <variable initial_value="200e3" name="eta_l" units="per_sec"/>
        <variable initial_value="200e3" name="eta_s" units="per_sec"/>
        <variable initial_value="7" name="k" units="dimensionless"/>
        <variable initial_value="2.1" name="alpha" units="kPa"/>
        <variable name="v_Cdd" units="m_per_s"/>
        <variable name="mu_d" units="J_per_m"/>
        <variable name="mu_k" units="J_per_m"/>
        <variable name="mu_f" units="J_per_m"/>
        <variable name="mu_T_passive" units="kPa"/>
        <variable name="T_passive" units="kPa"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>eta</ci>
                <piecewise>
                    <piece>
                        <ci>eta_l</ci>
                        <apply>
                            <gt/>
                            <ci>mu_d</ci>
                            <cn cellml:units="J_per_m">0</cn>
                        </apply>
                    </piece>
                    <otherwise>
                        <ci>eta_s</ci>
                    </otherwise>
                </piecewise>
            </apply>
            <!--        ode(Cdd, time) = mu_d/v_to_mu;-->
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>Cdd</ci>
                </apply>
                <ci>v_Cdd</ci>
            </apply>
            <apply>
                <eq/>
                <ci>v_Cdd</ci>
                <apply>
                    <divide/>
                    <ci>mu_d</ci>
                    <ci>v_to_mu</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_k</ci>
                <apply>
                    <times/>
                    <apply>
                        <divide/>
                        <ci>k</ci>
                        <ci>eta</ci>
                    </apply>
                    <ci>Cdd</ci>
                    <ci>v_to_mu</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_f</ci>
                <apply>
                    <times/>
                    <apply>
                        <divide/>
                        <ci>k</ci>
                        <ci>eta</ci>
                    </apply>
                    <apply>
                        <minus/>
                        <ci>SL</ci>
                        <ci>SL_0</ci>
                    </apply>
                    <ci>v_to_mu</ci>
                </apply>
            </apply>
            <!-- constitutive relation-->
            <apply>
                <eq/>
                <ci>mu_d</ci>
                <apply>
                    <plus/>
                    <apply>
                        <minus/>
                        <ci>mu_k</ci>
                    </apply>
                    <ci>mu_f</ci>
                </apply>
            </apply>
            <!-- passive tension calculation-->
            <apply>
                <eq/>
                <ci>mu_T_passive</ci>
                <apply>
                    <times/>
                    <apply>
                        <divide/>
                        <apply>
                            <times/>
                            <ci>alpha</ci>
                            <ci>eta</ci>
                        </apply>
                        <ci>SL_0</ci>
                    </apply>
                    <ci>v_Cdd</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>T_passive</ci>
                <ci>mu_T_passive</ci>
            </apply>
        </math>
        <!-- &#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;
 Total tension-->
        <variable name="T_total" public_interface="out" units="kPa"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>T_total</ci>
                <apply>
                    <plus/>
                    <ci>T_active</ci>
                    <ci>T_passive</ci>
                </apply>
            </apply>
        </math>
    </component>
    <connection>
        <map_components component_1="environment" component_2="crossbridge_TRPN"/>
        <map_variables variable_1="time" variable_2="time"/>
        <map_variables variable_1="q_TRPN" variable_2="q_TRPN"/>
        <map_variables variable_1="q_Cai" variable_2="q_Cai"/>
        <map_variables variable_1="q_Ca_TRPN" variable_2="q_Ca_TRPN"/>
        <map_variables variable_1="q_B" variable_2="q_B"/>
        <map_variables variable_1="q_U" variable_2="q_U"/>
        <map_variables variable_1="q_W" variable_2="q_W"/>
        <map_variables variable_1="q_S" variable_2="q_S"/>
        <map_variables variable_1="v_R_TRPNCa" variable_2="v_R_TRPNCa"/>
        <map_variables variable_1="v_R_BU" variable_2="v_R_BU"/>
        <map_variables variable_1="v_R_UW" variable_2="v_R_UW"/>
        <map_variables variable_1="v_R_WS" variable_2="v_R_WS"/>
        <map_variables variable_1="v_R_SU" variable_2="v_R_SU"/>
        <map_variables variable_1="T_total" variable_2="T_total"/>
        <map_variables variable_1="SL" variable_2="SL"/>
    </connection>
    <connection>
        <map_components component_1="crossbridge_TRPN" component_2="crossbridge_TRPN_parameters"/>
        <map_variables variable_1="kappa_R_TRPNCa" variable_2="kappa_R_TRPNCa"/>
        <map_variables variable_1="kappa_R_BU" variable_2="kappa_R_BU"/>
        <map_variables variable_1="kappa_R_UW" variable_2="kappa_R_UW"/>
        <map_variables variable_1="kappa_R_WS" variable_2="kappa_R_WS"/>
        <map_variables variable_1="kappa_R_SU" variable_2="kappa_R_SU"/>
        <map_variables variable_1="K_TRPN" variable_2="K_TRPN"/>
        <map_variables variable_1="K_Cai" variable_2="K_Cai"/>
        <map_variables variable_1="K_Ca_TRPN" variable_2="K_Ca_TRPN"/>
        <map_variables variable_1="K_B" variable_2="K_B"/>
        <map_variables variable_1="K_U" variable_2="K_U"/>
        <map_variables variable_1="K_W" variable_2="K_W"/>
        <map_variables variable_1="K_S" variable_2="K_S"/>
    </connection>
    <connection>
        <map_components component_1="constants" component_2="crossbridge_TRPN"/>
        <map_variables variable_1="R" variable_2="R"/>
        <map_variables variable_1="T" variable_2="T"/>
    </connection>
</model>