@@ -129,6 +129,10 @@ class CNumerics {
129129 const su2double
130130 *ScalarVar_i, /* !< \brief Vector of scalar variables at point i. */
131131 *ScalarVar_j; /* !< \brief Vector of scalar variables at point j. */
132+ su2double
133+ HeatFluxDiffusion; /* !< \brief Heat flux due to enthalpy diffusion for multicomponent. */
134+ su2double
135+ JacHeatFluxDiffusion; /* !< \brief Heat flux jacobian due to enthalpy diffusion for multicomponent. */
132136 const su2double
133137 *TransVar_i, /* !< \brief Vector of turbulent variables at point i. */
134138 *TransVar_j; /* !< \brief Vector of turbulent variables at point j. */
@@ -187,6 +191,8 @@ class CNumerics {
187191
188192 bool nemo; /* !< \brief Flag for NEMO problems */
189193
194+ bool energy_multicomponent = false ; /* !< \brief Flag for multicomponent and reacting flow */
195+
190196 bool bounded_scalar = false ; /* !< \brief Flag for bounded scalar problem */
191197
192198public:
@@ -750,6 +756,20 @@ class CNumerics {
750756 Diffusion_Coeff_j = val_diffusioncoeff_j;
751757 }
752758
759+ /* !
760+ * \brief Set the heat flux due to enthalpy diffusion
761+ * \param[in] val_heatfluxdiffusion - Value of the heat flux due to enthalpy diffusion.
762+ */
763+ inline void SetHeatFluxDiffusion (su2double val_heatfluxdiffusion) { HeatFluxDiffusion = val_heatfluxdiffusion; }
764+
765+ /* !
766+ * \brief Set Jacobian of the heat flux due to enthalpy diffusion
767+ * \param[in] val_jacheatfluxdiffusion - Value of the heat flux jacobian due to enthalpy diffusion.
768+ */
769+ inline void SetJacHeatFluxDiffusion (su2double val_jacheatfluxdiffusion) {
770+ JacHeatFluxDiffusion = val_jacheatfluxdiffusion;
771+ }
772+
753773 /* !
754774 * \brief Set the laminar viscosity.
755775 * \param[in] val_laminar_viscosity_i - Value of the laminar viscosity at point i.
@@ -1038,8 +1058,7 @@ class CNumerics {
10381058 * \param[in] val_density - Value of the density.
10391059 * \param[in] val_velocity - Pointer to the velocity.
10401060 * \param[in] val_betainc2 - Value of the artificial compresibility factor.
1041- * \param[in] val_cp - Value of the specific heat at constant pressure.
1042- * \param[in] val_temperature - Value of the temperature.
1061+ * \param[in] val_enthalpy - Value of the enthalpy.
10431062 * \param[in] val_dRhodT - Value of the derivative of density w.r.t. temperature.
10441063 * \param[in] val_normal - Normal vector, the norm of the vector is the area of the face.
10451064 * \param[in] val_scale - Scale of the projection.
@@ -1048,8 +1067,7 @@ class CNumerics {
10481067 void GetInviscidIncProjJac (const su2double *val_density,
10491068 const su2double *val_velocity,
10501069 const su2double *val_betainc2,
1051- const su2double *val_cp,
1052- const su2double *val_temperature,
1070+ const su2double *val_enthalpy,
10531071 const su2double *val_dRhodT,
10541072 const su2double *val_normal,
10551073 su2double val_scale,
@@ -1060,17 +1078,15 @@ class CNumerics {
10601078 * \param[in] val_density - Value of the density.
10611079 * \param[in] val_velocity - Pointer to the velocity.
10621080 * \param[in] val_betainc2 - Value of the artificial compresibility factor.
1063- * \param[in] val_cp - Value of the specific heat at constant pressure.
1064- * \param[in] val_temperature - Value of the temperature.
1065- * \param[in] val_dRhodT - Value of the derivative of density w.r.t. temperature.
1081+ * \param[in] val_enthalpy - Value of the enthalpy.
1082+ * \param[in] val_dRhodh - Value of the derivative of density w.r.t. enthalpy.
10661083 * \param[out] val_Precon - Pointer to the preconditioning matrix.
10671084 */
10681085 void GetPreconditioner (const su2double *val_density,
10691086 const su2double *val_velocity,
10701087 const su2double *val_betainc2,
1071- const su2double *val_cp,
1072- const su2double *val_temperature,
1073- const su2double *val_drhodt,
1088+ const su2double *val_enthalpy,
1089+ const su2double *val_drhodh,
10741090 su2double **val_Precon) const ;
10751091
10761092 /* !
0 commit comments