- Author:
- aram148 <42922407+aram148@users.noreply.github.com>
- Date:
- 2022-07-14 11:47:51+12:00
- Desc:
- initial commit
- Permanent Source URI:
- https://models.physiomeproject.org/workspace/8c0/rawfile/1d6f7b0031bf00674bc45d143faea6f503386a55/acid_base.cellml
<?xml version='1.0' encoding='UTF-8'?>
<model name="acid_base" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#">
<units name="per_mol">
<unit exponent="-1" units="mole"/>
</units>
<units name="per_s">
<unit exponent="-1" units="second"/>
</units>
<units name="mol_per_s">
<unit units="mole"/>
<unit exponent="-1" units="second"/>
</units>
<units name="J_per_C">
<unit units="joule"/>
<unit exponent="-1" units="coulomb"/>
</units>
<units name="per_m">
<unit exponent="-1" units="meter"/>
</units>
<component name="main">
<variable initial_value="0" name="t" units="second"/>
<!-- State variables-->
<variable initial_value="1" name="q1" units="mole"/>
<variable initial_value="0" name="q2" units="mole"/>
<variable initial_value="1" name="q3" units="mole"/>
<variable initial_value="0" name="q4" units="mole"/>
<variable initial_value="0" name="q5" units="mole"/>
<variable initial_value="1" name="q6" units="mole"/>
<variable initial_value="0" name="q7" units="mole"/>
<variable initial_value="1" name="q8" units="mole"/>
<variable initial_value="1" name="q9" units="mole"/>
<variable initial_value="0" name="q10" units="mole"/>
<variable name="v1" units="mol_per_s"/>
<variable name="v2" units="mol_per_s"/>
<variable name="v3" units="mol_per_s"/>
<variable name="v4" units="mol_per_s"/>
<variable name="v5" units="mol_per_s"/>
<variable name="v6" units="mol_per_s"/>
<variable name="v7" units="mol_per_s"/>
<!-- Constitutive parameters-->
<variable initial_value="20" name="K_q1" units="per_mol"/>
<variable initial_value="20" name="K_q2" units="per_mol"/>
<variable initial_value="20" name="K_q3" units="per_mol"/>
<variable initial_value="20" name="K_q4" units="per_mol"/>
<variable initial_value="20" name="K_q5" units="per_mol"/>
<variable initial_value="20" name="K_q6" units="per_mol"/>
<variable initial_value="20" name="K_q7" units="per_mol"/>
<variable initial_value="20" name="K_q8" units="per_mol"/>
<variable initial_value="20" name="K_q9" units="per_mol"/>
<variable initial_value="20" name="K_q10" units="per_mol"/>
<variable initial_value="1" name="K_v1" units="per_s"/>
<variable initial_value="1" name="K_v2" units="per_s"/>
<variable initial_value="1" name="K_v3" units="per_s"/>
<variable initial_value="1" name="K_v4" units="per_s"/>
<variable initial_value="1" name="K_v5" units="per_s"/>
<variable initial_value="1" name="K_v6" units="mol_per_s"/>
<variable initial_value="1" name="K_v7" units="mol_per_s"/>
<!-- Membrane parameters-->
<variable initial_value="0.025" name="RTF" units="J_per_C"/>
<variable initial_value="-0.060" name="u1" units="J_per_C"/>
<variable name="e1" units="dimensionless"/>
<variable initial_value="0.01" name="Rho1" units="per_m"/>
<variable initial_value="0.01" name="Rho2" units="per_m"/>
<!-- Conservation laws-->
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q1</ci>
</apply>
<apply>
<times/>
<ci>Rho2</ci>
<ci>v1</ci>
</apply>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q2</ci>
</apply>
<apply>
<minus/>
<apply>
<plus/>
<ci>v6</ci>
<ci>v7</ci>
</apply>
<apply>
<times/>
<ci>Rho1</ci>
<ci>v1</ci>
</apply>
</apply>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q3</ci>
</apply>
<apply>
<times/>
<apply>
<minus/>
<ci>Rho2</ci>
</apply>
<ci>v2</ci>
</apply>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q4</ci>
</apply>
<apply>
<minus/>
<apply>
<times/>
<ci>Rho1</ci>
<ci>v2</ci>
</apply>
<ci>v6</ci>
</apply>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q5</ci>
</apply>
<apply>
<minus/>
<ci>v7</ci>
<apply>
<times/>
<ci>Rho1</ci>
<ci>v3</ci>
</apply>
</apply>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q6</ci>
</apply>
<apply>
<times/>
<ci>Rho2</ci>
<ci>v3</ci>
</apply>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q7</ci>
</apply>
<apply>
<minus/>
<ci>v6</ci>
<apply>
<times/>
<ci>Rho1</ci>
<ci>v4</ci>
</apply>
</apply>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q8</ci>
</apply>
<apply>
<times/>
<ci>Rho2</ci>
<ci>v4</ci>
</apply>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q9</ci>
</apply>
<apply>
<times/>
<apply>
<minus/>
<ci>Rho2</ci>
</apply>
<ci>v5</ci>
</apply>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q10</ci>
</apply>
<apply>
<minus/>
<apply>
<times/>
<ci>Rho1</ci>
<ci>v5</ci>
</apply>
<ci>v7</ci>
</apply>
</apply>
<!-- Constitutive relations-->
<apply>
<eq/>
<ci>v1</ci>
<apply>
<divide/>
<apply>
<times/>
<ci>K_v1</ci>
<ci>e1</ci>
<apply>
<minus/>
<ci>q1</ci>
<apply>
<times/>
<ci>q2</ci>
<apply>
<exp/>
<apply>
<minus/>
<ci>e1</ci>
</apply>
</apply>
</apply>
</apply>
</apply>
<apply>
<minus/>
<cn cellml:units="dimensionless">1</cn>
<apply>
<exp/>
<apply>
<minus/>
<ci>e1</ci>
</apply>
</apply>
</apply>
</apply>
</apply>
<apply>
<eq/>
<ci>v2</ci>
<apply>
<times/>
<ci>K_v2</ci>
<apply>
<minus/>
<ci>q3</ci>
<ci>q4</ci>
</apply>
</apply>
</apply>
<apply>
<eq/>
<ci>v3</ci>
<apply>
<times/>
<ci>K_v3</ci>
<apply>
<minus/>
<ci>q5</ci>
<ci>q6</ci>
</apply>
</apply>
</apply>
<apply>
<eq/>
<ci>v4</ci>
<apply>
<divide/>
<apply>
<times/>
<ci>K_v4</ci>
<ci>e1</ci>
<apply>
<minus/>
<ci>q7</ci>
<apply>
<times/>
<ci>q8</ci>
<apply>
<exp/>
<apply>
<minus/>
<ci>e1</ci>
</apply>
</apply>
</apply>
</apply>
</apply>
<apply>
<minus/>
<cn cellml:units="dimensionless">1</cn>
<apply>
<exp/>
<apply>
<minus/>
<ci>e1</ci>
</apply>
</apply>
</apply>
</apply>
</apply>
<apply>
<eq/>
<ci>v5</ci>
<apply>
<divide/>
<apply>
<times/>
<ci>K_v5</ci>
<ci>e1</ci>
<apply>
<minus/>
<ci>q9</ci>
<apply>
<times/>
<ci>q10</ci>
<apply>
<exp/>
<apply>
<minus/>
<ci>e1</ci>
</apply>
</apply>
</apply>
</apply>
</apply>
<apply>
<minus/>
<cn cellml:units="dimensionless">1</cn>
<apply>
<exp/>
<apply>
<minus/>
<ci>e1</ci>
</apply>
</apply>
</apply>
</apply>
</apply>
<apply>
<eq/>
<ci>v6</ci>
<apply>
<times/>
<ci>K_v6</ci>
<apply>
<minus/>
<apply>
<times/>
<ci>K_q2</ci>
<ci>q2</ci>
<ci>K_q7</ci>
<ci>q7</ci>
</apply>
<apply>
<times/>
<ci>K_q4</ci>
<ci>q4</ci>
</apply>
</apply>
</apply>
</apply>
<apply>
<eq/>
<ci>v7</ci>
<apply>
<times/>
<ci>K_v7</ci>
<apply>
<minus/>
<apply>
<times/>
<ci>K_q2</ci>
<ci>q2</ci>
<ci>K_q5</ci>
<ci>q5</ci>
</apply>
<apply>
<times/>
<ci>K_q10</ci>
<ci>q10</ci>
</apply>
</apply>
</apply>
</apply>
<!-- Membrane potential-->
<apply>
<eq/>
<ci>e1</ci>
<apply>
<divide/>
<ci>u1</ci>
<ci>RTF</ci>
</apply>
</apply>
</math>
</component>
</model>