Skip to content

Commit

Permalink
agn_triggering.hpp
Browse files Browse the repository at this point in the history
modified initialization for inflow rate
  • Loading branch information
epanini authored Dec 18, 2024
1 parent f15c4ac commit 993b936
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/pgen/cluster/agn_triggering.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <mesh/mesh.hpp>
#include <parameter_input.hpp>
#include <parthenon/package.hpp>

#include <string>
// AthenaPK headers
#include "../../units.hpp"
#include "jet_coords.hpp"
Expand All @@ -34,9 +34,12 @@ class AGNTriggering {
private:
const parthenon::Real gamma_;
parthenon::Real mean_molecular_mass_;

public:
const AGNTriggeringMode triggering_mode_;

parthenon::Real inflow_cold_=0.0; // Cold mass inflow rate
parthenon::Real inflow_tot_=0.0; // Total gas mass inflow rate

const parthenon::Real accretion_radius_;

Expand Down Expand Up @@ -71,9 +74,9 @@ class AGNTriggering {
// Compute Cold gas accretion rate within the accretion radius for cold gas triggering
// and simultaneously remove cold gas (updating conserveds and primitives)
template <typename EOS>
void ReduceColdMass(parthenon::Real &cold_mass,
void ReduceColdMass(parthenon::Real &cold_mass,parthenon::Real &total_mass,
parthenon::MeshData<parthenon::Real> *md, const parthenon::Real dt,
const EOS eos) const;
const EOS eos) ;

// Compute Mass-weighted total density, velocity, and sound speed and total mass
// for Bondi accretion
Expand Down

0 comments on commit 993b936

Please sign in to comment.