MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
libgadget
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
8
enum
BlackHoleFeedbackMethod
{
9
BH_FEEDBACK_TOPHAT
= 0x2,
10
BH_FEEDBACK_SPLINE
= 0x4,
11
BH_FEEDBACK_MASS
= 0x8,
12
BH_FEEDBACK_VOLUME
= 0x10,
13
BH_FEEDBACK_OPTTHIN
= 0x20,
14
};
15
16
/*Set the parameters of the star formation module*/
17
void
set_blackhole_params
(
ParameterSet
* ps);
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
BHGetRepositionEnabled
int BHGetRepositionEnabled(void)
Definition:
blackhole.c:60
blackhole
void blackhole(const ActiveParticles *act, double atime, Cosmology *CP, ForceTree *tree, const struct UnitSystem units, FILE *FdBlackHoles, FILE *FdBlackholeDetails)
Definition:
blackhole.c:516
blackhole_make_one
void blackhole_make_one(int index, const double atime)
Definition:
blackhole.c:1576
set_blackhole_params
void set_blackhole_params(ParameterSet *ps)
Definition:
blackhole.c:257
BlackHoleFeedbackMethod
BlackHoleFeedbackMethod
Definition:
blackhole.h:8
BH_FEEDBACK_OPTTHIN
@ BH_FEEDBACK_OPTTHIN
Definition:
blackhole.h:13
BH_FEEDBACK_MASS
@ BH_FEEDBACK_MASS
Definition:
blackhole.h:11
BH_FEEDBACK_SPLINE
@ BH_FEEDBACK_SPLINE
Definition:
blackhole.h:10
BH_FEEDBACK_VOLUME
@ BH_FEEDBACK_VOLUME
Definition:
blackhole.h:12
BH_FEEDBACK_TOPHAT
@ BH_FEEDBACK_TOPHAT
Definition:
blackhole.h:9
forcetree.h
paramset.h
physconst.h
CP
static Cosmology * CP
Definition:
power.c:27
ActiveParticles
Definition:
timestep.h:10
Cosmology
Definition:
cosmology.h:8
ForceTree
Definition:
forcetree.h:76
ParameterSet
Definition:
paramset.c:95
UnitSystem
Definition:
unitsystem.h:7
timestep.h
Generated by
1.9.1