Skip to content

Commit

Permalink
Disable kinetic injection temperature assert
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestglines committed Nov 22, 2023
1 parent f9703e7 commit 73cc819
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/pgen/cluster/agn_feedback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ void AGNFeedback::FeedbackSrcTerm(parthenon::MeshData<parthenon::Real> *md,
///////////////////////////////////////////////////////////////////

eos.ConsToPrim(cons, prim, nhydro, nscalars, k, j, i);
const Real old_specific_internal_e =
prim(IPR, k, j, i) / (prim(IDN, k, j, i) * (eos.GetGamma() - 1.));
//const Real old_specific_internal_e =
// prim(IPR, k, j, i) / (prim(IDN, k, j, i) * (eos.GetGamma() - 1.));

cons(IDN, k, j, i) += jet_density;
cons(IM1, k, j, i) += jet_momentum * sign_jet * jet_axis_x;
Expand All @@ -379,12 +379,13 @@ void AGNFeedback::FeedbackSrcTerm(parthenon::MeshData<parthenon::Real> *md,
}

eos.ConsToPrim(cons, prim, nhydro, nscalars, k, j, i);
const Real new_specific_internal_e =
prim(IPR, k, j, i) / (prim(IDN, k, j, i) * (eos.GetGamma() - 1.));
PARTHENON_REQUIRE(
new_specific_internal_e > jet_specific_internal_e ||
new_specific_internal_e > old_specific_internal_e,
"Kinetic injection leads to temperature below jet and existing gas");
//We're
//const Real new_specific_internal_e =
// prim(IPR, k, j, i) / (prim(IDN, k, j, i) * (eos.GetGamma() - 1.));
//PARTHENON_REQUIRE(
// new_specific_internal_e > jet_specific_internal_e ||
// new_specific_internal_e > old_specific_internal_e,
// "Kinetic injection leads to temperature below jet and existing gas");
}

// Apply velocity ceiling
Expand Down

0 comments on commit 73cc819

Please sign in to comment.