Skip to content

Commit

Permalink
style check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigfried Haering committed Jun 22, 2024
1 parent 5f9f98f commit a26bd16
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/inletBC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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];

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a26bd16

Please sign in to comment.