Skip to content

Commit 6743704

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

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
@@ -540,7 +540,7 @@ void CNSSolver::BC_HeatFlux_Wall_Generic(const CGeometry *geometry, const CConfi
540540
const su2double Density = nodes->GetDensity(iPoint);
541541
const su2double oneOnCv = (Gamma - 1.0) / config->GetGas_ConstantND();
542542
const su2double Vel2 = nodes->GetVelocity2(iPoint);
543-
const su2double dTdrho = 1.0/Density * ( -Tinfinity + (Gamma-1.0)/Gas_Constant*(Vel2/2.0) );
543+
const su2double dTdrho = oneOnRho * ( -Tinfinity + oneOnCv * 0.5 * Vel2);
544544
const su2double dTdrhoe = (Gamma-1.0)/(Gas_Constant*Density);
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).

0 commit comments

Comments
 (0)