Skip to content

Commit 063ab9e

Browse files
Update SU2_CFD/src/solvers/CNSSolver.cpp
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
1 parent 6d07913 commit 063ab9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SU2_CFD/src/solvers/CNSSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ void CNSSolver::BC_HeatFlux_Wall_Generic(const CGeometry *geometry, const CConfi
541541
const su2double oneOnCv = (Gamma - 1.0) / config->GetGas_ConstantND();
542542
const su2double Vel2 = nodes->GetVelocity2(iPoint);
543543
const su2double dTdrho = oneOnRho * ( -Tinfinity + oneOnCv * 0.5 * Vel2);
544-
const su2double dTdrhoe = (Gamma-1.0)/(Gas_Constant*Density);
544+
const su2double dTdrhoe = oneOnCv * oneOnRho;
545545

546546
/*--- Total specific energy: e=c_v*T+1/2*v^2 => T=1/c_v(rho*e/rho - 1/2||rho v||^2/rho^2).
547547
Together with cv=R/(gamma-1) the following Jacobian contributions for the energy equation can be derived. ---*/

0 commit comments

Comments
 (0)