Location: Cooling, Hunter, Crampin, 2009 @ 00be32aed712 / calcium_ShenProtocol.cellml

Author:
Mike Cooling <m.cooling@auckland.ac.nz>
Date:
2010-06-02 13:32:24+12:00
Desc:
Removed the sub-folder structure and pulling all three models into one folder, to avoid UI issues with the Repository.
Permanent Source URI:
http://models.cellml.org/workspace/cooling_hunter_crampin_2009/rawfile/00be32aed712c03ef96e6cd04f55cc5d219406c9/calcium_ShenProtocol.cellml

<?xml version="1.0" encoding="iso-8859-1"?>
<model
    name="calcium"
    cmeta:id="calcium"
    xmlns="http://www.cellml.org/cellml/1.1#"
    xmlns:cellml="http://www.cellml.org/cellml/1.1#"
    xmlns:cmeta="http://www.cellml.org/metadata/1.0#">
    
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:cmeta="http://www.cellml.org/metadata/1.0#"
    xmlns:bqs="http://www.cellml.org/bqs/1.0#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#">
    <rdf:Description rdf:about="#calcium">
        <dc:creator rdf:parseType="Resource">
            <vCard:N rdf:parseType="Resource">
                <vCard:Family>Cooling</vCard:Family>
                <vCard:Given>Michael</vCard:Given>
            </vCard:N>
            <vCard:EMAIL rdf:parseType="Resource">
                <rdf:value>m.cooling@auckland.ac.nz</rdf:value>
                <rdf:type rdf:resource="http://imc.org/vCard/3.0#internet" />
            </vCard:EMAIL>
        </dc:creator>

        <dc:title>Cooling's calcium module for the Shen-derived protocol</dc:title>
    </rdf:Description>
</rdf:RDF> 
<!--
*******************************************************
***         U   N   I   T   S                       ***
*******************************************************
-->
   <units name="s">
      <unit units="second"/>
   </units>
   
   <units xmlns="http://www.cellml.org/cellml/1.0#" name="nM">
         <unit units="mole" prefix="nano"/>
         <unit units="liter" exponent="-1"/>
      </units>
      <units xmlns="http://www.cellml.org/cellml/1.0#" name="per_s">
         <unit units="s" exponent="-1"/>
      </units>
      <units xmlns="http://www.cellml.org/cellml/1.0#" name="nM_per_s">
         <unit units="nM"/>
         <unit units="s" exponent="-1"/>
      </units>
<!--
*********************************************************
***       C   O   M   P   O   N   E   N   T   S       ***
*********************************************************
-->
 <component name="calcium">
             <variable name="t"   units="s" public_interface="in"/>
             <variable name="stimEnd" units="s" initial_value="3600"/>
             <variable name="Ca" units="nM" public_interface="out"/>
             <variable name="trainPeriod" units="s" initial_value="50"/>
             <variable name="timeInStim_modTrainPeriod" units="s"/>
             <variable name="timeInStim_modPulsePeriod" units="s"/>
                          
             <math xmlns="http://www.w3.org/1998/Math/MathML">
             <apply>
                         <eq/>
                         <ci>timeInStim_modTrainPeriod</ci>
                         <apply>
                            <minus/>
                            <ci>t</ci>
                            <apply>
                               <times/>
                               <apply>
                                  <floor/>
                                  <apply>
                                     <divide/>
                                     <ci>t</ci>
                                     <ci>trainPeriod</ci>
                                  </apply>
                               </apply>
                               <ci>trainPeriod</ci>
                            </apply>
                         </apply>
                      </apply>
                      <apply>
                         <eq/>
                         <ci>timeInStim_modPulsePeriod</ci>
                         <apply>
                            <minus/>
                            <ci>t</ci>
                            <apply>
                               <times/>
                               <apply>
                                  <floor/>
                                  <apply>
                                     <divide/>
                                     <ci>t</ci>
                                     <cn cellml:units="s">0.1</cn>
                                  </apply>
                               </apply>
                               <cn cellml:units="s">0.1</cn>
                            </apply>
                         </apply>
         </apply>
          <apply>
                     <eq/>
                     <ci>Ca</ci>
                     <piecewise>
                        <piece>
                           <apply>
                              <plus/>
                              <apply>
                                 <times/>
                                 <cn cellml:units="dimensionless">1000</cn>
                                 <apply>
                                    <minus/>
                                    <ci>timeInStim_modTrainPeriod</ci>
                                    <cn cellml:units="s">5</cn>
                                 </apply>
                                 <apply>
                                    <minus/>
                                    <cn cellml:units="nM_per_s">9.884615385</cn>
                                 </apply>
                              </apply>
                              <cn cellml:units="nM">290.6923077</cn>
                           </apply>
                           <apply>
                              <and/>
                              <apply>
                                 <geq/>
                                 <ci>timeInStim_modTrainPeriod</ci>
                                 <cn cellml:units="s">5</cn>
                              </apply>
                              <apply>
                                 <leq/>
                                 <ci>timeInStim_modTrainPeriod</ci>
                                 <cn cellml:units="s">5.02</cn>
                              </apply>
                              <apply>
                                 <lt/>
                                 <ci>t</ci>
                                 <ci>stimEnd</ci>
                              </apply>
                           </apply>
                        </piece>
                        <piece>
                           <apply>
                              <plus/>
                              <apply>
                                 <times/>
                                 <cn cellml:units="dimensionless">1000</cn>
                                 <ci>timeInStim_modPulsePeriod</ci>
                                 <cn cellml:units="nM_per_s">51.89423077</cn>
                              </apply>
                              <cn cellml:units="nM">290.6923077</cn>
                           </apply>
                           <apply>
                              <and/>
                              <apply>
                                 <lt/>
                                 <ci>timeInStim_modTrainPeriod</ci>
                                 <cn cellml:units="s">5</cn>
                              </apply>
                              <apply>
                                 <leq/>
                                 <ci>timeInStim_modPulsePeriod</ci>
                                 <cn cellml:units="s">0.016</cn>
                              </apply>
                              <apply>
                                 <lt/>
                                 <ci>t</ci>
                                 <ci>stimEnd</ci>
                              </apply>
                           </apply>
                        </piece>
                        <piece>
                           <apply>
                              <plus/>
                              <apply>
                                 <times/>
                                 <cn cellml:units="dimensionless">1000</cn>
                                 <apply>
                                    <minus/>
                                    <ci>timeInStim_modPulsePeriod</ci>
                                    <cn cellml:units="s">0.016</cn>
                                 </apply>
                                 <apply>
                                    <minus/>
                                    <cn cellml:units="nM_per_s">9.884615385</cn>
                                 </apply>
                              </apply>
                              <cn cellml:units="nM">1121</cn>
                           </apply>
                           <apply>
                              <and/>
                              <apply>
                                 <lt/>
                                 <ci>timeInStim_modTrainPeriod</ci>
                                 <cn cellml:units="s">5</cn>
                              </apply>
                              <apply>
                                 <gt/>
                                 <ci>timeInStim_modPulsePeriod</ci>
                                 <cn cellml:units="s">0.016</cn>
                              </apply>
                              <apply>
                                 <lt/>
                                 <ci>t</ci>
                                 <ci>stimEnd</ci>
                              </apply>
                           </apply>
                        </piece>
                        <otherwise>
                           <cn cellml:units="nM">93</cn>
                        </otherwise>
                     </piecewise>
         </apply>
             
             </math>
   </component>

</model>