<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Sensors</journal-id>
<journal-title>Sensors</journal-title>
<issn pub-type="epub">1424-8220</issn>
<publisher>
<publisher-name>Molecular Diversity Preservation International (MDPI)</publisher-name></publisher></journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3390/s120810742</article-id>
<article-id pub-id-type="publisher-id">sensors-12-10742</article-id>
<article-categories>
<subj-group>
<subject>Article</subject></subj-group></article-categories>
<title-group>
<article-title>Automatic Carbon Dioxide-Methane Gas Sensor Based on the Solubility of Gases in Water</article-title></title-group>
<contrib-group>
<contrib contrib-type="author">
<name><surname>Cadena-Pereda</surname><given-names>Raúl O.</given-names></name><xref ref-type="aff" rid="af1-sensors-12-10742"><sup>1</sup></xref><xref ref-type="aff" rid="af2-sensors-12-10742"><sup>2</sup></xref><xref ref-type="corresp" rid="c1-sensors-12-10742"><sup>*</sup></xref></contrib>
<contrib contrib-type="author">
<name><surname>Rivera-Muñoz</surname><given-names>Eric M.</given-names></name><xref ref-type="aff" rid="af3-sensors-12-10742"><sup>3</sup></xref></contrib>
<contrib contrib-type="author">
<name><surname>Herrera-Ruiz</surname><given-names>Gilberto</given-names></name><xref ref-type="aff" rid="af4-sensors-12-10742"><sup>4</sup></xref></contrib>
<contrib contrib-type="author">
<name><surname>Gomez-Melendez</surname><given-names>Domingo J.</given-names></name><xref ref-type="aff" rid="af2-sensors-12-10742"><sup>2</sup></xref></contrib>
<contrib contrib-type="author">
<name><surname>Anaya-Rivera</surname><given-names>Ely K.</given-names></name><xref ref-type="aff" rid="af2-sensors-12-10742"><sup>2</sup></xref></contrib></contrib-group>
<aff id="af1-sensors-12-10742">
<label>1</label> Laboratorio de Biotrónica, Departamento de Investigación y Posgrado, Facultad de Ingeniería, Universidad Autónoma de Querétaro, Centro Universitario Cerro de las Campanas S/N, Querétaro 76010, Mexico</aff>
<aff id="af2-sensors-12-10742">
<label>2</label> Universidad Politécnica de Querétaro, Carretera Estatal 420 S/N, El Rosario, C.P. 76240, El Marqués, Querétaro 76010, Mexico; E-Mails: <email>domingo.gomez@upq.mx</email> (D.J.G.-M.); <email>karina.anaya@upq.mx</email> (E.K.A.-R.)</aff>
<aff id="af3-sensors-12-10742">
<label>3</label> Centro de Física Aplicada y Tecnología Avanzada Universidad Nacional Autónoma de México, A. P. 1-1010, Querétaro 76000, Mexico; E-Mail: <email>emrivera@fata.unam.mx</email></aff>
<aff id="af4-sensors-12-10742">
<label>4</label> Facultad de Ingeniería, Universidad Autónoma de Querétaro, Centro Universitario Cerro de las Campanas S/N, Querétaro 76010, Mexico; E-Mail: <email>gherrera@uaq.mx</email></aff>
<author-notes>
<corresp id="c1-sensors-12-10742">
<label>*</label>Author to whom correspondence should be addressed; E-Mail: <email>omar.cadena@upq.edu.mx</email>; Tel.: +52-442-266-7362.</corresp></author-notes>
<pub-date pub-type="collection">
<year>2012</year></pub-date>
<pub-date pub-type="epub">
<day>06</day>
<month>08</month>
<year>2012</year></pub-date>
<volume>12</volume>
<issue>8</issue>
<fpage>10742</fpage>
<lpage>10758</lpage>
<history>
<date date-type="received">
<day>01</day>
<month>07</month>
<year>2012</year></date>
<date date-type="rev-recd">
<day>31</day>
<month>07</month>
<year>2012</year></date>
<date date-type="accepted">
<day>02</day>
<month>08</month>
<year>2012</year></date></history>
<permissions>
<copyright-statement>© 2012 by the authors; licensee MDPI, Basel, Switzerland.</copyright-statement>
<copyright-year>2012</copyright-year>
<license>
<p>This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license (http://creativecommons.org/licenses/by/3.0/).</p></license></permissions>
<abstract>
<p>Biogas methane content is a relevant variable in anaerobic digestion processing where knowledge of process kinetics or an early indicator of digester failure is needed. The contribution of this work is the development of a novel, simple and low cost automatic carbon dioxide-methane gas sensor based on the solubility of gases in water as the precursor of a sensor for biogas quality monitoring. The device described in this work was used for determining the composition of binary mixtures, such as carbon dioxide-methane, in the range of 0–100%. The design and implementation of a digital signal processor and control system into a low-cost Field Programmable Gate Array (FPGA) platform has permitted the successful application of data acquisition, data distribution and digital data processing, making the construction of a standalone carbon dioxide-methane gas sensor possible.</p></abstract>
<kwd-group>
<kwd>reconfigurable logic</kwd>
<kwd>gas solubility</kwd>
<kwd>binary gas sensor</kwd>
<kwd>mathematical model</kwd></kwd-group></article-meta></front>
<body>
<sec sec-type="intro">
<label>1.</label>
<title>Introduction</title>
<p>Low-cost chemical analysis sensors can have a great impact in fields such as environmental preservation and energy efficiency. There is a growing market for this kind of sensor, especially for low-cost and reliable sensors focused on carbon dioxide (CO<sub>2</sub>)-methane (CH<sub>4</sub>) mixtures in biogas quality monitoring applications [<xref ref-type="bibr" rid="b1-sensors-12-10742">1</xref>]. Currently, the most studied method to transform waste into energy is anaerobic digestion, which can convert a variety of wastes, such as agricultural waste from animals and plants and municipal waste, into a full energy product such as biogas [<xref ref-type="bibr" rid="b2-sensors-12-10742">2</xref>]. The preferred technology for the analysis of single components in raw biogas, specifically to determine the CH<sub>4</sub> and CO<sub>2</sub> content, is optical sensors, which detect infrared absorption in the characteristic wavelengths for these molecules [<xref ref-type="bibr" rid="b3-sensors-12-10742">3</xref>]. In the literature, biogas composition has been measured with gas infrared analyzers, such as those used by Sedlačík and Dvořáčková [<xref ref-type="bibr" rid="b2-sensors-12-10742">2</xref>], who utilized a GASCARD II infrared gas sensor from Edinburgh Instruments [<xref ref-type="bibr" rid="b4-sensors-12-10742">4</xref>]; Nordberg <italic>et al.</italic> [<xref ref-type="bibr" rid="b5-sensors-12-10742">5</xref>], who used a Model 6500 visible/near-infrared scanning monochromator from FOSS NIRSystems [<xref ref-type="bibr" rid="b6-sensors-12-10742">6</xref>] and Steyer <italic>et al.</italic> [<xref ref-type="bibr" rid="b7-sensors-12-10742">7</xref>], who used a Siemens Ultramat 22P, which works on the principle of the nondispersive absorption of infrared light [<xref ref-type="bibr" rid="b8-sensors-12-10742">8</xref>]. Additionally, semiconductor diode lasers for use in the mid-infrared spectral region based upon lead-salt operating near 7.8 μm have also been used for methane measurements [<xref ref-type="bibr" rid="b9-sensors-12-10742">9</xref>]. However, there are two main drawbacks to the sensors outlined above: high cost and difficulty of installation at all biogas production sites [<xref ref-type="bibr" rid="b1-sensors-12-10742">1</xref>]. For comparison, the cost of a commercial FTIR spectrophotometer is near $20,000 USD [<xref ref-type="bibr" rid="b10-sensors-12-10742">10</xref>], while the estimated cost of the gas sensor described here is approximately $5,000 USD. The described sensor is also easy to build and operate.</p>
<p>Methods for the acquisition of biogas methane content based in a variety of measurement principles have been reported in the literature. For example, Mandal <italic>et al.</italic> [<xref ref-type="bibr" rid="b11-sensors-12-10742">11</xref>] determined biogas quality using flame temperature as the measurement principle. In this case, the steady-state flame temperature was measured using a system consisting of a thermocouple probe and an analog temperature indicator. In addition, Rego and Mendes [<xref ref-type="bibr" rid="b1-sensors-12-10742">1</xref>] and Rego <italic>et al.</italic> [<xref ref-type="bibr" rid="b12-sensors-12-10742">12</xref>] described a permselective gas sensor for determining the composition of carbon dioxide-methane mixtures in the 0–100% range. The sensor consisted of a permselective membrane, a pressure transducer for measuring the permeate pressure and a needle valve for controlling the permeate outlet to the atmosphere. Furthermore, Rozzi <italic>et al.</italic> [<xref ref-type="bibr" rid="b13-sensors-12-10742">13</xref>] used a thermostatically controlled cell containing 0.1 mol · L<sup>−1</sup> sodium bicarbonate in which the pH was monitored by an Orion combination glass electrode and an Orion Model 601A specific ion meter. When the pH reading had stabilized, gas samples were taken using a syringe and analyzed for CO<sub>2</sub> and CH<sub>4</sub> content using gas-solid chromatography on molecular sieves with nitrogen as the carrier gas and a katharometer for the detector.</p>
<p>Carlson and Martisson [<xref ref-type="bibr" rid="b14-sensors-12-10742">14</xref>] presented a technique to quantify variations in ultrasound pulse shape caused by interactions between the constituents of a two-component gas mixture as an alternative method to extract information concerning the molar fraction of a gas in a binary mixture. Additionally, Tardy <italic>et al.</italic> [<xref ref-type="bibr" rid="b15-sensors-12-10742">15</xref>] developed a dynamic thermal conductivity sensor for gas detection based on the transient thermal response of a SiC micro-plate slightly heated by a screen-printed Pt resistance. This device was intended for specific application in the determination of the specific gases in a mixture.</p>
<p>Gonzalez <italic>et al.</italic> [<xref ref-type="bibr" rid="b16-sensors-12-10742">16</xref>] used a device that passed the produced biogas through an Erlenmeyer flask filled with a 20% NaOH solution followed by a tube filled with soda lime pellets. The gas then passed through a Mariotte flask system containing water for the quantification of methane production. The displaced water was collected in a plastic container on a pressure sensor (QB 745, DS-Europe) for continuous monitoring of CH<sub>4</sub> production.</p>
<p>A Field Programmable Gate Array (FPGA) is an array of basic logic blocks where the user can define its interconnectivity, making it programmable in a fully open architecture. Therefore, an FPGA provides the advantages of a general-purpose processor and a specialized circuit that can be reconfigured as many times as necessary until the required functionality is achieved. The speed and size of the FPGA are comparable with the Application Specific Integrated Circuit (ASIC), but the FPGA is more versatile and its design cycle is shorter because of its reconfigurability. FPGA applications go beyond the simple implementation of digital logic; they can be used for the implementation of specific architectures for speeding up some algorithms. A specific structure for an algorithm implemented into an FPGA could have 10–100 times higher performance than its implementation on a Digital Signal Processor (DSP) or microprocessor.</p>
<p>Due to the sequential processing data flow on commercially available DSPs and microprocessors, the increase in sampling rate, mathematical processing, or versatility can impose severe restrictions on processor performance. Therefore, other alternatives for signal processing must be considered to achieve real-time data acquisition and data pre-processing. Moreover, FPGA devices have been gaining market share in system on chip (SOC) applications because they can integrate processing units defined by the user and related peripheral logic in the hardware, combining open architectures that do not depend on the manufacturer or specific platforms. However, DSPs and microprocessors have a fixed sequential construction for computation, which can easily be overloaded when the processing time between samples is significantly reduced, as in high-speed control, while FPGAs have a natural parallel architecture for high-speed computation. Along with the advantages previously cited, FPGA development is performed under Hardware Description Language (HDL), making the design portable and platform independent, which is not the case for commercially available DSPs or microprocessors.</p>
<p>In this paper, the development of a low-cost automatic carbon dioxide-methane gas sensor based on the principle of the solubility of gaseous species in water is reported. The novelty of this work is two-fold. First, a physical principle, never used before, is applied for binary mixture quantification, drastically reducing the cost and complexity of the equipment and facilitating on-line monitoring. Second, the hardware implemented in the FPGA has the capacity for data acquisition, data distribution, data processing, data communication and control, adding functionality and autonomy to the automatic carbon dioxide-methane gas sensor and allowing it to be deployed in the field.</p></sec>
<sec>
<label>2.</label>
<title>Experimental Section</title>
<p>The design of the hardware developed is divided into several components: an RS-232 Interface, an Activation State Timer, the Control, proportional integral derivative (PID) Temperature Control, Data Processing, Sampling Time Base, Data Acquisition and Distribution and Polynomial Linearization. A general block diagram of the complete digital system for the automatic carbon dioxide-methane gas sensor is shown in <xref ref-type="fig" rid="f1-sensors-12-10742">Figure 1</xref>.</p>
<sec>
<label>2.1.</label>
<title>Description of the Gas Sensor</title>
<p>To quantitatively determine the binary gas mixture, the carbon dioxide-methane gas sensor has to perform a three-stage cycle: sampling, adsorption and regeneration. In the sampling stage, the device takes in a predefined volume of gas in the measuring cell and calculates the number of moles of the binary gas mixture inside the measurement cell. In the next stage (absorption), the gas sensor removes the CO<sub>2</sub> from the gaseous sample by movement-enhanced contact with a fixed quantity of absorption liquid. At the end of the absorption stage, the digital system calculates the remaining number of moles and displays the methane content percentage in the sample. In the third and last stage (regeneration), the gas sensor regenerates the CO<sub>2</sub> saturated absorption liquid by movement-enhanced contact with air, releasing absorbed CO<sub>2</sub> to the atmosphere. <xref ref-type="fig" rid="f2-sensors-12-10742">Figure 2</xref> depicts the carbon dioxide-methane gas sensor, the constituent parts of which are a container (1), heat transfer fluid; (2), absorption liquid; (3), an absorption liquid recirculation pump; (4), a heat transfer fluid recirculation pump; (5), a fan; (6), a heat sink; (7), a thermoelectric module; (8), a heat exchanger; (9), a flexible measurement cell; (10), a flexible PVC reservoir; (11), an air intake 2-way solenoid valve (S1), a gaseous binary mixture sample intake 2-way solenoid valve (S2), a gas exhaust 2-way solenoid valve (S3), two mini compressors (C), an absolute pressure sensor (PA), a gauge pressure sensor (PG) used as level sensor, a temperature sensor (T) and electronics for control, data acquisition, data processing, data distribution, displaying and computer communication.</p>
<p>The container is composed of an acrylic tube (6.35 mm thick, 88.9 mm output diameter and 300 mm long) with two PVC caps attached to both ends. The aim of the container is to hold the measurement cell and the heat transfer fluid and to prevent heat transfer fluid evaporation loss to the atmosphere. The aim of the heat transfer fluid, together with the refrigeration system, is to keep the temperature of the measurement system stable. The level of the heat transfer fluid inside the container is affected by the volume inside the measurement cell, which together with a gauge pressure sensor, allows the digital system to monitor volume changes inside the measurement cell. Water was chosen as the heat transfer fluid because it has a high specific heat, is non-polluting and is abundant.</p>
<p>Inside the measurement cell, the absorption liquid is found. The objective of the absorption liquid is to remove the CO<sub>2</sub> from the sample of the gaseous binary mixture. Water was chosen because, at 288.15 K, the CO<sub>2</sub> (X<sub>1</sub> = 8.21 × 10<sup>−4</sup> mole fraction) is 26.29 times more soluble than CH<sub>4</sub> (X<sub>1</sub> = 3.122 × 10<sup>−5</sup> mole fraction) [<xref ref-type="bibr" rid="b17-sensors-12-10742">17</xref>]. Such a difference helps to efficiently separate both gaseous species, which is the physical principle proposed in this paper.</p>
<p>For the recirculation of the absorption liquid, a wiper washer mini-pump from ACDelco [<xref ref-type="bibr" rid="b18-sensors-12-10742">18</xref>] was chosen because it has a small size that is suitable for this application, wide availability and low cost. This mini-pump re-circulates the absorption liquid inside the measurement cell to enhance the contact between the phases. The heat transfer fluid recirculation pump, which is also an automotive centrifugal mini-pump, re-circulates the heat transfer fluid inside the container and through the heat exchanger, promoting heat transfer from the measurement system to the atmosphere. The thermoelectric module (C1-54-2808 from Tellurex) is a semiconductor-based device that functions as a heat pump, moving heat from one of its sides to the other [<xref ref-type="bibr" rid="b19-sensors-12-10742">19</xref>]. Among its characteristics, it can create a maximum temperature difference of 79 °C between its hot and cold sides and a maximum thermal load of 139.7 watts, achieving temperatures well below the ambient temperature. This device removes energy from the heat exchanger, pumping it to the atmosphere.</p>
<p>The heat exchanger is a copper plate with polished surfaces to which the thermoelectric cell can be attached, promoting heat transfer. The copper plate has holes drilled into it to allow the heat transfer fluid to re-circulate through, keeping the liquid confined but allowing heat transfer. The measurement cell is made of flexible PVC with an effective volume of 250 cm<sup>3</sup>, holding a fixed volume of absorption liquid necessary to absorb CO<sub>2</sub> from the sample. During the sampling stage, the measurement cell also holds the volume of the gaseous binary mixture sample ready to be analyzed (100 cm<sup>3</sup>). The volumetric cell is also intended to serve as a barrier between the absorption liquid and the heat transfer fluid to prevent measurement error due to CO<sub>2</sub> dilution into the heat transfer fluid. Although a small amount of CO<sub>2</sub> permeates through the flexible PVC barrier, it is not a significant source of error. The volumetric cell film has a contact surface of 125.0 cm<sup>2</sup> and a thickness of 3.3 × 10<sup>−2</sup> cm. Therefore, using a CO<sub>2</sub> differential partial pressure of 4.0 × 10<sup>−1</sup> atm (4.13 × 10<sup>−1</sup> kg middot;cm<sup>−2</sup>), the CO<sub>2</sub> permeation through this PVC film is on the order of 1.83 × 10<sup>−6</sup> cm<sup>3</sup>middot;s<sup>−1</sup> [<xref ref-type="bibr" rid="b20-sensors-12-10742">20</xref>]. The flexible PVC barrier actually prevents a too rapid CO<sub>2</sub> dilution into the heat transfer fluid.</p>
<p>This carbon dioxide-methane gas sensor, with a calibrated volume of 100 cm<sup>3</sup>, is capable of measuring methane concentrations from 0 to 100%. Considering a worst-case scenario where the methane concentration is at a minimum, the gaseous sample is retained inside the volumetric cell for 20 min at most, so the maximum CO<sub>2</sub> permeated volume reaches 2.2 × 10<sup>−3</sup> cm<sup>3</sup>. Thus, the maximum loss is 0.0022% of the volume in every reading, an amount that can be afforded without a significant decrease in performance. The flexible PVC reservoir that permits the expansion and contraction of the measurement cell serves as a barrier to avoid direct contact of heat transfer fluid with the atmosphere, preventing evaporation and CO<sub>2</sub> loss and improving measurement stability and reliability. The air intake valve (2-way solenoid) is the actuator that allows air to enter into the measuring cell each time the system is in the regeneration step. The gaseous sample intake valve (2-way solenoid) is the actuator that permits sample access to the measurement cell every time the sensor is in the sampling stage. Finally, the gas exhaust valve (2-way-solenoid) is the actuator that permits gases to exit the measurement cell every time the sensor is in the regeneration stage.</p>
<p>Two KPV-20A mini-compressors from Clark solutions [<xref ref-type="bibr" rid="b21-sensors-12-10742">21</xref>] were used to move the gaseous binary mixture to be analyzed or the air for absorption liquid regeneration into the measurement cell. A US381-000005-030PA sensor from Measurement Specialties [<xref ref-type="bibr" rid="b22-sensors-12-10742">22</xref>] was used to measure the absolute pressure inside the measurement cell. The pressure readings obtained allow the system to calculate the number of moles that enter the system. This sensor has a measurement range of 0 to 30 psi (0 to 2.109 kg · cm<sup>−2</sup>) of absolute pressure, with an output current range of 4 to 20 mA. A gauge pressure sensor (26PC01SMT, Honeywell) [<xref ref-type="bibr" rid="b23-sensors-12-10742">23</xref>] was used as a level sensor of the heat transfer fluid inside the container. The gauge pressure readings properly transformed in level data represent the volume of the gas inside the measurement cell. This pressure sensor is temperature compensated, with a voltage output of 16.7 mV · psi<sup>−1</sup> and a range of 0 to 1 psi (0 to 4.88 × 10<sup>−4</sup> kg · cm<sup>−2</sup>).</p>
<p>The sensor used for monitoring and controlling the heat transfer fluid temperature is a LM35 temperature sensor from National Semiconductor [<xref ref-type="bibr" rid="b24-sensors-12-10742">24</xref>]. This sensor has a measurement range from −55 to 150 °C (218.16 to 423.16 K) and a linear voltage output of 10 mV · K<sup>−1</sup>. The temperature of the device is maintained at 288.15 K; control is needed because CO<sub>2</sub> absorption is strongly temperature dependent. It has been reported that the absorption coefficient at 288.15 K is 8.21 × 10<sup>−4</sup> and at 293.15 K it is 7.07 × 10<sup>−4</sup>, translating to a change of 13.8% with a 5 °C temperature change [<xref ref-type="bibr" rid="b17-sensors-12-10742">17</xref>].</p>
<p>In the initial state, the air intake valve and sample intake valve are closed, with both mini-compressors off, as is the absorption liquid recirculation mini-pump. The exhaust valve is open and the measurement system is ready to begin a measurement cycle. When a measurement cycle begins, the reading from the heat transfer liquid level sensor is recorded. This value is a reference from which any level change is caused by the gaseous sample and not by absorption liquid inside the measurement cell. Once the level reading is stored, the digital system closes the exhaust valve, opens the sample intake valve (S2) and the corresponding mini-compressor is turned on to pull a sample of a gaseous binary mixture with a volume of 100 cm<sup>3</sup>. Next, the sample intake valve (S2) closes, the mini-compressor that injects the sample is turned off, the number of moles admitted with the sample is calculated and the data obtained is stored to later calculate the CH<sub>4</sub> percentage in the sample. Once the number of moles in the sample is calculated, the system turns on the absorption liquid mini-pump for 20 min. This action promotes interfacial contact between the gaseous sample and the absorption liquid, extracting CO<sub>2</sub> from the sample. Once the absorption step is finished, the quantity of moles of the remaining gaseous sample inside the measurement cell is computed and the resulting data are stored.</p>
<p>The algebraic difference between the quantity of moles in the sample and the quantity of moles remaining after CO<sub>2</sub> absorption is computed to obtain the percentage of methane content in the sampled binary mixture. The data obtained, due to the non-linear response of the system, are not ease to interpret. To overcome this situation, a polynomial linearization is also performed. The residual gas inside the measurement cell is released to the atmosphere through the activation of the gas exhaust solenoid valve (S3). To perform the regeneration cycle, the air intake valve (S1) is opened and the corresponding mini-compressor is turned on, injecting a volume of 100 cm<sup>3</sup> of air into the measurement cell. At this point, the recirculation mini-pump is kept active for five minutes, after which the gas inside the measurement cell is released to the atmosphere. This cycle is repeated four times and is intended to remove CO<sub>2</sub> from the absorption liquid and leave the system ready for another measurement cycle.</p></sec>
<sec>
<label>2.2.</label>
<title>Mathematical Model</title>
<p>The measurement principle on which the carbon dioxide-methane gas meter is based is the difference between the water dilution coefficients of CH<sub>4</sub> and CO<sub>2</sub> at a given temperature (<italic>i.e.</italic>, a larger quantity of one gas dissolves than the other at the selected temperature). A mathematical model was thus developed to predict the theoretical behavior of this physical phenomenon and to serve as a guide into the design of the sensor. The mathematical model was also useful to validate the operational performance of the sensor. To calculate the number of moles of water needed to completely dissolve a sample consisting exclusively of CO<sub>2</sub>, the following equation is used:
<disp-formula id="FD1">
<label>(1)</label>
<mml:math id="mm1" display="block">
<mml:semantics id="sm1">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula>where <italic>n<sub>H</sub></italic><sub>2</sub><italic><sub>O</sub></italic> is the number of moles of water, <italic>n<sub>CO</sub></italic><sub>2</sub> is the number of moles of CO<sub>2</sub> in a sample consisting exclusively of this substance and <italic>X<sub>CO</sub></italic><sub>2</sub> is the molar fraction of CO<sub>2</sub> in the water.</p>
<p>To determine the equilibrium that exists between a finite number of moles of a binary gas mixture (CO<sub>2</sub> and CH<sub>4</sub>) and a finite number of moles of absorption water, the equations that describe the molar fraction of gases in water and the mole fraction of gases in the sample should be considered. The equation relating the gas dissolved in the liquid phase in contact with the gas phase should also be considered.</p>
<p>The following equations describe the dilution in water saturated with a binary mixture of gaseous species:
<disp-formula id="FD2">
<label>(2)</label>
<mml:math id="mm2" display="block">
<mml:semantics id="sm2">
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>p</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula>
<disp-formula id="FD3">
<label>(3)</label>
<mml:math id="mm3" display="block">
<mml:semantics id="sm3">
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>p</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula>where <italic>X<sub>CO</sub></italic><sub>2</sub> is the CO<sub>2</sub> molar fraction in water, <italic>P<sub>CO</sub></italic><sub>2</sub><italic><sub>p</sub></italic> is the partial pressure of CO<sub>2</sub> (in atm), <italic>n<sub>CO</sub></italic><sub>2</sub> is the number of moles of CO<sub>2</sub> dissolved in the absorption water, <italic>n<sub>CH4</sub></italic> is the number of moles of CH<sub>4</sub> dissolved in the absorption water, <italic>n<sub>H</sub></italic><sub>2</sub><italic><sub>O</sub></italic> is the number of moles of absorption water, <italic>X<sub>CH</sub></italic><sub>4</sub> is the CH<sub>4</sub> molar fraction in water and <italic>P<sub>CH</sub></italic><sub>4</sub><italic><sub>p</sub></italic> is the partial pressure of CH<sub>4</sub> (in atm).</p>
<p><xref rid="FD2" ref-type="disp-formula">Equation (2)</xref> is solved for <italic>n<sub>CO</sub></italic><sub>2</sub> and <xref rid="FD3" ref-type="disp-formula">Equation (3)</xref> is solved for <italic>n<sub>CH</sub></italic><sub>4</sub> to obtain <xref rid="FD4" ref-type="disp-formula">Equations (4)</xref> and <xref rid="FD5" ref-type="disp-formula">(5)</xref>, respectively:
<disp-formula id="FD4">
<label>(4)</label>
<mml:math id="mm4" display="block">
<mml:semantics id="sm4">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>p</mml:mi></mml:mrow></mml:msub>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:mo stretchy="false">)</mml:mo></mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>p</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula>
<disp-formula id="FD5">
<label>(5)</label>
<mml:math id="mm5" display="block">
<mml:semantics id="sm5">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>p</mml:mi></mml:mrow></mml:msub>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:mo stretchy="false">)</mml:mo></mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>p</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p><xref rid="FD6" ref-type="disp-formula">Equations (6)</xref> and <xref rid="FD7" ref-type="disp-formula">(7)</xref> describe the concentrations of CO<sub>2</sub> and CH<sub>4</sub> in the gaseous phase, respectively. These equations are equivalent to the partial pressure of each of the gases in the mixture:
<disp-formula id="FD6">
<label>(6)</label>
<mml:math id="mm6" display="block">
<mml:semantics id="sm6">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>p</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>g</mml:mi></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>g</mml:mi></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>g</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula>
<disp-formula id="FD7">
<label>(7)</label>
<mml:math id="mm7" display="block">
<mml:semantics id="sm7">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>p</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>g</mml:mi></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>g</mml:mi></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>g</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula>where <italic>P<sub>CO</sub></italic><sub>2</sub><italic><sub>p</sub></italic> is the partial pressure of CO<sub>2</sub> in the mixture (in atm), <italic>n<sub>CO</sub></italic><sub>2</sub><italic><sub>g</sub></italic> is the moles of CO<sub>2</sub> in the gaseous phase, <italic>n<sub>CH</sub></italic><sub>4</sub><italic><sub>g</sub></italic> is the moles of CH<sub>4</sub> in the gaseous phase and <italic>P<sub>CH</sub></italic><sub>4</sub><italic><sub>p</sub></italic> is the partial pressure of CH<sub>4</sub> in the mixture (in atm).</p>
<p>When a gas sample is taken, there exists a finite quantity of moles of CO<sub>2</sub> and CH<sub>4</sub>, which are in contact with a finite quantity of moles of the absorption liquid. Part of those moles in the gaseous phase will dilute into the absorption liquid until equilibrium is reached. Despite this fact, the quantity of moles of both gases remains the same. The constant quantity of moles for both of the gases is described by <xref rid="FD8" ref-type="disp-formula">Equations (8)</xref> and <xref rid="FD9" ref-type="disp-formula">(9)</xref>, respectively:
<disp-formula id="FD8">
<label>(8)</label>
<mml:math id="mm8" display="block">
<mml:semantics id="sm8">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>g</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:semantics></mml:math></disp-formula>
<disp-formula id="FD9">
<label>(9)</label>
<mml:math id="mm9" display="block">
<mml:semantics id="sm9">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>g</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:semantics></mml:math></disp-formula>where <italic><sub>n</sub>CO</italic><sub>2</sub><italic>m</italic> is the number of moles of CO<sub>2</sub> in the unaltered sample, <italic>n<sub>CO</sub></italic><sub>2</sub> is the number of moles of CO<sub>2</sub> dissolved in the absorption liquid, <italic>n<sub>CO</sub></italic><sub>2</sub><italic><sub>g</sub></italic> is the number of moles of CO<sub>2</sub> in the gaseous phase, <italic>n<sub>CH</sub></italic><sub>4</sub><italic><sub>m</sub></italic> is the number of moles of CH<sub>4</sub> in the unaltered sample, <italic>n<sub>CH</sub></italic><sub>4</sub> is the number of moles of CH<sub>4</sub> dissolved in the absorption liquid and <italic>n<sub>CH</sub></italic><sub>4</sub><italic><sub>g</sub></italic> is the number of moles of CH<sub>4</sub> in the gaseous phase. By solving <xref rid="FD8" ref-type="disp-formula">Equation (8)</xref> for <italic>n<sub>CO</sub></italic><sub>2</sub><italic><sub>g</sub></italic> and <xref rid="FD9" ref-type="disp-formula">Equation (9)</xref> for <italic>n<sub>CH</sub></italic><sub>4</sub><italic><sub>g</sub></italic>, <xref rid="FD10" ref-type="disp-formula">Equations (10)</xref> and <xref rid="FD11" ref-type="disp-formula">(11)</xref> are obtained:
<disp-formula id="FD10">
<label>(10)</label>
<mml:math id="mm10" display="block">
<mml:semantics id="sm10">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>g</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:semantics></mml:math></disp-formula>
<disp-formula id="FD11">
<label>(11)</label>
<mml:math id="mm11" display="block">
<mml:semantics id="sm11">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>g</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p>To leave these equations in terms of <italic><sub>n</sub>CO</italic><sub>2</sub>, <italic><sub>n</sub>CH</italic><sub>4</sub>, <italic>n<sub>CO</sub></italic><sub>2</sub><italic><sub>m</sub></italic> and <italic>n<sub>CO</sub></italic><sub>4</sub><italic><sub>m</sub></italic>, <xref rid="FD10" ref-type="disp-formula">Equations (10)</xref> and <xref rid="FD11" ref-type="disp-formula">(11)</xref> are substituted into <xref rid="FD6" ref-type="disp-formula">Equations (6)</xref> and <xref rid="FD7" ref-type="disp-formula">(7)</xref>, resulting in <xref rid="FD12" ref-type="disp-formula">Equations (12)</xref> and <xref rid="FD13" ref-type="disp-formula">(13)</xref>:
<disp-formula id="FD12">
<label>(12)</label>
<mml:math id="mm12" display="block">
<mml:semantics id="sm12">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>p</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula>
<disp-formula id="FD13">
<label>(13)</label>
<mml:math id="mm13" display="block">
<mml:semantics id="sm13">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>p</mml:mi></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p><xref rid="FD12" ref-type="disp-formula">Equations (12)</xref> and <xref rid="FD13" ref-type="disp-formula">(13)</xref> describe the partial pressures of CO<sub>2</sub> and CH<sub>4</sub> in terms of <italic>n<sub>CO</sub></italic><sub>2</sub>, <italic>n<sub>CH</sub></italic><sub>4</sub> <italic>n<sub>CO</sub></italic><sub>2</sub><italic><sub>m</sub></italic> and <italic>n<sub>CO</sub></italic><sub>4</sub><italic><sub>m</sub></italic>. These equations are substituted in <xref rid="FD4" ref-type="disp-formula">Equations (4)</xref> and <xref rid="FD5" ref-type="disp-formula">(5)</xref>, resulting in <xref rid="FD14" ref-type="disp-formula">Equations (14)</xref> and <xref rid="FD15" ref-type="disp-formula">(15)</xref>, respectively:
<disp-formula id="FD14">
<label>(14)</label>
<mml:math id="mm14" display="block">
<mml:semantics id="sm14">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:mo stretchy="false">)</mml:mo></mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula>
<disp-formula id="FD15">
<label>(15)</label>
<mml:math id="mm15" display="block">
<mml:semantics id="sm15">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>H</mml:mi></mml:mrow>
<mml:mn>4</mml:mn></mml:msub></mml:mrow>
<mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:mo stretchy="false">)</mml:mo></mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>H</mml:mi></mml:mrow>
<mml:mn>4</mml:mn></mml:msub></mml:mrow>
<mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:msub></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p><xref rid="FD14" ref-type="disp-formula">Equation (14)</xref> is solved for <italic>n<sub>CO</sub></italic><sub>2</sub> and <xref rid="FD15" ref-type="disp-formula">Equation (15)</xref> is solved for <italic>n<sub>CH</sub></italic><sub>4</sub> again, resulting in <xref rid="FD16" ref-type="disp-formula">Equations (16)</xref> and <xref rid="FD17" ref-type="disp-formula">(17)</xref>:
<disp-formula id="FD16">
<label>(16)</label>
<mml:math id="mm16" display="block">
<mml:semantics id="sm16">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>±</mml:mo></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:msqrt>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:msup>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mn>2</mml:mn></mml:msup>
<mml:mo>−</mml:mo></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mn>4</mml:mn>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mo>−</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:msqrt></mml:mtd></mml:mtr></mml:mtable>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mo>−</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula>
<disp-formula id="FD17">
<label>(17)</label>
<mml:math id="mm17" display="block">
<mml:semantics id="sm17">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>±</mml:mo></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:msqrt>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:msup>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mn>2</mml:mn></mml:msup>
<mml:mo>−</mml:mo></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mn>4</mml:mn>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mo>−</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:msqrt></mml:mtd></mml:mtr></mml:mtable>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mo>−</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p>These equations have one square root each; therefore, there are two possible solutions that satisfy each of them. To make them independent of each other, <xref rid="FD16" ref-type="disp-formula">Equation (16)</xref> was substituted into <xref rid="FD17" ref-type="disp-formula">Equation (17)</xref> and <italic>vice versa</italic>. The resulting equations were then solved for <italic><sub>n</sub>CO</italic><sub>2</sub> and <italic><sub>n</sub>CH</italic><sub>4</sub>, providing <xref rid="FD18" ref-type="disp-formula">Equations (18)</xref> and <xref rid="FD19" ref-type="disp-formula">(19)</xref>:
<disp-formula id="FD18">
<label>(18)</label>
<mml:math id="mm18" display="block">
<mml:semantics id="sm18">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>O</mml:mi></mml:mrow>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msup>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>O</mml:mi></mml:mrow>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mn>2</mml:mn></mml:msup>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msup>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>O</mml:mi></mml:mrow>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mn>2</mml:mn></mml:msup></mml:mtd></mml:mtr></mml:mtable>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mo>−</mml:mo></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:msqrt>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:msup>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>O</mml:mi></mml:mrow>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msup>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>O</mml:mi></mml:mrow>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mn>2</mml:mn></mml:msup>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msup>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>O</mml:mi></mml:mrow>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mn>2</mml:mn></mml:msup></mml:mtd></mml:mtr></mml:mtable>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mn>2</mml:mn></mml:msup>
<mml:mo>−</mml:mo></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mn>4</mml:mn>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msup>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>O</mml:mi></mml:mrow>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mn>2</mml:mn></mml:msup>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msup>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>O</mml:mi></mml:mrow>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mn>2</mml:mn></mml:msup></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:msqrt></mml:mtd></mml:mtr></mml:mtable>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msup>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>O</mml:mi></mml:mrow>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mn>2</mml:mn></mml:msup></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula>
<disp-formula id="FD19">
<label>(19)</label>
<mml:math id="mm19" display="block">
<mml:semantics id="sm19">
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msup>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>H</mml:mi></mml:mrow>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mn>2</mml:mn></mml:msup>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msup>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>H</mml:mi></mml:mrow>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mn>2</mml:mn></mml:msup></mml:mtd></mml:mtr></mml:mtable>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mo>−</mml:mo></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:msqrt>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:msup>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msup>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>H</mml:mi></mml:mrow>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mn>2</mml:mn></mml:msup>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msup>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>H</mml:mi></mml:mrow>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mn>2</mml:mn></mml:msup></mml:mtd></mml:mtr></mml:mtable>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mn>2</mml:mn></mml:msup>
<mml:mo>−</mml:mo></mml:mtd></mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mn>4</mml:mn>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>O</mml:mi></mml:mrow></mml:msub>
<mml:msup>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>H</mml:mi></mml:mrow>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mn>2</mml:mn></mml:msup>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msup>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>H</mml:mi></mml:mrow>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mn>2</mml:mn></mml:msup></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:msqrt></mml:mtd></mml:mtr></mml:mtable>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>−</mml:mo>
<mml:msup>
<mml:mrow>
<mml:msub>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:mi>H</mml:mi></mml:mrow>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub></mml:mrow>
<mml:mn>2</mml:mn></mml:msup></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p><xref rid="FD18" ref-type="disp-formula">Equations (18)</xref> and <xref rid="FD19" ref-type="disp-formula">(19)</xref> describe the number of moles of CO<sub>2</sub> and CH<sub>4</sub>, respectively, dissolved in the absorption water at equilibrium.</p>
<p>Finally, to obtain the response of the device based on the mathematical model, <xref rid="FD20" ref-type="disp-formula">Equation (20)</xref> is applied:
<disp-formula id="FD20">
<label>(20)</label>
<mml:math id="mm20" display="block">
<mml:semantics id="sm20">
<mml:mrow>
<mml:mi>Y</mml:mi>
<mml:mo>=</mml:mo>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo stretchy="false">)</mml:mo>
<mml:mo>−</mml:mo>
<mml:mo stretchy="false">(</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:msub>
<mml:mo stretchy="false">)</mml:mo></mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>H</mml:mi>
<mml:mn>4</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>n</mml:mi>
<mml:mrow>
<mml:mi>C</mml:mi>
<mml:msub>
<mml:mi>O</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:mi>m</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mn>100</mml:mn>
<mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:semantics></mml:math></disp-formula>where <italic>Y</italic> is the theoretical response of the device and the data represent the percent of methane content.</p></sec>
<sec>
<label>2.3.</label>
<title>FPGA Implementation</title>
<p>The digital subsystem that conducts the data acquisition, data processing, data distribution, control, PC communication and local functionality was implemented in a Spartan-3 XC3S200-FT256 FPGA [<xref ref-type="bibr" rid="b25-sensors-12-10742">25</xref>]. This device counts with 200,000 gates, twelve 18K-bit block random access memory (RAM), twelve 18 × 18 hardware multipliers and 173 inputs and outputs defined by the user. The reference clock runs at 50 MHz. Furthermore, the board counts with a four-character, seven-segment light emitting diode (LED) display that is controlled by the FPGA to display the processed data. Finally, a 9-pin RS-232 serial port was devised to establish communication with a personal computer for data acquisition purposes. A HDL was used to describe the digital subsystem. This digital subsystem description was synthesized in the FPGA and is composed of many elements (<xref ref-type="fig" rid="f1-sensors-12-10742">Figure 1</xref>).</p>
<p>The RS-232 interface module conducts communication with a PC for data acquisition and configuration purposes. The PID temperature controller module, based on a difference equation, computes the control command for the cooling system, keeping the system temperature at 288.15 K. The Activation State Timer module keeps track of the time in which solenoid valves and mini-compressors are active, reporting to the Control module the end of this time. This timer module also provides the timing necessary in each stage of the measurement sequence. The number of moles inside the measurement cell and the percentage of methane present in the analyzed sample are computed by the Data Processing module. The Sampling Time Base module dictates the rate at which the analog to digital converters (ADCs) sample and the digital to analog converters (DACs) are updated (every 1.0 × 10<sup>−3</sup> s). The Data Acquisition and Distribution modules sample, quantify and encode temperature, gauge pressure and absolute pressure electronic signals. They also translate the digital command information generated by the Control module into adequate electronic signals for solenoid valves, mini-compressors, mini-pumps, the cooling system and the display. The Polynomial Linearization module performs the computation of the mathematical operations needed to linearize the raw data obtained from the device, leaving it suitable for interpretation. The displayed data is computed and updated at the end of each measurement cycle. The Control module is a finite state machine (FSM) that commands modules to execute an action or respond to stimuli from other modules to synchronize actions in every measurement cycle.</p></sec>
<sec sec-type="intro">
<label>2.4.</label>
<title>Statistical Characteristics</title>
<p>The Accuracy is the degree of closeness of measurements of a quantity to that quantity's actual (true) value. The next equations are used. With <xref rid="FD21" ref-type="disp-formula">Equation (21)</xref> data average is calculated which is a part of the accuracy. In the equation <italic>x̄</italic> represents the average, <italic>n</italic> is the data number, <italic>i</italic> represents the index and <italic>x</italic> the data [<xref ref-type="bibr" rid="b26-sensors-12-10742">26</xref>]:
<disp-formula id="FD21">
<label>(21)</label>
<mml:math id="mm21" display="block">
<mml:semantics id="sm21">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>x</mml:mi>
<mml:mo>¯</mml:mo></mml:mover>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mo>∑</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>=</mml:mo>
<mml:mn>1</mml:mn></mml:mrow>
<mml:mi>n</mml:mi></mml:msubsup>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mrow>
<mml:mi>n</mml:mi></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p>Sample variance is calculated with <xref rid="FD22" ref-type="disp-formula">Equation (22)</xref>, value necessary to calculate standard deviation. In <xref rid="FD22" ref-type="disp-formula">Equation (22)</xref><italic>s</italic><sup>2</sup> represents the sample variance, <italic>n</italic> is the data number, I stands for the index, <italic>x</italic> is the data and <italic>x̄</italic> is the average value obtained with <xref rid="FD21" ref-type="disp-formula">Equation (21)</xref> [<xref ref-type="bibr" rid="b26-sensors-12-10742">26</xref>]:
<disp-formula id="FD22">
<label>(22)</label>
<mml:math id="mm22" display="block">
<mml:semantics id="sm22">
<mml:mrow>
<mml:msup>
<mml:mi>s</mml:mi>
<mml:mn>2</mml:mn></mml:msup>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:msubsup>
<mml:mo>∑</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>=</mml:mo>
<mml:mn>1</mml:mn></mml:mrow>
<mml:mi>n</mml:mi></mml:msubsup>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mi>i</mml:mi></mml:msub>
<mml:mo>−</mml:mo>
<mml:mover accent="true">
<mml:mi>x</mml:mi>
<mml:mo>¯</mml:mo></mml:mover></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mrow>
<mml:mn>2</mml:mn></mml:msup></mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>−</mml:mo>
<mml:mn>1</mml:mn></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p>Standard Deviation is calculated with <xref rid="FD23" ref-type="disp-formula">Equation (23)</xref>, value necessary to calculate Accuracy. In <xref rid="FD23" ref-type="disp-formula">Equation (23)</xref><italic>s</italic> represents the standard deviation and <italic>s</italic><sup>2</sup> is the sample variance value obtained with <xref rid="FD22" ref-type="disp-formula">Equation (22)</xref> [<xref ref-type="bibr" rid="b26-sensors-12-10742">26</xref>]:
<disp-formula id="FD23">
<label>(23)</label>
<mml:math id="mm23" display="block">
<mml:semantics id="sm23">
<mml:mrow>
<mml:mi>s</mml:mi>
<mml:mo>=</mml:mo>
<mml:msqrt>
<mml:mrow>
<mml:msup>
<mml:mi>s</mml:mi>
<mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:msqrt></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p>The accuracy is calculated with <xref rid="FD24" ref-type="disp-formula">Equation (24)</xref>. Where <italic>x̄</italic> is the average value obtained in <xref rid="FD21" ref-type="disp-formula">Equation (21)</xref><italic>t</italic> is the critical value <italic>t<sub>a,v</sub></italic> for t distribution, α represents the trust range 100(1 − α)%, <italic>n</italic> is the data number and <italic>s</italic> stands for the standard deviation [<xref ref-type="bibr" rid="b26-sensors-12-10742">26</xref>]:
<disp-formula id="FD24">
<label>(24)</label>
<mml:math id="mm24" display="block">
<mml:semantics id="sm24">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>x</mml:mi>
<mml:mo>¯</mml:mo></mml:mover>
<mml:mo>±</mml:mo>
<mml:msub>
<mml:mi>t</mml:mi>
<mml:mrow>
<mml:mi>α</mml:mi>
<mml:mo>/</mml:mo>
<mml:mn>2</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>n</mml:mi>
<mml:mo>−</mml:mo>
<mml:mn>1</mml:mn></mml:mrow></mml:msub>
<mml:mo>⋅</mml:mo>
<mml:mfrac>
<mml:mi>s</mml:mi>
<mml:mrow>
<mml:msqrt>
<mml:mi>n</mml:mi></mml:msqrt></mml:mrow></mml:mfrac></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p>The precision is the degree to which repeated measurements under unchanged conditions show the same results. And the next equation is used.</p>
<p>The Variation Coefficient describes Precision, and it is calculated with <xref rid="FD25" ref-type="disp-formula">Equation (25)</xref>. To calculate the Variation Coefficient, the Standard Deviation and the Average values obtained with <xref rid="FD23" ref-type="disp-formula">Equations (23)</xref> and <xref rid="FD22" ref-type="disp-formula">(22)</xref> respectively are used [<xref ref-type="bibr" rid="b26-sensors-12-10742">26</xref>]:
<disp-formula id="FD25">
<label>(25)</label>
<mml:math id="mm25" display="block">
<mml:semantics id="sm25">
<mml:mrow>
<mml:mi>v</mml:mi>
<mml:mo>.</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo>.</mml:mo>
<mml:mo>=</mml:mo>
<mml:mfrac>
<mml:mi>s</mml:mi>
<mml:mover accent="true">
<mml:mi>x</mml:mi>
<mml:mo>¯</mml:mo></mml:mover></mml:mfrac>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mn>100</mml:mn>
<mml:mo>%</mml:mo></mml:mrow>
<mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:semantics></mml:math></disp-formula></p></sec>
<sec>
<label>2.5.</label>
<title>Polynomial Curve Fitting</title>
<p>A polynomial curve fitting is made with Matlab R2009a to linerize the output of the device and improve user readiness. The command used is p = polyfit(x,y,n) that finds the coefficients of a polynomial p(x) of degree n that fits the data, p(x(i)) to y(i), in a least squares sense. The result p is a row vector of length n + 1 containing the polynomial coefficients in descending powers as shown in <xref rid="FD26" ref-type="disp-formula">Equation (26)</xref> [<xref ref-type="bibr" rid="b27-sensors-12-10742">27</xref>]:
<disp-formula id="FD26">
<label>(26)</label>
<mml:math id="mm26" display="block">
<mml:semantics id="sm26">
<mml:mrow>
<mml:mi>p</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>x</mml:mi>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mo>=</mml:mo>
<mml:msub>
<mml:mi>p</mml:mi>
<mml:mn>1</mml:mn></mml:msub>
<mml:msup>
<mml:mi>x</mml:mi>
<mml:mi>n</mml:mi></mml:msup>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>p</mml:mi>
<mml:mn>2</mml:mn></mml:msub>
<mml:msup>
<mml:mi>x</mml:mi>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>−</mml:mo>
<mml:mn>1</mml:mn></mml:mrow></mml:msup>
<mml:mo>+</mml:mo>
<mml:mo>…</mml:mo>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>p</mml:mi>
<mml:mi>n</mml:mi></mml:msub>
<mml:mi>x</mml:mi>
<mml:mo>+</mml:mo>
<mml:msub>
<mml:mi>p</mml:mi>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mo>+</mml:mo>
<mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:semantics></mml:math></disp-formula></p></sec></sec>
<sec sec-type="results|discussion">
<label>3.</label>
<title>Results and Discussion</title>
<p>The composition of produced biogas is directly related to digester performance and is an early indicator of digester failure [<xref ref-type="bibr" rid="b28-sensors-12-10742">28</xref>]. The carbon dioxide-methane gas sensor described in this work represents a first step in the creation of a low-cost device for biogas quality monitoring and can be used to optimize the operating conditions of anaerobic reactors. After an exhaustive search of specialized literature, no references were found regarding the use of the principle of solubility of gaseous species in water to determine the binary gas mixture composition or the use of FPGAs [<xref ref-type="bibr" rid="b29-sensors-12-10742">29</xref>–<xref ref-type="bibr" rid="b34-sensors-12-10742">34</xref>] in the implementation of digital controllers, data acquisition and data processing in sensors for determining the composition of binary gas mixtures.</p>
<p>The water dilution coefficients of CH<sub>4</sub> and CO<sub>2</sub> at 288.15 K are 3.122 × 10<sup>−5</sup> and 8.21 × 10<sup>−4</sup> molar fraction solubility, respectively [<xref ref-type="bibr" rid="b17-sensors-12-10742">17</xref>]. This difference is what makes it possible to separate CH<sub>4</sub> and CO<sub>2</sub> through dilution in water. <xref rid="FD1" ref-type="disp-formula">Equation (1)</xref> was used to obtain the minimum quantity of water necessary to completely dissolve a sample of 100 cm<sup>3</sup> (0.0033389 moles) of CO<sub>2</sub> (worst-case measurement scenario), obtaining a quantity of 5.148 moles of H<sub>2</sub>O (or 92.74 cm<sup>3</sup>) with an atmospheric pressure of 0.789 atm (0.815 kg · cm<sup>−2</sup>) and a temperature of 288.15 K.</p>
<p><xref rid="FD18" ref-type="disp-formula">Equations (18)</xref> and <xref rid="FD19" ref-type="disp-formula">(19)</xref> describe the number of moles of CO<sub>2</sub> and CH<sub>4</sub> dissolved in the absorption liquid at equilibrium, respectively. <xref rid="FD20" ref-type="disp-formula">Equation (20)</xref> uses the data generated by <xref rid="FD18" ref-type="disp-formula">Equations (18)</xref> and <xref rid="FD19" ref-type="disp-formula">(19)</xref> to predict the behavior of the described device. Six responses of the mathematical model with different quantities of absorption liquid in addition to an ideal or perfect response are shown in <xref ref-type="fig" rid="f3-sensors-12-10742">Figure 3</xref>, where CH4_0, CH4_2, CH4_4, CH4_6, CH4_8 and CH4_10 correspond to the responses with zero, two, four, six, eight and ten moles of water, respectively. CH4_5.148 is the response with the calculated number of moles of water to be used by the device to absorb a sample of 100% CO<sub>2</sub> and IDEAL represents the plot of a perfect response.</p>
<p>When there is no absorption liquid (plot CH4_0), the data value obtained from the model kept constant along the entire range of concentrations of CH<sub>4</sub> represented a sample composed of an insoluble gas. For CH4_2, the model has a theoretical quantity of two moles of absorption liquid and the curve starts near 60%. The same behavior can be observed for CH4_4, which corresponds to a theoretical quantity of four moles of absorption liquid, but now the curve starts at 20%. In both cases, such behavior indicates that the quantity of the absorption liquid was insufficient for maximum system sensitivity. The curve of CH4_5.148 shows the response of the model with 5.148 moles of absorption liquid and starts at 0%, showing the widest dynamic range of the instrument. When there are six, eight and ten moles of absorption liquid (curves CH4_6, CH4_8 and CH4_10, respectively), the system started to show a dead band in the lower concentration of CH4 that increased with the number of moles of water. However, these curves show attenuation at higher concentrations of CH4 due to over-absorption. In the last case (CH4_10), the greatest dead-band in the lower concentrations of CH4 and the greatest attenuation in the highest concentration of CH<sub>4</sub> were observed, complicating the measurement at both ends of the range and improving the linearity in the middle range. In summary, changes in the amount of absorption liquid changes the device characteristics.</p>
<p>To evaluate the operational performance of the binary gas sensor, a variety of CO<sub>2</sub>-CH<sub>4</sub> binary mixture concentrations were used. The concentrations used are described in <xref ref-type="table" rid="t1-sensors-12-10742">Table 1</xref>, and were made by INFRA [<xref ref-type="bibr" rid="b35-sensors-12-10742">35</xref>]. The quantity of the absorption liquid used was 5.148 moles (92.74 cm<sup>3</sup>), the gas sensor temperature was set at 288.15 K and the atmospheric pressure was 0.815 kg · cm<sup>−3</sup>.</p>
<p>Five calibration cycles were performed with each of the six gas mixtures and on different days to account for variable ambient conditions. In order to obtain the Accuracy, the critical value t was set to 2.776 and α is set to 0.05. The five runs, along with the plot of the data obtained from the model with 4.0 moles of water and a plot with the calibration gas mixture used, are shown in <xref ref-type="fig" rid="f4-sensors-12-10742">Figure 4</xref>. Interestingly, the experimental results with 5.148 moles of water were very similar to the results of the mathematical model with 4.0 moles of water. Such experimental behavior could be attributed to humidity content in the sample, interference of other substances diluted in the water used as the absorption liquid or to structural characteristics of the experimental device.</p>
<p>A polynomial linearization with Matlab R2009a allows the data obtained from the device to be adjusted for ease of interpretation. The polynomial equation used to linearize the obtained data is shown in <xref rid="FD27" ref-type="disp-formula">Equation (27)</xref>:
<disp-formula id="FD27">
<label>(27)</label>
<mml:math id="mm27" display="block">
<mml:semantics id="sm27">
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>x</mml:mi>
<mml:mo>)</mml:mo></mml:mrow>
<mml:mo>=</mml:mo>
<mml:mo>−</mml:mo>
<mml:mn>12.7742</mml:mn>
<mml:msup>
<mml:mi>x</mml:mi>
<mml:mn>5</mml:mn></mml:msup>
<mml:mo>+</mml:mo>
<mml:mn>34.5923</mml:mn>
<mml:msup>
<mml:mi>x</mml:mi>
<mml:mn>4</mml:mn></mml:msup>
<mml:mo>−</mml:mo>
<mml:mn>35.3856</mml:mn>
<mml:msup>
<mml:mi>x</mml:mi>
<mml:mn>3</mml:mn></mml:msup>
<mml:mo>+</mml:mo>
<mml:mn>17.9448</mml:mn>
<mml:msup>
<mml:mi>x</mml:mi>
<mml:mn>2</mml:mn></mml:msup>
<mml:mo>−</mml:mo>
<mml:mn>3.5978</mml:mn>
<mml:mi>x</mml:mi>
<mml:mo>+</mml:mo>
<mml:mn>0.2239</mml:mn></mml:mrow></mml:semantics></mml:math></disp-formula></p>
<p><xref ref-type="fig" rid="f5-sensors-12-10742">Figure 5</xref> shows the curves of the same five runs from <xref ref-type="fig" rid="f4-sensors-12-10742">Figure 4</xref> along with the plots for CH4_4 and the Calibration Sample, but using polynomial linearization <xref rid="FD21" ref-type="disp-formula">Equation (21)</xref>. As can be seen, the linearized plots move away from the CH4_4 curve and trend toward the Calibration Sample plot.</p>
<p>While there are several ways to further improve this device, it can be considered the first step toward the development of a biogas quality monitoring sensor.</p></sec>
<sec sec-type="conclusions">
<label>4.</label>
<title>Conclusions</title>
<p>The development of a novel, simple and low-cost automatic carbon dioxide-methane gas sensor, based on the solubility of gases in water, as the precursor of a sensor for biogas quality monitoring has been successfully completed. The device described in this work uses a novel measurement principle that makes it very simple to build and operate. The design, construction and setup of a digital processing and control system into a low-cost FPGA platform has permitted the successful implementation in a standalone carbon dioxide-methane gas sensor. The digital system developed to control the device and the data processing is very robust due to dedicated hardware implementation. The device prevents misreading due to its physical construction by minimizing CO<sub>2</sub> loss, performs auto-calibration of the heat transfer fluid level at the beginning of every measurement cycle and is unaffected by the ambient temperature. The described device is a step forward in the development of a biogas quality monitoring sensor, which once completed, could be a useful tool for engineers, scientists and all those interested in following biogas quality dynamics in any kind of anaerobic digestion process.</p></sec></body>
<back>
<ack>
<p>The authors gratefully acknowledge Rene Romero Troncoso for technical support.</p></ack>
<ref-list>
<title>References</title>
<ref id="b1-sensors-12-10742"><label>1.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rego</surname><given-names>R.</given-names></name><name><surname>Mendes</surname><given-names>A.</given-names></name></person-group><article-title>Carbon dioxide/methane gas sensor based on the permselectivity of polymeric membranes for biogas monitoring</article-title><source>Sens. Actuators B</source><year>2004</year><volume>103</volume><fpage>2</fpage><lpage>6</lpage><pub-id pub-id-type="doi">10.1016/j.snb.2004.01.013</pub-id></citation></ref>
<ref id="b2-sensors-12-10742"><label>2.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sedlačík</surname><given-names>R.</given-names></name><name><surname>Dvořáčková</surname><given-names>M.</given-names></name><name><surname>Hruška</surname><given-names>F.</given-names></name></person-group><article-title>Application experiences of measurement devices of methane and carbon dioxide concentration</article-title><source>Arch. Mater. Sci.</source><year>2007</year><volume>28</volume><fpage>1</fpage><lpage>4</lpage></citation></ref>
<ref id="b3-sensors-12-10742"><label>3.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hoppe</surname><given-names>M.</given-names></name><name><surname>Schley</surname><given-names>P.</given-names></name><name><surname>Uhrig</surname><given-names>M.</given-names></name></person-group><article-title>Metrological issues in energy measurement on biogas</article-title><source>Accredit. Qual. Assur.</source><year>2009</year><volume>14</volume><fpage>677</fpage><lpage>683</lpage><pub-id pub-id-type="doi">10.1007/s00769-009-0546-3</pub-id></citation></ref>
<ref id="b4-sensors-12-10742"><label>4.</label><citation citation-type="web"><person-group person-group-type="author"><collab>Edinburgh Instruments</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.edinst.com/" ext-link-type="uri">http://www.edinst.com/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b5-sensors-12-10742"><label>5.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Nordberg</surname><given-names>Å.</given-names></name><name><surname>Hansson</surname><given-names>M.</given-names></name><name><surname>Sundh</surname><given-names>I.</given-names></name><name><surname>Nordkvist</surname><given-names>E.</given-names></name><name><surname>Carlsson</surname><given-names>H.</given-names></name><name><surname>Mathisen</surname><given-names>B.</given-names></name></person-group><article-title>Monitoring of biogas process using electronic gas sensors and near-infrared spectroscopy (NIR)</article-title><source>Water Sci. Technol.</source><year>2000</year><volume>41</volume><fpage>1</fpage><lpage>8</lpage><pub-id pub-id-type="pmid">11414238</pub-id></citation></ref>
<ref id="b6-sensors-12-10742"><label>6.</label><citation citation-type="web"><person-group person-group-type="author"><collab>Foss NIRSystems</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.foss-nirsystems.com/" ext-link-type="uri">http://www.foss-nirsystems.com/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b7-sensors-12-10742"><label>7.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Steyer</surname><given-names>J.P.</given-names></name><name><surname>Bouvier</surname><given-names>J.C.</given-names></name><name><surname>Conte</surname><given-names>T.</given-names></name><name><surname>Gras</surname><given-names>P.</given-names></name><name><surname>Sousbie</surname><given-names>P.</given-names></name></person-group><article-title>Evaluation of a four year experience with a fully instrumented anaerobic digestion process</article-title><source>Water Sci. Technol.</source><year>2002</year><volume>45</volume><fpage>495</fpage><lpage>502</lpage><pub-id pub-id-type="pmid">11936672</pub-id></citation></ref>
<ref id="b8-sensors-12-10742"><label>8.</label><citation citation-type="web"><person-group person-group-type="author"><collab>Siemens</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.siemens.com/" ext-link-type="uri">http://www.siemens.com/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b9-sensors-12-10742"><label>9.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Werle</surname><given-names>P.</given-names></name><name><surname>Slemr</surname><given-names>F.</given-names></name><name><surname>Maurer</surname><given-names>K.</given-names></name><name><surname>Kormann</surname><given-names>R.</given-names></name><name><surname>Mücke</surname><given-names>R.</given-names></name><name><surname>Jänker</surname><given-names>B.</given-names></name></person-group><article-title>Near- and mid-infrared laser-optical sensors for gas analysis</article-title><source>Opt. Lasers Eng.</source><year>2002</year><volume>37</volume><fpage>101</fpage><lpage>114</lpage><pub-id pub-id-type="doi">10.1016/S0143-8166(01)00092-6</pub-id></citation></ref>
<ref id="b10-sensors-12-10742"><label>10.</label><citation citation-type="web"><person-group person-group-type="author"><collab>Shimadzu</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.shimadzu.com/" ext-link-type="uri">http://www.shimadzu.com/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b11-sensors-12-10742"><label>11.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mandal</surname><given-names>T.</given-names></name><name><surname>Kiran</surname><given-names>B.A.</given-names></name><name><surname>Mandal</surname><given-names>N.K.</given-names></name></person-group><article-title>Determination of the quality of biogas by flame temperature measurement</article-title><source>Energy Convers. Manag.</source><year>1999</year><volume>40</volume><fpage>1225</fpage><lpage>1228</lpage><pub-id pub-id-type="doi">10.1016/S0196-8904(99)00009-6</pub-id></citation></ref>
<ref id="b12-sensors-12-10742"><label>12.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rego</surname><given-names>R.</given-names></name><name><surname>Caetano</surname><given-names>N.</given-names></name><name><surname>Mendes</surname><given-names>A.</given-names></name></person-group><article-title>Development of a new gas sensor for binary mixtures based on the permselectivity of polymeric membranes: Application to carbon dioxide/methane and carbon dioxide/helium mixtures</article-title><source>Anal. Chim. Acta.</source><year>2004</year><volume>511</volume><fpage>215</fpage><lpage>221</lpage><pub-id pub-id-type="doi">10.1016/j.aca.2004.01.048</pub-id></citation></ref>
<ref id="b13-sensors-12-10742"><label>13.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rozzi</surname><given-names>A.</given-names></name><name><surname>Burton</surname><given-names>K.W.</given-names></name><name><surname>Hawkes</surname><given-names>D.L.</given-names></name></person-group><article-title>Potentiometric method for the determination of carbon dioxide in biogas</article-title><source>J. Agric. Eng. Res.</source><year>1983</year><volume>28</volume><fpage>505</fpage><lpage>512</lpage><pub-id pub-id-type="doi">10.1016/0021-8634(83)90114-2</pub-id></citation></ref>
<ref id="b14-sensors-12-10742"><label>14.</label><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Carlson</surname><given-names>J.E.</given-names></name><name><surname>Martinsson</surname><given-names>P.E.</given-names></name></person-group><article-title>Ultrasonic measurement of molar fractions in gas mixtures by orthogonal signal correction</article-title><conf-name>Proceedings of the 50th Anniversary Joint Conference of IEEE International Ultrasonics, Ferroelectrics, and Frequency Control</conf-name><conf-loc>Montreal, QC, Canada</conf-loc><conf-date>23– 27 August 2004</conf-date><fpage>821</fpage><lpage>825</lpage></citation></ref>
<ref id="b15-sensors-12-10742"><label>15.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tardy</surname><given-names>P.</given-names></name><name><surname>Coulon</surname><given-names>J.R.</given-names></name><name><surname>Lucat</surname><given-names>C.</given-names></name><name><surname>Menil</surname><given-names>F.</given-names></name></person-group><article-title>Dynamic thermal conductivity sensor for gas detection</article-title><source>Sens. Actuators B</source><year>2004</year><volume>98</volume><fpage>63</fpage><lpage>68</lpage><pub-id pub-id-type="doi">10.1016/j.snb.2003.09.019</pub-id></citation></ref>
<ref id="b16-sensors-12-10742"><label>16.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gonzalez-Gil</surname><given-names>G.</given-names></name><name><surname>Kleerebezem</surname><given-names>R.</given-names></name><name><surname>Lettinga</surname><given-names>G.</given-names></name></person-group><article-title>Assessment of metabolic properties and kinetic parameters of methanogenic sludge by on-line methane production rate measurements</article-title><source>Appl. Microbiol. Biotechnol</source><year>2002</year><volume>58</volume><fpage>248</fpage><lpage>254</lpage><pub-id pub-id-type="doi">10.1007/s00253-001-0831-5</pub-id><pub-id pub-id-type="pmid">11876419</pub-id></citation></ref>
<ref id="b17-sensors-12-10742"><label>17.</label><citation citation-type="book"><person-group person-group-type="author"><name><surname>Lide</surname><given-names>D.R.</given-names></name></person-group><source>CRC Handbook of Chemistry and Physics.</source><edition>85th ed.</edition><publisher-name>CRC</publisher-name><publisher-loc>Boca Raton, FL, USA</publisher-loc><year>2005</year><fpage>8:86</fpage><lpage>8:89</lpage></citation></ref>
<ref id="b18-sensors-12-10742"><label>18.</label><citation citation-type="web"><person-group person-group-type="author"><collab>ACDelco</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.acdelco.com/parts/wiper-products/windshield-washer-pump/" ext-link-type="uri">http://www.acdelco.com/parts/wiper-products/windshield-washer-pump/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b19-sensors-12-10742"><label>19.</label><citation citation-type="web"><person-group person-group-type="author"><collab>Tellurex</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.tellurex.com/" ext-link-type="uri">http://www.tellurex.com/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b20-sensors-12-10742"><label>20.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cadena-Pereda</surname><given-names>R.O.</given-names></name><name><surname>Rivera-Muñoz</surname><given-names>E.M.</given-names></name><name><surname>Herrera Ruiz</surname><given-names>G.</given-names></name></person-group><article-title>Automatic volumetric gas flow meter for monitoring biogas production from laboratory-scale anaerobic digester</article-title><source>Sens. Actuators B</source><year>2010</year><volume>147</volume><fpage>10</fpage><lpage>14</lpage><pub-id pub-id-type="doi">10.1016/j.snb.2010.03.053</pub-id></citation></ref>
<ref id="b21-sensors-12-10742"><label>21.</label><citation citation-type="web"><person-group person-group-type="author"><collab>Clark Solutions</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.clarksol.com/" ext-link-type="uri">http://www.clarksol.com/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b22-sensors-12-10742"><label>22.</label><citation citation-type="web"><person-group person-group-type="author"><collab>Measurement Specialties</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.meas-spec.com/" ext-link-type="uri">http://www.meas-spec.com/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b23-sensors-12-10742"><label>23.</label><citation citation-type="web"><person-group person-group-type="author"><collab>Honeywell</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.honeywell.com/" ext-link-type="uri">http://www.honeywell.com/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b24-sensors-12-10742"><label>24.</label><citation citation-type="web"><person-group person-group-type="author"><collab>National Semiconductor</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.national.com/" ext-link-type="uri">http://www.national.com/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b25-sensors-12-10742"><label>25.</label><citation citation-type="web"><person-group person-group-type="author"><collab>Xilinx</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.xilinx.com/" ext-link-type="uri">http://www.xilinx.com/</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b26-sensors-12-10742"><label>26.</label><citation citation-type="book"><person-group person-group-type="author"><name><surname>Devore</surname><given-names>J.L.</given-names></name></person-group><source>Probabilidad y Estadística Para Ingeniería y Ciencias</source><edition>4th ed.</edition><publisher-name>International Thomson</publisher-name><publisher-loc>México City, México</publisher-loc><year>2003</year><fpage>278</fpage><lpage>281</lpage></citation></ref>
<ref id="b27-sensors-12-10742"><label>27.</label><citation citation-type="web"><person-group person-group-type="author"><collab>Mathworks</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.mathworks.com/help/techdoc/ref/polyfit.html" ext-link-type="uri">http://www.mathworks.com/help/techdoc/ref/polyfit.html</ext-link> (accessed on 1 May 2012)</comment></citation></ref>
<ref id="b28-sensors-12-10742"><label>28.</label><citation citation-type="book"><person-group person-group-type="author"><name><surname>Gerardi</surname><given-names>M.H.</given-names></name></person-group><source>The Microbiology of Anaerobic Digesters</source><edition>1st ed.</edition><publisher-name>John Wiley &amp; Sons</publisher-name><publisher-loc>Hoboken, NJ, USA</publisher-loc><year>2003</year><fpage>135</fpage><lpage>139</lpage></citation></ref>
<ref id="b29-sensors-12-10742"><label>29.</label><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Samet</surname><given-names>L.</given-names></name><name><surname>Masmoudi</surname><given-names>N.</given-names></name><name><surname>Kharrat</surname><given-names>M.W.</given-names></name><name><surname>Kamoun</surname><given-names>L.</given-names></name></person-group><article-title>A Digital PID controller for real time and multi loop control</article-title><conf-name>Proceedings of the 5ème Colloque d'Informatique Industrielle</conf-name><conf-loc>Djerba, Tunisie</conf-loc><conf-date>8–10 February 1998</conf-date></citation></ref>
<ref id="b30-sensors-12-10742"><label>30.</label><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Samet</surname><given-names>L.</given-names></name><name><surname>Masmoudi</surname><given-names>N.</given-names></name><name><surname>Kharrat</surname><given-names>M.W.</given-names></name><name><surname>Kamoun</surname><given-names>L.</given-names></name></person-group><article-title>A digital PID controller for real time and multi loop control: A comparative study</article-title><conf-name>Proceedings of 1998 IEEE International Conference on Electronics, Circuits and Systems</conf-name><conf-loc>Lisboa, Portugal</conf-loc><conf-date>7– 10 September 1998</conf-date><comment>Volume 1</comment><fpage>291</fpage><lpage>296</lpage></citation></ref>
<ref id="b31-sensors-12-10742"><label>31.</label><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Lima</surname><given-names>J.</given-names></name><name><surname>Menotti</surname><given-names>R.</given-names></name><name><surname>Cardoso</surname><given-names>J.M.P.</given-names></name><name><surname>Marques</surname><given-names>E.</given-names></name></person-group><article-title>A methodology to design FPGA-based PID controllers</article-title><conf-name>Proceedings of the IEEE International Conference on Systems, Man, and Cybernetics</conf-name><conf-loc>Taipei, Taiwan</conf-loc><conf-date>8– 11 October 2006</conf-date><fpage>2577</fpage><lpage>2583</lpage></citation></ref>
<ref id="b32-sensors-12-10742"><label>32.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Chan</surname><given-names>Y.F.</given-names></name><name><surname>Moallem</surname><given-names>M.</given-names></name><name><surname>Wang</surname><given-names>W.</given-names></name></person-group><article-title>Design and implementation of modular FPGA-based PID controllers</article-title><source>IEEE Trans. Ind. Electron.</source><year>2007</year><volume>54</volume><fpage>1898</fpage><lpage>1906</lpage><pub-id pub-id-type="doi">10.1109/TIE.2007.898283</pub-id></citation></ref>
<ref id="b33-sensors-12-10742"><label>33.</label><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Jeong-Seob</surname><given-names>K.</given-names></name><name><surname>Hyo-Won</surname><given-names>J.</given-names></name><name><surname>Seul</surname><given-names>J.</given-names></name></person-group><article-title>Hardware implementation of nonlinear PID controller with FPGA based on floating point operation for 6-DOF manipulator robot arm</article-title><conf-name>Proceedings of the International Conference on Control, Automation and Systems 2007</conf-name><conf-loc>Seoul, Korea</conf-loc><conf-date>17–20 October 2007</conf-date><fpage>1066</fpage><lpage>1071</lpage></citation></ref>
<ref id="b34-sensors-12-10742"><label>34.</label><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Subasri</surname><given-names>V.</given-names></name><name><surname>Lavanya</surname><given-names>K.</given-names></name><name><surname>Umamaheswari</surname><given-names>B.</given-names></name></person-group><article-title>Implementation of digital PID controller in field programmable gate array (FPGA)</article-title><conf-name>Proceedings of India International Conference on Power Electronics</conf-name><conf-loc>Chennai, India</conf-loc><conf-date>19–21 December 2006</conf-date><fpage>172</fpage><lpage>176</lpage></citation></ref>
<ref id="b35-sensors-12-10742"><label>35.</label><citation citation-type="web"><person-group person-group-type="author"><collab>INFRA</collab></person-group><comment>Available online: <ext-link xlink:href="http://www.infra.com.mx/" ext-link-type="uri">http://www.infra.com.mx/</ext-link> (accessed on 1 May 2012)</comment></citation></ref></ref-list>
<sec sec-type="display-objects">
<title>Figures and Table</title>
<fig id="f1-sensors-12-10742" position="float">
<label>Figure 1.</label>
<caption>
<p>Block diagram of the carbon dioxide-methane gas sensor with the digital system.</p></caption>
<graphic xlink:href="sensors-12-10742f1.gif"/></fig>
<fig id="f2-sensors-12-10742" position="float">
<label>Figure 2.</label>
<caption>
<p>Schematic of the carbon dioxide-methane gas sensor. 1—container; 2—heat transfer fluid; 3—absorption liquid; 4 and 5—recirculation pump; 6—fan; 7—heat sink; 8—thermoelectric cell; 9—heat exchanger; 10—measurement cell; 11—flexible PVC reservoir; S1, S2 and S3—2-way solenoid valve; C—mini-compressor; PA—absolute pressure sensor; PG—gauge pressure sensor; T—temperature sensor.</p></caption>
<graphic xlink:href="sensors-12-10742f2.gif"/></fig>
<fig id="f3-sensors-12-10742" position="float">
<label>Figure 3.</label>
<caption>
<p>The response of the mathematical model with different quantities of absortion liquid (in moles). CH4_0 with 0 moles, CH4_2 with 2 moles, CH4_4 with 4 moles, CH4_5.148 with 5.148 moles, CH4_6 with 6 moles, CH4_8 with 8 moles and CH4_10 with 10 moles. In addition, an IDEAL plot is included for a theoretical perfect response.</p></caption>
<graphic xlink:href="sensors-12-10742f3.gif"/></fig>
<fig id="f4-sensors-12-10742" position="float">
<label>Figure 4.</label>
<caption>
<p>The experimental interday device response (run 1 to run 5). In addition, a plot of the mathematical model with 4 moles of absorption liquid and a plot of the Calibration Sample are shown.</p></caption>
<graphic xlink:href="sensors-12-10742f4.gif"/></fig>
<fig id="f5-sensors-12-10742" position="float">
<label>Figure 5.</label>
<caption>
<p>The experimental data after polynomial linearization (run 1 to run 5). In addition, a plot of the mathematical model with 4 moles of absorption liquid and a plot of the Calibration Sample are shown.</p></caption>
<graphic xlink:href="sensors-12-10742f5.gif"/></fig>
<table-wrap id="t1-sensors-12-10742" position="float">
<label>Table 1.</label>
<caption>
<p>Statistical characteristics obtained from the experimental data.</p></caption>
<table frame="hsides" rules="groups">
<thead>
<tr>
<th colspan="2" align="center" valign="top"><bold>Calibration Point</bold></th>
<th align="center" valign="top" rowspan="3"><bold>Device Resp. (% of CH<sub>4</sub>)</bold></th>
<th align="center" valign="top" rowspan="3"><bold>Accuracy (%)</bold></th>
<th align="center" valign="top" rowspan="3"><bold>Precision (%)</bold></th></tr>
<tr>
<th align="center" valign="top" colspan="2">
<hr/></th></tr>
<tr>
<th align="center" valign="top"><bold>(% of CH<sub>4</sub>)</bold></th>
<th align="center" valign="top"><bold>(% of CO<sub>2</sub>)</bold></th></tr></thead>
<tbody>
<tr>
<td align="center" valign="top">0.00%</td>
<td align="center" valign="top">99.99%</td>
<td align="center" valign="top">22.28%</td>
<td align="center" valign="top">±0.56%</td>
<td align="center" valign="top">2.04%</td></tr>
<tr>
<td align="center" valign="top">20.61%</td>
<td align="center" valign="top">79.39%</td>
<td align="center" valign="top">45.86%</td>
<td align="center" valign="top">±1.47%</td>
<td align="center" valign="top">2.58%</td></tr>
<tr>
<td align="center" valign="top">40.25%</td>
<td align="center" valign="top">59.75%</td>
<td align="center" valign="top">62.27%</td>
<td align="center" valign="top">±0.43%</td>
<td align="center" valign="top">0.56%</td></tr>
<tr>
<td align="center" valign="top">60.50%</td>
<td align="center" valign="top">39.50%</td>
<td align="center" valign="top">74.99%</td>
<td align="center" valign="top">±2.09%</td>
<td align="center" valign="top">2.24%</td></tr>
<tr>
<td align="center" valign="top">79.79%</td>
<td align="center" valign="top">20.21%</td>
<td align="center" valign="top">85.48%</td>
<td align="center" valign="top">±1.01%</td>
<td align="center" valign="top">0.95%</td></tr>
<tr>
<td align="center" valign="top">99.99%</td>
<td align="center" valign="top">0.00%</td>
<td align="center" valign="top">99.50%</td>
<td align="center" valign="top">±0.35%</td>
<td align="center" valign="top">0.28%</td></tr></tbody></table></table-wrap></sec></back></article>
