MP-Gadget  5.0.1.dev1-76bc7d4726-dirty
blackhole.h
Go to the documentation of this file.
1 #ifndef __BLACKHOLE_H
2 #define __BLACKHOLE_H
3 #include "utils/paramset.h"
4 #include "timestep.h"
5 #include "forcetree.h"
6 #include "physconst.h"
7 
14 };
15 
16 /*Set the parameters of the star formation module*/
18 
19 /* Does the black hole feedback and accretion.
20  * TimeNextSeedingCheck is the time of the BH next seeding check.
21  * It will be compared to the current time and updated after seeding takes place.
22  * tree is a valid ForceTree.
23  */
24 void blackhole(const ActiveParticles * act, double atime, Cosmology * CP, ForceTree * tree, const struct UnitSystem units, FILE * FdBlackHoles, FILE * FdBlackholeDetails);
25 
26 /* Make a black hole from the particle at index. */
27 void blackhole_make_one(int index, const double atime);
28 
29 /* Decide whether black hole repositioning is enabled. */
30 int BHGetRepositionEnabled(void);
31 #endif
int BHGetRepositionEnabled(void)
Definition: blackhole.c:60
void blackhole(const ActiveParticles *act, double atime, Cosmology *CP, ForceTree *tree, const struct UnitSystem units, FILE *FdBlackHoles, FILE *FdBlackholeDetails)
Definition: blackhole.c:516
void blackhole_make_one(int index, const double atime)
Definition: blackhole.c:1576
void set_blackhole_params(ParameterSet *ps)
Definition: blackhole.c:257
BlackHoleFeedbackMethod
Definition: blackhole.h:8
@ BH_FEEDBACK_OPTTHIN
Definition: blackhole.h:13
@ BH_FEEDBACK_MASS
Definition: blackhole.h:11
@ BH_FEEDBACK_SPLINE
Definition: blackhole.h:10
@ BH_FEEDBACK_VOLUME
Definition: blackhole.h:12
@ BH_FEEDBACK_TOPHAT
Definition: blackhole.h:9
static Cosmology * CP
Definition: power.c:27