From a26bd1644a6db0c707797b5d450221d25c390277 Mon Sep 17 00:00:00 2001 From: Sigfried Haering Date: Sat, 22 Jun 2024 12:49:07 -0700 Subject: [PATCH] style check --- src/inletBC.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/inletBC.cpp b/src/inletBC.cpp index e2f251e36..dd783bc61 100644 --- a/src/inletBC.cpp +++ b/src/inletBC.cpp @@ -764,7 +764,8 @@ void InletBC::subsonicReflectingDensityVelocityFace(Vector &normal, Vector tange Vector state2(num_equation_); state2 = stateIn; - double Rgas = mixture->GetGasConstant(); + // double Rgas = mixture->GetGasConstant(); + // double pi = 3.14159265359; Vector unitNorm; double tRamp, wt; @@ -774,7 +775,6 @@ void InletBC::subsonicReflectingDensityVelocityFace(Vector &normal, Vector tange wt = 1.0; // injectsion relative to face - double pi = 3.14159265359; double Un = wt * inputState[1]; double Ut = wt * inputState[2]; @@ -1016,6 +1016,21 @@ void InletBC::interpInlet_gpu(const mfem::Vector &x, const elementIndexingData & pluginInputState(d_inputState, u2, nvel, numActiveSpecies); d_mix->modifyEnergyForPressure(u2, u2, p, true); break; + case InletType::SUB_DENS_VEL_FACE_X: + p = d_mix->ComputePressure(u1); + pluginInputState(d_inputState, u2, nvel, numActiveSpecies); + d_mix->modifyEnergyForPressure(u2, u2, p, true); + break; + case InletType::SUB_DENS_VEL_FACE_Y: + p = d_mix->ComputePressure(u1); + pluginInputState(d_inputState, u2, nvel, numActiveSpecies); + d_mix->modifyEnergyForPressure(u2, u2, p, true); + break; + case InletType::SUB_DENS_VEL_FACE_Z: + p = d_mix->ComputePressure(u1); + pluginInputState(d_inputState, u2, nvel, numActiveSpecies); + d_mix->modifyEnergyForPressure(u2, u2, p, true); + break; case InletType::SUB_DENS_VEL_NR: printf("INLET BC NOT IMPLEMENTED"); // exit(1);