.Chemical.Examples.HydrogenCombustion

Information

The gaseous reaction of hydrogen combustion:

2 H2 + O2 <-> 2 H2O

(1)


This reaction generates a large amount of energy which can be used for mechanical or thermal purposes.

Building this model using the Chemical library components is easy. First, we drag and drop the library class ‘Components.Solution’ into the diagram of our new model, labeled ‘idealGas’ in Figure 4. In parameter dialog of this solution we check “useThermalPorts” and “useMechanicsPorts” to enable the thermal and mechanical interface. In the same dialog we need to set the area of the piston (e.g., 1 dm2), where the pressure provides the force of the green mechanical port of the uppermost side. The next parameter is the ambient external pressure surrounding the system (e.g., 1 bar). All three chemical substances of the reaction (1) can be added by dragging and dropping the library class ‘Components.Substance’. Because this model uses gases, the state of matter must be changed to some gas, such as the ideal gas prepared as ‘Interfaces.IdealGas’. The substance data must be selected to define the appropriate substances such as ‘Hydrogen_gas’, ‘.Oxygen_gas’ and ‘.Water_gas’ in package ‘Examples.Substances’. In addition, the initial amounts of substances can be prepared for the ideal solution of hydrogen and oxygen gases at a ratio 2:1 to attain the chemical equation above, with the expectation that at the end of the burning process, only water vapor would be presented. Therefore, the initial values of H2 particles could be set to 26 mmol and of O2 particles as 13 mmol. All substances must be connected with the ‘idealGas’ using the blue colored solution port situated on the bottom side of each substance and solution. Then, the chemical reaction is inserted into the diagram of this model as library class ‘Components.Reaction’, and it is set to two substrates (nS=2) with stoichiometry s={2,1} and one product with stoichiometry p={2} to represent the reaction (3). The substances are then connected using violet colored substance connectors with appropriate indexes: H2 to substrates[1], O2 to substrates[2] and H2O to products[1]. At this point, the model is prepared to simulate the conditions of an unconnected heat port and an unconnected mechanical port. This simulation reaches the theoretical ideal of thermally isolated (zero heat flow from/to the solution) and isobaric (zero force generated on piston) conditions.


Mueller, M. A., Kim, T. J., Yetter, R. A., & Dryer, F. L. (1999). Flow reactor studies and kinetic modeling of the H2/O2 reaction. International Journal of Chemical Kinetics31(2), 113-125.


However, in the real world, there is always some thermal energy flow from the solution, and this cooling process can be connected using the thermal connector of the Modelica Standard Library 3.2.1. For example, the simple thermal conductor of thermal conductance 2W/K at a constant temperature environment of 25°C is represented in the model. The mechanical power of the engine can be connected to the robust mechanical model. However, in our example we selected only a very strong mechanical spring with a spring constant of 106 N/m to stop the motion of the piston in order to generate the pressure. This standard spring component is situated above the solution in the model diagram. The results of this experiment are shown in Figure 1.


Generated at 2024-04-24T18:15:52Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos