@@ -132,6 +132,23 @@ Flow1D::Flow1D(ThermoPhase* ph, size_t nsp, size_t points) :
132132 }
133133 }
134134 }
135+
136+ // Polynomial coefficients for CO2 and H2O (backwards compatibility)
137+ // Check if "CO2" is already in the map, if not, add the polynomial fit data
138+ if (!m_PMAC.hasKey (" CO2" )) {
139+ const std::vector<double > c_CO2 = {18.741 , -121.310 , 273.500 , -194.050 , 56.310 ,
140+ -5.8169 };
141+ m_PMAC[" CO2" ][" fit-type" ] = " polynomial" ;
142+ m_PMAC[" CO2" ][" coefficients" ] = c_CO2;
143+ }
144+
145+ // Check if "H2O" is already in the map, if not, add the polynomial fit data
146+ if (!m_PMAC.hasKey (" H2O" )) {
147+ const std::vector<double > c_H2O = {-0.23093 , -1.12390 , 9.41530 , -2.99880 ,
148+ 0.51382 , -1.86840e-5 };
149+ m_PMAC[" H2O" ][" fit-type" ] = " polynomial" ;
150+ m_PMAC[" H2O" ][" coefficients" ] = c_H2O;
151+ }
135152}
136153
137154Flow1D::Flow1D (shared_ptr<ThermoPhase> th, size_t nsp, size_t points)
@@ -512,12 +529,6 @@ void Flow1D::computeRadiation(double* x, size_t jmin, size_t jmax)
512529 // radiation calculation:
513530 double k_P_ref = 1.0 *OneAtm;
514531
515- // Polynomial coefficients:
516- const double c_H2O[6 ] = {-0.23093 , -1.12390 , 9.41530 , -2.99880 ,
517- 0.51382 , -1.86840e-5 };
518- const double c_CO2[6 ] = {18.741 , -121.310 , 273.500 , -194.050 ,
519- 56.310 , -5.8169 };
520-
521532 // Calculation of the two boundary values
522533 double boundary_Rad_left = m_epsilon_left * StefanBoltz * pow (T (x, 0 ), 4 );
523534 double boundary_Rad_right = m_epsilon_right * StefanBoltz * pow (T (x, m_points - 1 ), 4 );
0 commit comments