make_parser¶
-
eridanus_pbh.scripts.Contenta18.
make_parser
(inheritable=False, tstart: amuse.units.quantities.Quantity = quantity<0 Myr>, tstop: amuse.units.quantities.Quantity = quantity<12 Gyr>, tstep: amuse.units.quantities.Quantity = quantity<50 kyr>, tsnap: amuse.units.quantities.Quantity = quantity<10 Myr>, pot_mass: amuse.units.quantities.Quantity = <Quantity 479000000.0 solMass>, pot_a: amuse.units.quantities.Quantity = <Quantity 0.877 kpc>, use_DF: bool = True, dynfric_rmin: amuse.units.quantities.Quantity = quantity<0.05 kpc>, dynfric_tstep: amuse.units.quantities.Quantity = quantity<10 Myr>, sc_mass: Union[amuse.units.quantities.Quantity, NoneType] = quantity<19000.0 MSun>, sc_rhm: amuse.units.quantities.Quantity = quantity<10 parsec>, sc_position: amuse.units.quantities.Quantity = quantity<[0.14, 0.0, 0.0] kpc>, sc_vel_dir: list = [0, 1, 0], sc_evln_func: Callable = <class 'amuse.community.sse.interface.SSE'>, sc_gravity_func: Callable = <class 'amuse.community.bhtree.interface.BHTree'>, sc_gravity_kw: dict = {}, sc_smoothing_length: amuse.units.quantities.Quantity = quantity<0.1 parsec>, sc_opening_angle: amuse.units.quantities.Quantity = 0.6, sc_nwork: int = 8, sc_tstep: amuse.units.quantities.Quantity = quantity<25 kyr>, random=0, logfile=None, verbose=inf, use_threading=True, \*\*kw)[source]¶ Make parser for Contenta 2018 Eridanus II simulation.
- Parameters
- inheritable: bool
whether the parser can be inherited from (default False). if True, sets
add_help=False
andconflict_hander='resolve'
- tstart, tstop, tstepQuantity, optional
the simulation time arguments
- tsnapQuantity, optional
snapshot time step
- pot_mass, pot_a: Quantity, optional
arguments into potential
- use_DFbool, optional
whether to use dynamical friction
- dynfric_rminQuantity, optional
the minimum radius of the dynamical friction
- dynfric_tstepQuantity, optional
the dynamical friction computation time step
- sc_massQuantity or None, optional
the star cluster mass
- sc_mass_numQuantity or None, optional
the star cluster number of particles. Can only specify if
sc_mass
is None.- sc_rhmQuantity, optional
star cluster half-mass radius
- sc_position: Quantity, optional
star cluster position, list of [x, y, z]
- sc_velocityQuantity or None, optional
the star cluster velocity, list of [v_x, v_y, v_z]
- sc_vel_dirQuantity or None, optional
the star cluster velocity direction, list of [x, y, z]. Can only specify if
sc_velocity
is None.- sc_evln_funcQuantity, optional
star cluster stellar evolution function
- sc_gravity_funcCallable, optional
- sc_gravity_kwdict, optional
- sc_smoothing_lengthQuantity, optional
- sc_opening_angleQuantity, optional
- sc_nwork: int, optional
- sc_tstepQuantity, optional
- randomint, optional
- verboseint, optional
- Returns
- parser: ArgumentParser
Has the following actions.
Snapshot IO arguments:
from_last_snap
orfrom_snap
orfrom_start
Time Settings:
tstart
tstop
tstep
tsnap
Eri II Potential:
pot_mass
pot_a
use_DF
or (dynfric_rmin
,dynfric_tstep
)
Star Cluster Arguments:
sc_mass
orsc_mass_num
sc_rhm
sc_position
sc_velocity
orsc_vel_dir
Star Cluster Evolution:
sc_evln_func
Star Cluster Gravity:
sc_gravity_func
sc_gravity_kw
sc_smoothing_length
sc_opening_angle
sc_nwork
sc_tstep
Utilities:
verbose