- Author:
- WeiweiAi <wai484@aucklanduni.ac.nz>
- Date:
- 2022-05-16 13:04:54+12:00
- Desc:
- Add a merge script and update accordingly
- Permanent Source URI:
- https://models.fieldml.org/workspace/6bc/rawfile/0f94d0bdf02afd16ebe8651a92628c98334ddb1f/BG/gate_n4_BG.cellml
<?xml version='1.0' encoding='UTF-8'?>
<!-- The BG of the gating process for K channel in HH model: n4-->
<model name="gate_n4_BG" 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_BG.cellml">
<units name="J_per_mol" units_ref="J_per_mol"/>
<units name="fmol" units_ref="fmol"/>
<units name="fmol_per_sec" units_ref="fmol_per_sec"/>
<units name="per_fmol" units_ref="per_fmol"/>
</import>
<import xlink:href="C_BG.cellml">
<component component_ref="C_BG" name="C_S0"/>
</import>
<import xlink:href="C_BG.cellml">
<component component_ref="C_BG" name="C_S1"/>
</import>
<import xlink:href="C_BG.cellml">
<component component_ref="C_BG" name="C_S2"/>
</import>
<import xlink:href="C_BG.cellml">
<component component_ref="C_BG" name="C_S3"/>
</import>
<import xlink:href="C_BG.cellml">
<component component_ref="C_BG" name="C_S4"/>
</import>
<import xlink:href="gate_BG.cellml">
<component component_ref="gate_BG" name="vRe_n1"/>
</import>
<import xlink:href="gate_BG.cellml">
<component component_ref="gate_BG" name="vRe_n2"/>
</import>
<import xlink:href="gate_BG.cellml">
<component component_ref="gate_BG" name="vRe_n3"/>
</import>
<import xlink:href="gate_BG.cellml">
<component component_ref="gate_BG" name="vRe_n4"/>
</import>
<component name="gate_n4_BG">
<!--Parameters -->
<variable name="T" private_interface="out" public_interface="in" units="kelvin"/>
<variable name="q_S0_init" private_interface="out" public_interface="in" units="fmol"/>
<variable name="q_S1_init" private_interface="out" public_interface="in" units="fmol"/>
<variable name="q_S2_init" private_interface="out" public_interface="in" units="fmol"/>
<variable name="q_S3_init" private_interface="out" public_interface="in" units="fmol"/>
<variable name="q_S4_init" private_interface="out" public_interface="in" units="fmol"/>
<variable name="K_S0" private_interface="out" public_interface="in" units="per_fmol"/>
<variable name="K_S1" private_interface="out" public_interface="in" units="per_fmol"/>
<variable name="K_S2" private_interface="out" public_interface="in" units="per_fmol"/>
<variable name="K_S3" private_interface="out" public_interface="in" units="per_fmol"/>
<variable name="K_S4" private_interface="out" public_interface="in" units="per_fmol"/>
<variable name="kappa_n1" private_interface="out" public_interface="in" units="fmol_per_sec"/>
<variable name="kappa_n2" private_interface="out" public_interface="in" units="fmol_per_sec"/>
<variable name="kappa_n3" private_interface="out" public_interface="in" units="fmol_per_sec"/>
<variable name="kappa_n4" private_interface="out" public_interface="in" units="fmol_per_sec"/>
<variable name="z_n_f" private_interface="out" public_interface="in" units="dimensionless"/>
<variable name="z_n_r" private_interface="out" public_interface="in" units="dimensionless"/>
<!--Inputs-->
<variable name="t" private_interface="out" public_interface="in" units="second"/>
<variable name="mu_p" private_interface="out" public_interface="in" units="J_per_mol"/>
<!--Outputs-->
<variable name="A_g_K" private_interface="in" public_interface="out" units="J_per_mol"/>
<variable name="v_n_K" public_interface="out" units="fmol_per_sec"/>
<variable name="q_S0" private_interface="in" public_interface="out" units="fmol"/>
<variable name="q_S1" private_interface="in" public_interface="out" units="fmol"/>
<variable name="q_S2" private_interface="in" public_interface="out" units="fmol"/>
<variable name="q_S3" private_interface="in" public_interface="out" units="fmol"/>
<variable name="q_S4" private_interface="in" public_interface="out" units="fmol"/>
<!--Intermediate variables-->
<variable name="v_n1" private_interface="in" units="fmol_per_sec"/>
<variable name="v_n2" private_interface="in" units="fmol_per_sec"/>
<variable name="v_n3" private_interface="in" units="fmol_per_sec"/>
<variable name="v_n4" private_interface="in" units="fmol_per_sec"/>
<variable name="v_S0" private_interface="out" units="fmol_per_sec"/>
<variable name="v_S1" private_interface="out" units="fmol_per_sec"/>
<variable name="v_S2" private_interface="out" units="fmol_per_sec"/>
<variable name="v_S3" private_interface="out" units="fmol_per_sec"/>
<variable name="v_S4" private_interface="out" units="fmol_per_sec"/>
<variable name="v_n1_K" private_interface="in" units="fmol_per_sec"/>
<variable name="v_n2_K" private_interface="in" units="fmol_per_sec"/>
<variable name="v_n3_K" private_interface="in" units="fmol_per_sec"/>
<variable name="v_n4_K" private_interface="in" units="fmol_per_sec"/>
<!-- Conservation laws-->
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<eq/>
<ci>v_S0</ci>
<apply>
<minus/>
<ci>v_n1</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>v_S1</ci>
<apply>
<minus/>
<ci>v_n1</ci>
<ci>v_n2</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>v_S2</ci>
<apply>
<minus/>
<ci>v_n2</ci>
<ci>v_n3</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>v_S3</ci>
<apply>
<minus/>
<ci>v_n3</ci>
<ci>v_n4</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>v_S4</ci>
<ci>v_n4</ci>
</apply>
<apply>
<eq/>
<ci>v_n_K</ci>
<apply>
<plus/>
<ci>v_n1_K</ci>
<ci>v_n2_K</ci>
<ci>v_n2_K</ci>
<ci>v_n2_K</ci>
</apply>
</apply>
</math>
</component>
<group>
<relationship_ref relationship="encapsulation"/>
<component_ref component="gate_n4_BG">
<component_ref component="C_S0"/>
<component_ref component="C_S1"/>
<component_ref component="C_S2"/>
<component_ref component="C_S3"/>
<component_ref component="C_S4"/>
<component_ref component="vRe_n1"/>
<component_ref component="vRe_n2"/>
<component_ref component="vRe_n3"/>
<component_ref component="vRe_n4"/>
</component_ref>
</group>
<connection>
<map_components component_1="gate_n4_BG" component_2="C_S0"/>
<map_variables variable_1="T" variable_2="T"/>
<map_variables variable_1="t" variable_2="t"/>
<map_variables variable_1="q_S0_init" variable_2="q_init"/>
<map_variables variable_1="q_S0" variable_2="q"/>
<map_variables variable_1="K_S0" variable_2="K"/>
<map_variables variable_1="v_S0" variable_2="v"/>
</connection>
<connection>
<map_components component_1="gate_n4_BG" component_2="C_S1"/>
<map_variables variable_1="T" variable_2="T"/>
<map_variables variable_1="t" variable_2="t"/>
<map_variables variable_1="q_S1_init" variable_2="q_init"/>
<map_variables variable_1="q_S1" variable_2="q"/>
<map_variables variable_1="K_S1" variable_2="K"/>
<map_variables variable_1="v_S1" variable_2="v"/>
</connection>
<connection>
<map_components component_1="gate_n4_BG" component_2="C_S2"/>
<map_variables variable_1="T" variable_2="T"/>
<map_variables variable_1="t" variable_2="t"/>
<map_variables variable_1="q_S2_init" variable_2="q_init"/>
<map_variables variable_1="q_S2" variable_2="q"/>
<map_variables variable_1="K_S2" variable_2="K"/>
<map_variables variable_1="v_S2" variable_2="v"/>
</connection>
<connection>
<map_components component_1="gate_n4_BG" component_2="C_S3"/>
<map_variables variable_1="T" variable_2="T"/>
<map_variables variable_1="t" variable_2="t"/>
<map_variables variable_1="q_S3_init" variable_2="q_init"/>
<map_variables variable_1="q_S3" variable_2="q"/>
<map_variables variable_1="K_S3" variable_2="K"/>
<map_variables variable_1="v_S3" variable_2="v"/>
</connection>
<connection>
<map_components component_1="gate_n4_BG" component_2="C_S4"/>
<map_variables variable_1="T" variable_2="T"/>
<map_variables variable_1="t" variable_2="t"/>
<map_variables variable_1="q_S4_init" variable_2="q_init"/>
<map_variables variable_1="q_S4" variable_2="q"/>
<map_variables variable_1="K_S4" variable_2="K"/>
<map_variables variable_1="v_S4" variable_2="v"/>
<map_variables variable_1="A_g_K" variable_2="mu"/>
</connection>
<connection>
<map_components component_1="gate_n4_BG" component_2="vRe_n1"/>
<map_variables variable_1="T" variable_2="T"/>
<map_variables variable_1="z_n_f" variable_2="z_g_f"/>
<map_variables variable_1="z_n_r" variable_2="z_g_r"/>
<map_variables variable_1="kappa_n1" variable_2="kappa_g"/>
<map_variables variable_1="mu_p" variable_2="mu_p"/>
<map_variables variable_1="v_n1_K" variable_2="v_g_X"/>
<map_variables variable_1="v_n1" variable_2="v_g"/>
</connection>
<connection>
<map_components component_1="gate_n4_BG" component_2="vRe_n2"/>
<map_variables variable_1="T" variable_2="T"/>
<map_variables variable_1="z_n_f" variable_2="z_g_f"/>
<map_variables variable_1="z_n_r" variable_2="z_g_r"/>
<map_variables variable_1="kappa_n2" variable_2="kappa_g"/>
<map_variables variable_1="mu_p" variable_2="mu_p"/>
<map_variables variable_1="v_n2_K" variable_2="v_g_X"/>
<map_variables variable_1="v_n2" variable_2="v_g"/>
</connection>
<connection>
<map_components component_1="gate_n4_BG" component_2="vRe_n3"/>
<map_variables variable_1="T" variable_2="T"/>
<map_variables variable_1="z_n_f" variable_2="z_g_f"/>
<map_variables variable_1="z_n_r" variable_2="z_g_r"/>
<map_variables variable_1="kappa_n3" variable_2="kappa_g"/>
<map_variables variable_1="mu_p" variable_2="mu_p"/>
<map_variables variable_1="v_n3_K" variable_2="v_g_X"/>
<map_variables variable_1="v_n3" variable_2="v_g"/>
</connection>
<connection>
<map_components component_1="gate_n4_BG" component_2="vRe_n4"/>
<map_variables variable_1="T" variable_2="T"/>
<map_variables variable_1="z_n_f" variable_2="z_g_f"/>
<map_variables variable_1="z_n_r" variable_2="z_g_r"/>
<map_variables variable_1="kappa_n4" variable_2="kappa_g"/>
<map_variables variable_1="mu_p" variable_2="mu_p"/>
<map_variables variable_1="v_n4_K" variable_2="v_g_X"/>
<map_variables variable_1="v_n4" variable_2="v_g"/>
</connection>
<connection>
<map_components component_1="C_S0" component_2="vRe_n1"/>
<map_variables variable_1="mu" variable_2="mu_C"/>
</connection>
<connection>
<map_components component_1="C_S1" component_2="vRe_n1"/>
<map_variables variable_1="mu" variable_2="mu_O"/>
</connection>
<connection>
<map_components component_1="C_S1" component_2="vRe_n2"/>
<map_variables variable_1="mu" variable_2="mu_C"/>
</connection>
<connection>
<map_components component_1="C_S2" component_2="vRe_n2"/>
<map_variables variable_1="mu" variable_2="mu_O"/>
</connection>
<connection>
<map_components component_1="C_S2" component_2="vRe_n3"/>
<map_variables variable_1="mu" variable_2="mu_C"/>
</connection>
<connection>
<map_components component_1="C_S3" component_2="vRe_n3"/>
<map_variables variable_1="mu" variable_2="mu_O"/>
</connection>
<connection>
<map_components component_1="C_S3" component_2="vRe_n4"/>
<map_variables variable_1="mu" variable_2="mu_C"/>
</connection>
<connection>
<map_components component_1="C_S4" component_2="vRe_n4"/>
<map_variables variable_1="mu" variable_2="mu_O"/>
</connection>
</model>