Skip to content
Snippets Groups Projects
Commit 03a824c2 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[TES] Initialize members with nan for safety

parent 72881e57
No related branches found
No related tags found
No related merge requests found
...@@ -51,16 +51,19 @@ private: ...@@ -51,16 +51,19 @@ private:
void setChemicalEquilibrium(); void setChemicalEquilibrium();
double CaHydration(); double CaHydration();
double _rho_s; //!< solid phase density static constexpr double nan = std::numeric_limits<double>::quiet_NaN();
double _p_gas; //!< gas phase pressure in unit bar
double _p_r_g; //!< pressure of H2O on gas phase double _rho_s = nan; //!< solid phase density
double _p_eq = 1.0; //!< equilibrium pressure in bar double _p_gas = nan; //!< gas phase pressure in unit bar
double _T_eq; //!< equilibrium temperature double _p_r_g = nan; //!< pressure of H2O on gas phase
double _T_s; //!< solid phase temperature double _p_eq = 1.0; //!< equilibrium pressure in bar
double _qR; //!< rate of solid density change double _T_eq = nan; //!< equilibrium temperature
double _x_react; //!< mass fraction of water in gas phase double _T_s = nan; //!< solid phase temperature
double _X_D; //!< mass fraction of dehydration (CaO) in the solid phase double _qR = nan; //!< rate of solid density change
double _X_H; //!< mass fraction of hydration in the solid phase double _x_react = nan; //!< mass fraction of water in gas phase
double _X_D =
nan; //!< mass fraction of dehydration (CaO) in the solid phase
double _X_H = nan; //!< mass fraction of hydration in the solid phase
//! reaction enthalpy in J/mol; negative for exothermic composition reaction //! reaction enthalpy in J/mol; negative for exothermic composition reaction
static const double _reaction_enthalpy; static const double _reaction_enthalpy;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment