@@ -130,6 +130,10 @@ class CNumerics {
130130 const su2double
131131 *ScalarVar_i, /* !< \brief Vector of scalar variables at point i. */
132132 *ScalarVar_j; /* !< \brief Vector of scalar variables at point j. */
133+ su2double
134+ HeatFluxDiffusion; /* !< \brief Heat flux due to enthalpy diffusion for multicomponent. */
135+ su2double
136+ JacHeatFluxDiffusion; /* !< \brief Heat flux jacobian due to enthalpy diffusion for multicomponent. */
133137 const su2double
134138 *TransVar_i, /* !< \brief Vector of turbulent variables at point i. */
135139 *TransVar_j; /* !< \brief Vector of turbulent variables at point j. */
@@ -196,6 +200,8 @@ class CNumerics {
196200
197201 bool nemo; /* !< \brief Flag for NEMO problems */
198202
203+ bool energy_multicomponent = false ; /* !< \brief Flag for multicomponent and reacting flow */
204+
199205 bool bounded_scalar = false ; /* !< \brief Flag for bounded scalar problem */
200206
201207public:
@@ -799,6 +805,20 @@ class CNumerics {
799805 Diffusion_Coeff_j = val_diffusioncoeff_j;
800806 }
801807
808+ /* !
809+ * \brief Set the heat flux due to enthalpy diffusion
810+ * \param[in] val_heatfluxdiffusion - Value of the heat flux due to enthalpy diffusion.
811+ */
812+ inline void SetHeatFluxDiffusion (su2double val_heatfluxdiffusion) { HeatFluxDiffusion = val_heatfluxdiffusion; }
813+
814+ /* !
815+ * \brief Set Jacobian of the heat flux due to enthalpy diffusion
816+ * \param[in] val_jacheatfluxdiffusion - Value of the heat flux jacobian due to enthalpy diffusion.
817+ */
818+ inline void SetJacHeatFluxDiffusion (su2double val_jacheatfluxdiffusion) {
819+ JacHeatFluxDiffusion = val_jacheatfluxdiffusion;
820+ }
821+
802822 /* !
803823 * \brief Set the laminar viscosity.
804824 * \param[in] val_laminar_viscosity_i - Value of the laminar viscosity at point i.
@@ -1117,8 +1137,7 @@ class CNumerics {
11171137 * \param[in] val_density - Value of the density.
11181138 * \param[in] val_velocity - Pointer to the velocity.
11191139 * \param[in] val_betainc2 - Value of the artificial compresibility factor.
1120- * \param[in] val_cp - Value of the specific heat at constant pressure.
1121- * \param[in] val_temperature - Value of the temperature.
1140+ * \param[in] val_enthalpy - Value of the enthalpy.
11221141 * \param[in] val_dRhodT - Value of the derivative of density w.r.t. temperature.
11231142 * \param[in] val_normal - Normal vector, the norm of the vector is the area of the face.
11241143 * \param[in] val_scale - Scale of the projection.
@@ -1127,8 +1146,7 @@ class CNumerics {
11271146 void GetInviscidIncProjJac (const su2double *val_density,
11281147 const su2double *val_velocity,
11291148 const su2double *val_betainc2,
1130- const su2double *val_cp,
1131- const su2double *val_temperature,
1149+ const su2double *val_enthalpy,
11321150 const su2double *val_dRhodT,
11331151 const su2double *val_normal,
11341152 su2double val_scale,
@@ -1139,17 +1157,15 @@ class CNumerics {
11391157 * \param[in] val_density - Value of the density.
11401158 * \param[in] val_velocity - Pointer to the velocity.
11411159 * \param[in] val_betainc2 - Value of the artificial compresibility factor.
1142- * \param[in] val_cp - Value of the specific heat at constant pressure.
1143- * \param[in] val_temperature - Value of the temperature.
1144- * \param[in] val_dRhodT - Value of the derivative of density w.r.t. temperature.
1160+ * \param[in] val_enthalpy - Value of the enthalpy.
1161+ * \param[in] val_dRhodh - Value of the derivative of density w.r.t. enthalpy.
11451162 * \param[out] val_Precon - Pointer to the preconditioning matrix.
11461163 */
11471164 void GetPreconditioner (const su2double *val_density,
11481165 const su2double *val_velocity,
11491166 const su2double *val_betainc2,
1150- const su2double *val_cp,
1151- const su2double *val_temperature,
1152- const su2double *val_drhodt,
1167+ const su2double *val_enthalpy,
1168+ const su2double *val_drhodh,
11531169 su2double **val_Precon) const ;
11541170
11551171 /* !
0 commit comments