Skip to content

Commit 91c3bc1

Browse files
author
Cristopher-Morales
committed
computing tke based on inlet values
1 parent 2b6d97a commit 91c3bc1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

SU2_CFD/src/solvers/CEulerSolver.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7356,7 +7356,12 @@ void CEulerSolver::BC_Supersonic_Inlet(CGeometry *geometry, CSolver **solver_con
73567356

73577357
const su2double Velocity2 = GeometryToolbox::SquaredNorm(int(MAXNDIM), Velocity);
73587358
su2double Energy = Pressure / (Density * Gamma_Minus_One) + 0.5 * Velocity2;
7359-
if (tkeNeeded) Energy += GetTke_Inf();
7359+
if (tkeNeeded) {
7360+
const su2double* Turb_Properties = config->GetInlet_TurbVal(config->GetMarker_All_TagBound(val_marker));
7361+
const su2double Intensity = Turb_Properties[0];
7362+
const su2double Tke = 3.0 / 2.0 * (Velocity2* pow(Intensity, 2));
7363+
Energy += Tke;
7364+
}
73607365

73617366
/*--- Primitive variables, using the derived quantities. ---*/
73627367

0 commit comments

Comments
 (0)