Commit f6132219 authored by Henning Francke's avatar Henning Francke
Browse files

fixed syntax

parent 4586768a
......@@ -5,18 +5,19 @@ function solubility_H2_pTX_Chabab2020_molality
input Real p;
input Real T;
input Real[:] X;
input SI.MolarMass MM_vec[:] "molar masses of components";
input SI.Pressure p_gas;
output Types.Molality b_H2;
protected
Types.Molality molalities[size(X, 1)]= Utilities.massFractionsToMolalities(X, MM_vec);
Real m_Cl = molalities(i_NaCl) + molalities(i_KCl) + 2 * molalities(i_CaCl2); //' + 2 * molalities(i_MgCl2);
Real m_Na = molalities(i_NaCl);
Real m_K = molalities(i_KCl);
Real m_Ca = molalities(i_CaCl2);
// Real m_Mg = 0 ' molalities(i_MgCl2);
// Real m_SO4 = 0 ' molalities(i_MgCl2);
Real m_Cl = molalities[iNaCl] + molalities[iKCl] + 2 * molalities[iCaCl2]; //' + 2 * molalities(i_MgCl2);
Real m_Na = molalities[iNaCl];
Real m_K = molalities[iKCl];
Real m_Ca = molalities[iCaCl2];
// Real m_Mg = molalities[i_MgCl2];
// Real m_SO4 = molalities[i_MgCl2];
Real b_NaCl = m_Na + m_K + 2 * m_Ca + 2 * m_Mg;
Real b_NaCl = m_Na + m_K + 2 * m_Ca; // + 2 * m_Mg;
// Debug.Print "b_NaCl: "; b_NaCl
SI.Pressure p_H2O = Modelica.Media.Water.WaterIF97_pT.saturationPressure(T);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment