﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?application progid="SMath Studio Desktop" version="0.99.7251.32800"?>
<worksheet xmlns="http://smath.info/schemas/worksheet/1.0">
  <settings ppi="96">
    <identity>
      <id>b6cb0ca3-5ec2-47ec-8904-21d084a6264c</id>
      <revision>36</revision>
    </identity>
    <calculation>
      <precision>4</precision>
      <exponentialThreshold>5</exponentialThreshold>
      <trailingZeros>false</trailingZeros>
      <significantDigitsMode>false</significantDigitsMode>
      <roundingMode>0</roundingMode>
      <fractions>decimal</fractions>
    </calculation>
    <pageModel active="true" viewMode="0" printGrid="false" printAreas="true" simpleEqualsOnly="false" printBackgroundImages="true">
      <paper id="1" orientation="Landscape" width="1100" height="850" />
      <margins left="39" right="39" top="49" bottom="49" />
      <header alignment="Center" color="#a9a9a9">&amp;[DATE] &amp;[TIME] - &amp;[FILENAME]</header>
      <footer alignment="Center" color="#a9a9a9">&amp;[PAGENUM] / &amp;[COUNT]</footer>
      <backgrounds />
    </pageModel>
    <dependencies>
      <assembly name="SMath Studio Desktop" version="0.99.7251.32800" guid="a37cba83-b69c-4c71-9992-55ff666763bd" />
      <assembly name="Math Region" version="0.99.7251.32800" guid="02f1ab51-215b-466e-a74d-5d8b1cf85e8d" />
      <assembly name="SpecialFunctions" version="1.12.7251.32800" guid="2814e667-4e12-48b1-8d51-194e480eabc5" />
      <assembly name="TextRegion" version="1.11.7251.32800" guid="485d28c5-349a-48b6-93be-12a35a1c1e39" />
      <assembly name="Writer Region" version="0.22.7200.15900" guid="5922d677-323f-4327-8c68-be902d8339ad" />
      <assembly name="Prode Properties" version="0.1.7475.18559" guid="bf70ae69-1b17-4f0f-9012-544fbe590c4c" />
    </dependencies>
  </settings>
  <regions type="content">
    <region left="207" top="27" width="520" height="35" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 16pt"><strong>Example 7: Universal Fixed Bed Reactor (steady state)</strong></span></div></span>]]></writer>
    </region>
    <region left="279" top="90" width="332" height="32" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 14pt">Partial oxidation of methanol to formaldehyde</span></div></span>]]></writer>
    </region>
    <region left="288" top="162" width="350" height="29" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 12pt">CH3OH + 1/2 O2  ----&gt;  CH2O + H2O                 R1</span></div></span>]]></writer>
    </region>
    <region left="288" top="216" width="350" height="29" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 12pt">CH2O + 1/2 O2 ------&gt; CO + H2O                        R2</span></div></span>]]></writer>
    </region>
    <region left="9" top="279" width="1102" height="317" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 12pt">T</span>his example shares most of the physical and reaction properties used in Example 5.  A tubular reactor cooled at the wall is simulated in this example, but </div>
<div>the program can also be used to simulate an adiabatic reactor.</div>
<div>&nbsp;</div>
<div>A section has been added to predict the parameters for heat transfer at the wall and radial dispersion coefficients.  This section can be copied into other </div>
<div>worksheets as needed.  In some cases, the parameter correlations are phase specific, i.e. for liquid or gas.  Therefore, the user designates the fluid type in </div>
<div>the section that describes the reactor.</div>
<div>&nbsp;</div>
<div>Finally, although the program may appear complicated, once written, it can be easily used to simulate other reaction systems by merely changing the </div>
<div>physical properties and the reaction sections.  The numerical program was written because the PDE solvers in Mathcad currently do not support the solution of vector problems as required </div>
<div>for this model.</div>
<div>&nbsp;</div>
<div>The integration program can be duplicated in most high level computer languages.  The key feature required is the function capability.  Some &quot;in-line&quot; </div>
<div>Fortran compilers used in process simulation packages do not include that feature although it is included in full Fortran compilers.  The vectorization and </div>
<div>other matrix operations can be readily programmed with simple loops.</div>
<div>&nbsp;</div>
<div>The portions of the program that are unchanged from Example 5 are hidden to reduce printing.  Areas that have been added are highlighted in yellow.  A </div>
<div>blue highlight indicates a changed value. </div></span>]]></writer>
    </region>
    <region left="36" top="756" width="129" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand" style="string"></e>
          <e type="function" args="1">mc_AOpen</e>
        </input>
        <result action="numeric">
          <e type="operand">1</e>
        </result>
      </math>
    </region>
    <region left="252" top="756" width="213" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">select the formaldehyde database</p>
      </text>
    </region>
    <region left="36" top="783" width="86" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">stream</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="36" top="810" width="147" height="26" color="#000000" fontSize="10">
      <math evaluate="false">
        <input>
          <e type="operand">stream</e>
          <e type="function" args="1">mc_edS</e>
        </input>
        <result action="numeric">
          <e type="operand">#</e>
        </result>
      </math>
    </region>
    <region left="36" top="837" width="54" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">NC</e>
          <e type="operand">6</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="36" top="864" width="102" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">i_</e>
          <e type="operand">1</e>
          <e type="operand">NC</e>
          <e type="function" args="2">range</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="36" top="900" width="250" height="34" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ccode</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="operand">stream</e>
          <e type="operand">i_</e>
          <e type="function" args="2">mc_getCC</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="450" top="900" width="304" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">the component codes are obtained from stream 6</p>
      </text>
    </region>
    <region left="459" top="927" width="225" height="35" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">name</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="operand">ccode</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">mc_CompN</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="36" top="963" width="115" height="118" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ccode</e>
        </input>
        <result action="numeric">
          <e type="operand">1047</e>
          <e type="operand">1312</e>
          <e type="operand">1631</e>
          <e type="operand">596</e>
          <e type="operand">884</e>
          <e type="operand">1264</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="450" top="963" width="211" height="118" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">name</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">METHANOL</e>
          <e type="operand" style="string">OXYGEN</e>
          <e type="operand" style="string">WATER</e>
          <e type="operand" style="string">CARBON MONOXIDE</e>
          <e type="operand" style="string">FORMALDEHYDE</e>
          <e type="operand" style="string">NITROGEN</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="36" top="1107" width="147" height="29" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 12pt"><strong><em>molecular weights</em></strong></span></div></span>]]></writer>
    </region>
    <region left="504" top="1107" width="161" height="27" color="#000000" fontSize="12">
      <text lang="eng">
        <p bold="true" italic="true" fontName="Arial">molecular formulas</p>
      </text>
    </region>
    <region left="36" top="1143" width="250" height="42" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Mw</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="operand">ccode</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">mc_CompMw</e>
          <e type="operand" style="unit">g</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="558" top="1161" width="70" height="26" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div>C  H O N</div></span>]]></writer>
    </region>
    <region left="504" top="1188" width="127" height="118" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Atom</e>
          <e type="operand">1</e>
          <e type="operand">4</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">2</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">1</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">0</e>
          <e type="operand">2</e>
          <e type="operand">6</e>
          <e type="operand">4</e>
          <e type="function" args="26">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="648" top="1188" width="211" height="118" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">name</e>
        </input>
        <result action="numeric">
          <e type="operand" style="string">METHANOL</e>
          <e type="operand" style="string">OXYGEN</e>
          <e type="operand" style="string">WATER</e>
          <e type="operand" style="string">CARBON MONOXIDE</e>
          <e type="operand" style="string">FORMALDEHYDE</e>
          <e type="operand" style="string">NITROGEN</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="36" top="1206" width="132" height="220" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Mw</e>
        </input>
        <result action="numeric">
          <e type="operand">0.032</e>
          <e type="operand" style="unit">kg</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">0.032</e>
          <e type="operand" style="unit">kg</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">0.018</e>
          <e type="operand" style="unit">kg</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">0.028</e>
          <e type="operand" style="unit">kg</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">0.03</e>
          <e type="operand" style="unit">kg</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">0.028</e>
          <e type="operand" style="unit">kg</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="0" top="1503" width="221" height="32" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 14pt"><strong>Thermophysical properties</strong></span></div></span>]]></writer>
    </region>
    <region left="99" top="1548" width="147" height="29" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 12pt"><strong><em>heats of formation</em></strong></span></div></span>]]></writer>
    </region>
    <region left="621" top="1548" width="109" height="29" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 12pt"><strong><em>free energies</em></strong></span></div></span>]]></writer>
    </region>
    <region left="81" top="1584" width="297" height="42" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ΔHf</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="operand">ccode</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">mc_CompHf</e>
          <e type="operand" style="unit">kJ</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">Mw</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="270" top="1584" width="14" height="26" color="#000000">
      <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div>   </div></span>]]></writer>
    </region>
    <region left="567" top="1584" width="297" height="42" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ΔFf</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="operand">ccode</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="function" args="1">mc_CompGf</e>
          <e type="operand" style="unit">kJ</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">Mw</e>
          <e type="operand">i_</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="81" top="1638" width="168" height="118" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ΔHf</e>
        </input>
        <contract>
          <e type="operand" style="unit">kJ</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
        </contract>
        <result action="numeric">
          <e type="operand">200.99</e>
          <e type="operator" args="1">-</e>
          <e type="operand">0</e>
          <e type="operand">241.816</e>
          <e type="operator" args="1">-</e>
          <e type="operand">110.53</e>
          <e type="operator" args="1">-</e>
          <e type="operand">108.6</e>
          <e type="operator" args="1">-</e>
          <e type="operand">0</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="567" top="1647" width="160" height="118" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ΔFf</e>
        </input>
        <contract>
          <e type="operand" style="unit">kJ</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
        </contract>
        <result action="numeric">
          <e type="operand">162.31</e>
          <e type="operator" args="1">-</e>
          <e type="operand">0</e>
          <e type="operand">228.77</e>
          <e type="operator" args="1">-</e>
          <e type="operand">137.16</e>
          <e type="operator" args="1">-</e>
          <e type="operand">109.9</e>
          <e type="operator" args="1">-</e>
          <e type="operand">0</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="54" top="1773" width="136" height="27" color="#000000" fontSize="12">
      <text lang="eng">
        <p bold="true" fontName="Arial">Feed conditions</p>
      </text>
    </region>
    <region left="54" top="1809" width="81" height="30" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">T.0</e>
          <e type="operand">525</e>
          <e type="operand" style="unit">K</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="234" top="1809" width="114" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">feed temperature</p>
      </text>
    </region>
    <region left="54" top="1845" width="82" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Tw</e>
          <e type="operand">525</e>
          <e type="operand" style="unit">K</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="234" top="1845" width="115" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">wall temperature </p>
      </text>
    </region>
    <region left="54" top="1872" width="98" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Ptot</e>
          <e type="operand">5</e>
          <e type="operand" style="unit">atm</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="540" top="1890" width="210" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p bold="true" italic="true" fontName="Arial">moles or mole fractions in feed</p>
      </text>
    </region>
    <region left="54" top="1908" width="170" height="50" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">G</e>
          <e type="operand">0.8</e>
          <e type="operand" style="unit">g</e>
          <e type="operand" style="unit">cm</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operand" style="unit">s</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">8</e>
          <e type="operand" style="unit">s</e>
          <e type="operand" style="unit">Pa</e>
          <e type="operator" args="2">*</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="306" top="1917" width="69" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">mass flux</p>
      </text>
    </region>
    <region left="540" top="1926" width="125" height="118" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">molf</e>
          <e type="operand">1</e>
          <e type="operand">1.1</e>
          <e type="operand">0.1467</e>
          <e type="operand">0.0563</e>
          <e type="operand">0.0065</e>
          <e type="operand">8.7905</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="54" top="2007" width="210" height="118" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">molf</e>
          <e type="operand">molf</e>
          <e type="operand">molf</e>
          <e type="function" args="1">sum</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0.0901</e>
          <e type="operand">0.0991</e>
          <e type="operand">0.0132</e>
          <e type="operand">0.0051</e>
          <e type="operand">0.0006</e>
          <e type="operand">0.7919</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="306" top="2052" width="164" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">normalized mole fractions</p>
      </text>
    </region>
    <region left="54" top="2151" width="202" height="41" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">M.f</e>
          <e type="operand">molf</e>
          <e type="operand">Mw</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0.0286</e>
          <e type="operand" style="unit">kg</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
        </result>
      </math>
    </region>
    <region left="324" top="2160" width="204" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">molecular weight of feed mixture</p>
      </text>
    </region>
    <region left="36" top="2259" width="207" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p bold="true" fontName="Arial">dimensionless feed conditions</p>
      </text>
    </region>
    <region left="54" top="2295" width="188" height="118" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ω.0</e>
          <e type="operand">molf</e>
          <e type="operand">Mw</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">vectorize</e>
          <e type="operand">M.f</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
        <result action="numeric">
          <e type="operand">0.1008</e>
          <e type="operand">0.1107</e>
          <e type="operand">0.0083</e>
          <e type="operand">0.005</e>
          <e type="operand">0.0006</e>
          <e type="operand">0.7746</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="324" top="2340" width="161" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">convert to mass fractions</p>
      </text>
    </region>
    <region left="540" top="2340" width="52" height="30" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">θ.0</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="612" top="2340" width="88" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">temperature </p>
      </text>
    </region>
    <region left="783" top="2340" width="52" height="30" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">p.0</e>
          <e type="operand">1</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="855" top="2340" width="68" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">pressure </p>
      </text>
    </region>
    <region left="18" top="2439" width="219" height="27" color="#000000" fontSize="12">
      <text lang="eng">
        <p bold="true" fontName="Arial">Reactor geometry and type</p>
      </text>
    </region>
    <region left="45" top="2475" width="58" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">L</e>
          <e type="operand">1</e>
          <e type="operand" style="unit">m</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="207" top="2475" width="94" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">reactor length</p>
      </text>
    </region>
    <region left="450" top="2475" width="110" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">fluid</e>
          <e type="operand" style="string">gas</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="675" top="2475" width="145" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">fluid is "gas" or "liquid"</p>
      </text>
    </region>
    <region left="45" top="2511" width="113" height="30" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">D.t</e>
          <e type="operand">2.0574</e>
          <e type="operand" style="unit">cm</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="207" top="2511" width="59" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">tube I.D</p>
      </text>
    </region>
    <region left="450" top="2511" width="142" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">adiabatic</e>
          <e type="operand" style="string">yes</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="675" top="2511" width="157" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">adiabatic is "yes" or "no"</p>
      </text>
    </region>
    <region left="45" top="2547" width="66" height="47" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">Ri</e>
          <e type="operand">D.t</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="207" top="2556" width="94" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">reactor radius</p>
      </text>
    </region>
    <region left="18" top="2610" width="158" height="27" color="#000000" fontSize="12">
      <text lang="eng">
        <p bold="true" fontName="Arial">Catalyst properties</p>
      </text>
    </region>
    <region left="36" top="2646" width="89" height="30" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">d.p</e>
          <e type="operand">2.5</e>
          <e type="operand" style="unit">mm</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="207" top="2646" width="176" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">equivalent particle diameter</p>
      </text>
    </region>
    <region left="450" top="2646" width="117" height="41" color="#000000" fontSize="10">
      <math optimize="2">
        <input>
          <e type="operand">Cp.c</e>
          <e type="operand">0.25</e>
          <e type="operand" style="unit">cal</e>
          <e type="operand" style="unit">g</e>
          <e type="operand" style="unit">K</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="639" top="2646" width="140" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">catalyst heat capacity</p>
      </text>
    </region>
    <region left="36" top="2691" width="78" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ε</e>
          <e type="operand">0.496</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="207" top="2691" width="110" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">bed void fraction</p>
      </text>
    </region>
    <region left="450" top="2691" width="150" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">shape</e>
          <e type="operand" style="string">cylinder</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="639" top="2691" width="230" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">catalyst shape, "cylinder" or "sphere"</p>
      </text>
    </region>
    <region left="36" top="2727" width="95" height="50" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ρ.c</e>
          <e type="operand">53</e>
          <e type="operand" style="unit">lb</e>
          <e type="operand" style="unit">ft</e>
          <e type="operand">3</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="207" top="2736" width="132" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">catalyst bulk density</p>
      </text>
    </region>
    <region left="450" top="2736" width="118" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">smooth</e>
          <e type="operand" style="string">yes</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="639" top="2736" width="247" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">catalyst surface is smooth, "yes" or "no"</p>
      </text>
    </region>
    <region left="36" top="2781" width="126" height="41" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">k.s</e>
          <e type="operand">2</e>
          <e type="operand" style="unit">BTU</e>
          <e type="operand" style="unit">hr</e>
          <e type="operand" style="unit">ft</e>
          <e type="operator" args="2">*</e>
          <e type="operand" style="unit">°Ra</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="207" top="2790" width="113" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">solid conductivity</p>
      </text>
    </region>
    <region left="36" top="2835" width="328" height="104" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">The hidden are below contains the following sections:
Gas and Liquid Properties
Stoichiometry
Equilibria
Reaction rate expressions
Net mass and heat production rates</p>
      </text>
    </region>
    <region left="18" top="3006" width="127" height="27" color="#000000" fontSize="12">
      <text lang="eng">
        <p bold="true" fontName="Arial">Gas Properties</p>
      </text>
    </region>
    <region left="18" top="3042" width="534" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">The properties for nitrogen, the dominate component, will be used for the gas properties.</p>
      </text>
    </region>
    <region left="54" top="3087" width="90" height="24" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">σ</e>
          <e type="operand">3.798</e>
          <e type="operand" style="unit">Å</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="207" top="3087" width="237" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">Lennard-Jones parameter for nitrogen</p>
      </text>
    </region>
    <region left="54" top="3132" width="88" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">gas viscosity</p>
      </text>
    </region>
    <region left="45" top="3204" width="272" height="122" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">T</e>
          <e type="function" args="1">μ</e>
          <e type="operand">2.67</e>
          <e type="operand">10</e>
          <e type="operand">5</e>
          <e type="operator" args="1">-</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">*</e>
          <e type="operand">Mw</e>
          <e type="operand">NC</e>
          <e type="function" args="2">el</e>
          <e type="operand">T</e>
          <e type="operand" style="unit">K</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand" style="unit">g</e>
          <e type="operand" style="unit">mol</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="1">sqrt</e>
          <e type="operator" args="2">*</e>
          <e type="operand">σ</e>
          <e type="operand" style="unit">Å</e>
          <e type="operator" args="2">/</e>
          <e type="bracket">(</e>
          <e type="operand">2</e>
          <e type="operator" args="2">^</e>
          <e type="operator" args="2">/</e>
          <e type="operand" style="unit">g</e>
          <e type="operand" style="unit">cm</e>
          <e type="operand" style="unit">s</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="414" top="3267" width="167" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">Bird et al(2002), eq 1.4-14</p>
      </text>
    </region>
    <region left="270" top="3348" width="180" height="26" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">900</e>
          <e type="operand" style="unit">K</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">μ</e>
        </input>
        <contract>
          <e type="operand" style="unit">poise</e>
        </contract>
        <result action="numeric">
          <e type="operand">0.0003</e>
        </result>
      </math>
    </region>
    <region left="36" top="3384" width="306" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">molar heat capacities computed in the area below</p>
      </text>
    </region>
    <region top="3411" color="#000000">
      <area collapsed="false">
        <title lang="eng">
          <p fontName="Arial"></p>
        </title>
      </area>
      <region left="90" top="3429" width="545" height="29" color="#000000">
        <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><span style="font-size: 12pt"><strong><em>Curve fit PPP enthalpies to obtain a cubic polynomial heat capacity formula</em></strong></span></div></span>]]></writer>
      </region>
      <region left="108" top="3465" width="97" height="26" color="#000000">
        <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><strong>generate data</strong></div></span>]]></writer>
      </region>
      <region left="108" top="3510" width="78" height="24" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">npts</e>
            <e type="operand">30</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="576" top="3510" width="141" height="24" color="#000000" fontSize="10">
        <text lang="eng">
          <p fontName="Arial">number of data points</p>
        </text>
      </region>
      <region left="108" top="3555" width="82" height="24" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">t1</e>
            <e type="operand">500</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="270" top="3555" width="90" height="24" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">t2</e>
            <e type="operand">1000</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="576" top="3555" width="122" height="24" color="#000000" fontSize="10">
        <text lang="eng">
          <p fontName="Arial">temperature range</p>
        </text>
      </region>
      <region left="108" top="3609" width="78" height="24" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">npts</e>
            <e type="operand">30</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="117" top="3708" width="234" height="131" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">M</e>
            <e type="function" args="1">trans</e>
            <e type="operand">nr</e>
            <e type="operand">M</e>
            <e type="function" args="1">rows</e>
            <e type="operator" args="2">:</e>
            <e type="operand">nc</e>
            <e type="operand">M</e>
            <e type="function" args="1">cols</e>
            <e type="operator" args="2">:</e>
            <e type="operand">j</e>
            <e type="operand">1</e>
            <e type="operand">nc</e>
            <e type="function" args="2">range</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operand">nr</e>
            <e type="function" args="2">range</e>
            <e type="operand">MT</e>
            <e type="operand">j</e>
            <e type="operand">k</e>
            <e type="function" args="3">el</e>
            <e type="operand">M</e>
            <e type="operand">k</e>
            <e type="operand">j</e>
            <e type="function" args="3">el</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="function" args="3">for</e>
            <e type="operand">MT</e>
            <e type="operand">4</e>
            <e type="operand">1</e>
            <e type="function" args="6">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="576" top="3762" width="399" height="40" color="#000000" fontSize="10">
        <text lang="eng">
          <p fontName="Arial">transpose function because the SMath version had problems with
one of the matricies below</p>
        </text>
      </region>
      <region left="108" top="3870" width="617" height="192" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">t</e>
            <e type="operand">phase</e>
            <e type="operand">Ccode</e>
            <e type="operand">ii</e>
            <e type="function" args="4">Cp</e>
            <e type="operand" style="string">phase is a string, either Vapor of Liquid</e>
            <e type="operand">Mw</e>
            <e type="operand">ii</e>
            <e type="function" args="2">el</e>
            <e type="operand">Ccode</e>
            <e type="operand">ii</e>
            <e type="function" args="2">el</e>
            <e type="function" args="1">mc_CompMw</e>
            <e type="operand" style="unit">g</e>
            <e type="operand" style="unit">mol</e>
            <e type="operator" args="2">/</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">:</e>
            <e type="operand">phase</e>
            <e type="operand" style="string">Liquid</e>
            <e type="operator" args="2">≡</e>
            <e type="operand">cp</e>
            <e type="operand">Ccode</e>
            <e type="operand">ii</e>
            <e type="function" args="2">el</e>
            <e type="operand">t</e>
            <e type="operand">K</e>
            <e type="operator" args="2">/</e>
            <e type="operand">t</e>
            <e type="operand">1</e>
            <e type="operand" style="unit">Δ°C</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">+</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">/</e>
            <e type="function" args="3">mc_CompHL</e>
            <e type="operand">Mw</e>
            <e type="operand">ii</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">*</e>
            <e type="operand" style="unit">kJ</e>
            <e type="operand" style="unit">kg</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">/</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">:</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">sys</e>
            <e type="operand">cp</e>
            <e type="operand">Ccode</e>
            <e type="operand">ii</e>
            <e type="function" args="2">el</e>
            <e type="operand">t</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">/</e>
            <e type="operand">t</e>
            <e type="operand">1</e>
            <e type="operand" style="unit">Δ°C</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">+</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">/</e>
            <e type="function" args="3">mc_CompHG</e>
            <e type="operand">Mw</e>
            <e type="operand">ii</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">*</e>
            <e type="operand" style="unit">kJ</e>
            <e type="operand" style="unit">kg</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">/</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">:</e>
            <e type="operand">1</e>
            <e type="operand">1</e>
            <e type="function" args="3">sys</e>
            <e type="function" args="3">if</e>
            <e type="operand">cp</e>
            <e type="operand">4</e>
            <e type="operand">1</e>
            <e type="function" args="6">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="810" top="3942" width="193" height="40" color="#000000" fontSize="10">
        <text lang="eng">
          <p fontName="Arial">compute heat capaciitiy of one
compound at temperature "t"</p>
        </text>
      </region>
      <region left="108" top="4086" width="593" height="153" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">t1</e>
            <e type="operand">t2</e>
            <e type="operand">phase</e>
            <e type="operand">Ccode</e>
            <e type="operand">npts</e>
            <e type="function" args="5">Matcp</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operand">npts</e>
            <e type="function" args="2">range</e>
            <e type="operand">X</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">t1</e>
            <e type="operand">k</e>
            <e type="operand">t2</e>
            <e type="operand">t1</e>
            <e type="operator" args="2">-</e>
            <e type="operand">npts</e>
            <e type="operator" args="2">/</e>
            <e type="bracket">(</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">+</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="operand">k</e>
            <e type="operand">1</e>
            <e type="operand">npts</e>
            <e type="function" args="2">range</e>
            <e type="operand">ii</e>
            <e type="operand">1</e>
            <e type="operand">Ccode</e>
            <e type="function" args="1">rows</e>
            <e type="function" args="2">range</e>
            <e type="operand">Mcp</e>
            <e type="operand">k</e>
            <e type="operand">ii</e>
            <e type="function" args="3">el</e>
            <e type="operand">X</e>
            <e type="operand">k</e>
            <e type="function" args="2">el</e>
            <e type="operand">phase</e>
            <e type="operand">Ccode</e>
            <e type="operand">ii</e>
            <e type="function" args="4">Cp</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="function" args="3">for</e>
            <e type="operand">Mcp</e>
            <e type="operand">X</e>
            <e type="operand">1</e>
            <e type="operand">2</e>
            <e type="function" args="4">mat</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="756" top="4122" width="226" height="40" color="#000000" fontSize="10">
        <text lang="eng">
          <p fontName="Arial">compute heat capacity matrix for all 
compounds of interest</p>
        </text>
      </region>
      <region left="144" top="4266" width="126" height="24" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">phase</e>
            <e type="operand" style="string">Vapor</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="333" top="4275" width="130" height="155" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">T</e>
            <e type="function" args="1">CTf</e>
            <e type="operand">1</e>
            <e type="operand">T</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">/</e>
            <e type="operand">T</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">/</e>
            <e type="bracket">(</e>
            <e type="operand">2</e>
            <e type="operator" args="2">^</e>
            <e type="operand">T</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">/</e>
            <e type="bracket">(</e>
            <e type="operand">3</e>
            <e type="operator" args="2">^</e>
            <e type="operand">4</e>
            <e type="operand">1</e>
            <e type="function" args="6">mat</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="531" top="4347" width="170" height="24" color="#000000" fontSize="10">
        <text lang="eng">
          <p fontName="Arial">cubic temperature function</p>
        </text>
      </region>
      <region left="144" top="4455" width="344" height="27" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">MCP</e>
            <e type="operand">X</e>
            <e type="operand">1</e>
            <e type="operand">2</e>
            <e type="function" args="4">mat</e>
            <e type="operand">t1</e>
            <e type="operand">t2</e>
            <e type="operand">phase</e>
            <e type="operand">ccode</e>
            <e type="operand">npts</e>
            <e type="function" args="5">Matcp</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="117" top="4509" width="255" height="26" color="#000000">
        <writer lang="eng"><![CDATA[<span style="font-family: 'Arial'; font-size: 10pt; font-weight: normal; font-style: normal; color: Black; background-color: Transparent; vertical-align: baseline; text-align: left; margin-left: 0pt; text-indent: 0pt; line-height: 115%">
<div><strong>compute cubic polynomial coefficients</strong></div></span>]]></writer>
      </region>
      <region left="126" top="4545" width="385" height="472" color="#000000" bgColor="#ffff00" fontSize="10">
        <math>
          <input>
            <e type="operand">data</e>
            <e type="operand">X</e>
            <e type="function" args="2">cubic</e>
            <e type="operand">npts</e>
            <e type="operand">data</e>
            <e type="function" args="1">rows</e>
            <e type="operator" args="2">:</e>
            <e type="operand">nc</e>
            <e type="operand">data</e>
            <e type="function" args="1">cols</e>
            <e type="operator" args="2">:</e>
            <e type="operand">x</e>
            <e type="function" args="1">Φ</e>
            <e type="operand">1</e>
            <e type="operand">x</e>
            <e type="operand">x</e>
            <e type="operand">2</e>
            <e type="operator" args="2">^</e>
            <e type="operand">x</e>
            <e type="operand">3</e>
            <e type="operator" args="2">^</e>
            <e type="operand">4</e>
            <e type="operand">1</e>
            <e type="function" args="6">mat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">c</e>
            <e type="operand">1</e>
            <e type="operand">nc</e>
            <e type="function" args="2">range</e>
            <e type="operand">j</e>
            <e type="operand">1</e>
            <e type="operand">x</e>
            <e type="function" args="1">Φ</e>
            <e type="function" args="1">rows</e>
            <e type="function" args="2">range</e>
            <e type="operand">ii</e>
            <e type="operand">1</e>
            <e type="operand">npts</e>
            <e type="function" args="2">range</e>
            <e type="operand">M</e>
            <e type="operand">ii</e>
            <e type="operand">j</e>
            <e type="function" args="3">el</e>
            <e type="operand">X</e>
            <e type="operand">ii</e>
            <e type="function" args="2">el</e>
            <e type="function" args="1">Φ</e>
            <e type="operand">j</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="function" args="3">for</e>
            <e type="operand">Y</e>
            <e type="operand">data</e>
            <e type="operand">c</e>
            <e type="function" args="2">col</e>
            <e type="operator" args="2">:</e>
            <e type="operand">b</e>
            <e type="operand">c</e>
            <e type="function" args="2">el</e>
            <e type="operand">M</e>
            <e type="function" args="1">transpose</e>
            <e type="operand">M</e>
            <e type="operator" args="2">*</e>
            <e type="bracket">(</e>
            <e type="operand">1</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operand">M</e>
            <e type="function" args="1">transpose</e>
            <e type="operand">Y</e>
            <e type="operator" args="2">*</e>
            <e type="bracket">(</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">:</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">line</e>
            <e type="function" args="3">for</e>
            <e type="operand">coeff</e>
            <e type="operand">b</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">:</e>
            <e type="operand">nc</e>
            <e type="operand">1</e>
            <e type="operator" args="2">&gt;</e>
            <e type="operand">c</e>
            <e type="operand">2</e>
            <e type="operand">nc</e>
            <e type="function" args="2">range</e>
            <e type="operand">coeff</e>
            <e type="operand">coeff</e>
            <e type="operand">b</e>
            <e type="operand">c</e>
            <e type="function" args="2">el</e>
            <e type="function" args="2">augment</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="operand" style="string">do nothing</e>
            <e type="function" args="3">if</e>
            <e type="operand">B</e>
            <e type="operand">coeff</e>
            <e type="function" args="1">trans</e>
            <e type="operator" args="2">:</e>
            <e type="operand">B</e>
            <e type="operand">8</e>
            <e type="operand">1</e>
            <e type="function" args="10">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="612" top="4545" width="393" height="480" color="#000000" bgColor="#ffff00" fontSize="10">
        <math>
          <input>
            <e type="operand">data</e>
            <e type="operand">X</e>
            <e type="function" args="2">cubic2</e>
            <e type="operand">npts</e>
            <e type="operand">data</e>
            <e type="function" args="1">rows</e>
            <e type="operator" args="2">:</e>
            <e type="operand">nc</e>
            <e type="operand">data</e>
            <e type="function" args="1">cols</e>
            <e type="operator" args="2">:</e>
            <e type="operand">x</e>
            <e type="function" args="1">Φ</e>
            <e type="operand">1</e>
            <e type="operand">x</e>
            <e type="operand">x</e>
            <e type="operand">2</e>
            <e type="operator" args="2">^</e>
            <e type="operand">x</e>
            <e type="operand">3</e>
            <e type="operator" args="2">^</e>
            <e type="operand">4</e>
            <e type="operand">1</e>
            <e type="function" args="6">mat</e>
            <e type="operator" args="2">:</e>
            <e type="operand">c</e>
            <e type="operand">1</e>
            <e type="operand">nc</e>
            <e type="function" args="2">range</e>
            <e type="operand">j</e>
            <e type="operand">1</e>
            <e type="operand">x</e>
            <e type="function" args="1">Φ</e>
            <e type="function" args="1">rows</e>
            <e type="function" args="2">range</e>
            <e type="operand">ii</e>
            <e type="operand">1</e>
            <e type="operand">npts</e>
            <e type="function" args="2">range</e>
            <e type="operand">M</e>
            <e type="operand">ii</e>
            <e type="operand">j</e>
            <e type="function" args="3">el</e>
            <e type="operand">X</e>
            <e type="operand">ii</e>
            <e type="function" args="2">el</e>
            <e type="function" args="1">Φ</e>
            <e type="operand">j</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="function" args="3">for</e>
            <e type="operand">Y</e>
            <e type="operand">data</e>
            <e type="operand">c</e>
            <e type="function" args="2">col</e>
            <e type="operator" args="2">:</e>
            <e type="operand">b</e>
            <e type="operand">c</e>
            <e type="function" args="2">el</e>
            <e type="operand">M</e>
            <e type="function" args="1">transpose</e>
            <e type="operand">M</e>
            <e type="operator" args="2">*</e>
            <e type="bracket">(</e>
            <e type="operand">1</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operand">M</e>
            <e type="function" args="1">transpose</e>
            <e type="operand">Y</e>
            <e type="operator" args="2">*</e>
            <e type="bracket">(</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">:</e>
            <e type="operand">3</e>
            <e type="operand">1</e>
            <e type="function" args="5">line</e>
            <e type="function" args="3">for</e>
            <e type="operand">coeff</e>
            <e type="operand">b</e>
            <e type="operand">1</e>
            <e type="function" args="2">el</e>
            <e type="operator" args="2">:</e>
            <e type="operand">nc</e>
            <e type="operand">1</e>
            <e type="operator" args="2">&gt;</e>
            <e type="operand">c</e>
            <e type="operand">2</e>
            <e type="operand">nc</e>
            <e type="function" args="2">range</e>
            <e type="operand">coeff</e>
            <e type="operand">coeff</e>
            <e type="operand">b</e>
            <e type="operand">c</e>
            <e type="function" args="2">el</e>
            <e type="function" args="2">augment</e>
            <e type="operator" args="2">:</e>
            <e type="function" args="3">for</e>
            <e type="operand" style="string">do nothing</e>
            <e type="function" args="3">if</e>
            <e type="operand">B</e>
            <e type="operand">coeff</e>
            <e type="function" args="1">transpose</e>
            <e type="operator" args="2">:</e>
            <e type="operand">B</e>
            <e type="operand">8</e>
            <e type="operand">1</e>
            <e type="function" args="10">line</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="162" top="5058" width="235" height="60" color="#000000" bgColor="#ffff00" fontSize="10">
        <math>
          <input>
            <e type="operand">cp</e>
            <e type="operand">MCP</e>
            <e type="operand" style="unit">kJ</e>
            <e type="operand" style="unit">kmol</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">/</e>
            <e type="operator" args="2">/</e>
            <e type="operand">X</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">/</e>
            <e type="function" args="2">cubic</e>
            <e type="operand" style="unit">kJ</e>
            <e type="operand" style="unit">kmol</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">/</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">:</e>
          </input>
        </math>
      </region>
      <region left="567" top="5058" width="275" height="60" color="#000000" bgColor="#ffff00" fontSize="10">
        <math error="43" errorLocation="11">
          <input>
            <e type="operand">cp2</e>
            <e type="operand">MCP</e>
            <e type="operand" style="unit">kJ</e>
            <e type="operand" style="unit">kmol</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">/</e>
            <e type="operator" args="2">/</e>
            <e type="operand">X</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">/</e>
            <e type="function" args="2">cubic2</e>
            <e type="operand" style="unit">kJ</e>
            <e type="operand" style="unit">kmol</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">/</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">:</e>
          </input>
          <result action="numeric">
            <e type="operand">#</e>
          </result>
        </math>
      </region>
      <region left="603" top="5139" width="390" height="24" color="#000000" fontSize="10">
        <text lang="eng">
          <p fontName="Arial">The only change to cubic2 was the transpose of coeff at the end</p>
        </text>
      </region>
      <region left="108" top="5175" width="462" height="172" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">cp</e>
          </input>
          <contract>
            <e type="operand" style="unit">kJ</e>
            <e type="operand" style="unit">kmol</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">/</e>
          </contract>
          <result action="numeric">
            <e type="operand">9.1933</e>
            <e type="operand">0.1289</e>
            <e type="operand">6.0755</e>
            <e type="operand">10</e>
            <e type="operand">5</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">1.2132</e>
            <e type="operand">10</e>
            <e type="operand">8</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operand">23.1606</e>
            <e type="operand">0.0211</e>
            <e type="operand">1.1622</e>
            <e type="operand">10</e>
            <e type="operand">5</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">2.2532</e>
            <e type="operand">10</e>
            <e type="operand">9</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operand">30.9402</e>
            <e type="operand">0.0059</e>
            <e type="operand">6.3247</e>
            <e type="operand">10</e>
            <e type="operand">6</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operand">1.8992</e>
            <e type="operand">10</e>
            <e type="operand">9</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">28.9621</e>
            <e type="operand">0.0054</e>
            <e type="operator" args="1">-</e>
            <e type="operand">1.8204</e>
            <e type="operand">10</e>
            <e type="operand">5</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operand">8.5985</e>
            <e type="operand">10</e>
            <e type="operand">9</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">16.4602</e>
            <e type="operand">0.0618</e>
            <e type="operand">1.2419</e>
            <e type="operand">10</e>
            <e type="operand">5</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">3.8139</e>
            <e type="operand">10</e>
            <e type="operand">9</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">30.1377</e>
            <e type="operand">0.0095</e>
            <e type="operator" args="1">-</e>
            <e type="operand">2.1354</e>
            <e type="operand">10</e>
            <e type="operand">5</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operand">9.2552</e>
            <e type="operand">10</e>
            <e type="operand">9</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">6</e>
            <e type="operand">4</e>
            <e type="function" args="26">mat</e>
          </result>
        </math>
      </region>
      <region left="666" top="5256" width="324" height="24" color="#000000" fontSize="10">
        <text lang="eng">
          <p fontName="Arial">each row contains the coefficients for one compound</p>
        </text>
      </region>
      <region left="36" top="5373" width="587" height="100" color="#000000" fontSize="10">
        <math>
          <input>
            <e type="operand">cp</e>
            <e type="function" args="1">transpose</e>
          </input>
          <contract>
            <e type="operand" style="unit">kJ</e>
            <e type="operand" style="unit">kmol</e>
            <e type="operand" style="unit">K</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="2">/</e>
          </contract>
          <result action="numeric">
            <e type="operand">9.1933</e>
            <e type="operand">23.1606</e>
            <e type="operand">30.9402</e>
            <e type="operand">28.9621</e>
            <e type="operand">0.1289</e>
            <e type="operand">0.0211</e>
            <e type="operand">0.0059</e>
            <e type="operand">0.0054</e>
            <e type="operator" args="1">-</e>
            <e type="operand">6.0755</e>
            <e type="operand">10</e>
            <e type="operand">5</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">1.1622</e>
            <e type="operand">10</e>
            <e type="operand">5</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">6.3247</e>
            <e type="operand">10</e>
            <e type="operand">6</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operand">1.8204</e>
            <e type="operand">10</e>
            <e type="operand">5</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operand">1.2132</e>
            <e type="operand">10</e>
            <e type="operand">8</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operand">2.2532</e>
            <e type="operand">10</e>
            <e type="operand">9</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operand">1.8992</e>
            <e type="operand">10</e>
            <e type="operand">9</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">8.5985</e>
            <e type="operand">10</e>
            <e type="operand">9</e>
            <e type="operator" args="1">-</e>
            <e type="operator" args="2">^</e>
            <e type="operator" args="2">*</e>
            <e type="operator" args="1">-</e>
            <e type="operand">4</e>
            <e type="operand">4</e>
            <e type="function" args="18">mat</e>
          </result>
        </math>
      </region>
      <region left="666" top="5409" width="305" height="40" color="#000000" fontSize="10">
        <text lang="eng">
          <p fontName="Arial">the transpose function works outside the function 
environment on the cp matrix produced by cubic</p>
        </text>
      </region>
      <region top="5625" color="#000000">
        <area terminator="true" />
      </region>
    </region>
    <region left="135" top="5634" width="355" height="101" color="#000000" bgColor="#ffff00" fontSize="10">
      <math>
        <input>
          <e type="operand">num</e>
          <e type="operand">div</e>
          <e type="function" args="2">vectdiv</e>
          <e type="operand">ii</e>
          <e type="operand">1</e>
          <e type="operand">num</e>
          <e type="function" args="1">rows</e>
          <e type="function" args="2">range</e>
          <e type="operand">res</e>
          <e type="operand">ii</e>
          <e type="function" args="2">el</e>
          <e type="operand">num</e>
          <e type="operand">ii</e>
          <e type="function" args="2">el</e>
          <e type="operand">div</e>
          <e type="operand">ii</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
          <e type="function" args="3">for</e>
          <e type="operand">res</e>
          <e type="operand">2</e>
          <e type="operand">1</e>
          <e type="function" args="4">line</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="531" top="5670" width="472" height="40" color="#000000" bgColor="#ffff00" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">The vectorize function doesn't work as expected in SMath. Thus, this function 
is used below.</p>
      </text>
    </region>
    <region left="72" top="5751" width="242" height="220" color="#000000" bgColor="#ffff00" fontSize="10">
      <math>
        <input>
          <e type="operand">ω.0</e>
          <e type="operand">Mw</e>
          <e type="function" args="2">vectdiv</e>
        </input>
        <result action="numeric">
          <e type="operand">3.1456</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">3.4601</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">0.4615</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">0.1771</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">0.0204</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">27.651</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="540" top="5751" width="164" height="220" color="#000000" bgColor="#ffff00" fontSize="10">
      <math>
        <input>
          <e type="operand">ω.0</e>
          <e type="operand">Mw</e>
          <e type="operator" args="2">/</e>
          <e type="bracket">(</e>
          <e type="function" args="1">vectorize</e>
        </input>
        <result action="numeric">
          <e type="operand">31.2088</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">31.2512</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">55.5085</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">35.701</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">33.3041</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">35.6971</e>
          <e type="operand" style="unit">mol</e>
          <e type="operand" style="unit">kg</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">*</e>
          <e type="operand">6</e>
          <e type="operand">1</e>
          <e type="function" args="8">mat</e>
        </result>
      </math>
    </region>
    <region left="324" top="5850" width="57" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">correct </p>
      </text>
    </region>
    <region left="711" top="5850" width="52" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">wrong </p>
      </text>
    </region>
    <region left="36" top="5985" width="351" height="43" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ω</e>
          <e type="operand">θ</e>
          <e type="function" args="2">Cpm</e>
          <e type="operand">cp</e>
          <e type="operand">θ</e>
          <e type="operand">T.0</e>
          <e type="operator" args="2">*</e>
          <e type="function" args="1">CTf</e>
          <e type="operator" args="2">*</e>
          <e type="bracket">(</e>
          <e type="function" args="1">transpose</e>
          <e type="operand">ω</e>
          <e type="operand">Mw</e>
          <e type="function" args="2">vectdiv</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="405" top="5994" width="459" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">heat capacitiy of stream on a mass basis as a function of the state variables</p>
      </text>
    </region>
    <region left="135" top="6048" width="236" height="41" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ω.0</e>
          <e type="operand">θ.0</e>
          <e type="function" args="2">Cpm</e>
        </input>
        <contract>
          <e type="operand" style="unit">J</e>
          <e type="operand" style="unit">kg</e>
          <e type="operand" style="unit">K</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
        </contract>
        <result action="numeric">
          <e type="operand">1146.2154</e>
          <e type="operand">1</e>
          <e type="operand">1</e>
          <e type="function" args="3">mat</e>
        </result>
      </math>
    </region>
    <region left="36" top="6120" width="171" height="87" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ω</e>
          <e type="function" args="1">Mwt</e>
          <e type="operand">1</e>
          <e type="operand">ω</e>
          <e type="operand">ii</e>
          <e type="function" args="2">el</e>
          <e type="operand">Mw</e>
          <e type="operand">ii</e>
          <e type="function" args="2">el</e>
          <e type="operator" args="2">/</e>
          <e type="operand">ii</e>
          <e type="operand">1</e>
          <e type="operand">NC</e>
          <e type="function" args="4">sum</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="369" top="6129" width="178" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">molecular weight of mixture </p>
      </text>
    </region>
    <region left="36" top="6237" width="230" height="49" color="#000000" fontSize="10">
      <math>
        <input>
          <e type="operand">ω</e>
          <e type="operand">θ</e>
          <e type="operand">p</e>
          <e type="function" args="3">ρ.f</e>
          <e type="operand">p</e>
          <e type="operand">Ptot</e>
          <e type="operator" args="2">*</e>
          <e type="operand">ω</e>
          <e type="function" args="1">Mwt</e>
          <e type="operator" args="2">*</e>
          <e type="operand" style="unit">R.m</e>
          <e type="operand">T.0</e>
          <e type="operator" args="2">*</e>
          <e type="operand">θ</e>
          <e type="operator" args="2">*</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="2">:</e>
        </input>
      </math>
    </region>
    <region left="369" top="6237" width="58" height="24" color="#000000" fontSize="10">
      <text lang="eng">
        <p fontName="Arial">density </p>
      </text>
    </region>
  </regions>
</worksheet>