Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Turbulent kinetic energy based on inlet condition for supersonic inlet #2430

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion SU2_CFD/src/solvers/CEulerSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7356,7 +7356,12 @@ void CEulerSolver::BC_Supersonic_Inlet(CGeometry *geometry, CSolver **solver_con

const su2double Velocity2 = GeometryToolbox::SquaredNorm(int(MAXNDIM), Velocity);
su2double Energy = Pressure / (Density * Gamma_Minus_One) + 0.5 * Velocity2;
if (tkeNeeded) Energy += GetTke_Inf();
if (tkeNeeded) {
const su2double* Turb_Properties = config->GetInlet_TurbVal(Marker_Tag);
const su2double Intensity = Turb_Properties[0];
const su2double Tke = 3.0 / 2.0 * (Velocity2* pow(Intensity, 2));
Energy += Tke;
}

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

Expand Down
Loading