Skip to content

Commit e242f47

Browse files
Style changes to Turb nondim of inlet values.
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
1 parent f6bd942 commit e242f47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SU2_CFD/src/solvers/CTurbSSTSolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,8 +633,8 @@ void CTurbSSTSolver::BC_Inlet(CGeometry *geometry, CSolver **solver_container, C
633633
Inlet_Vars[0] = Inlet_TurbVars[val_marker][iVertex][0];
634634
Inlet_Vars[1] = Inlet_TurbVars[val_marker][iVertex][1];
635635
if (config->GetInlet_Profile_From_File()) {
636-
Inlet_Vars[0] *= 1 / (config->GetVelocity_Ref() * config->GetVelocity_Ref());
637-
Inlet_Vars[1] *= config->GetViscosity_Ref() / (config->GetDensity_Ref() * config->GetVelocity_Ref() * config->GetVelocity_Ref());
636+
Inlet_Vars[0] /= pow(config->GetVelocity_Ref(), 2);
637+
Inlet_Vars[1] *= config->GetViscosity_Ref() / (config->GetDensity_Ref() * pow(config->GetVelocity_Ref(), 2));
638638
}
639639

640640
/*--- Set the turbulent variable states. Use free-stream SST

0 commit comments

Comments
 (0)