MASC
MASC (Make a star cluster) is an AMUSE-based script to generate a star cluster, to be used in N-body simulations or for other purposes. It aims to include all popular distribution models, initial mass functions, and many more features.
Supported features
- Stellar distributions: Plummer, King, fractal-based
- Initial mass function: Salpeter, Kroupa, equal-mass
- Metallicity
- Virial ratio
Not yet supported features
- Stars in initial binary/triple/multiple configurations
- Other particles than stars
Requirements
MASC requires AMUSE (https://github.com/amusecode/amuse) to work.
Usage:
Package version:
from amuse.units import units
from amuse.ext.masc import new_star_cluster
cluster = new_star_cluster(
number_of_stars=1024,
# stellar_mass=False,
initial_mass_function='salpeter',
upper_mass_limit=125.0 | units.MSun,
effective_radius=3.0 | units.parsec,
star_distribution='plummer',
# star_distribution_w0=7.0,
# star_distribution_fd=2.0,
star_metallicity=0.01,
)
Standalone version:
$ python make_a_star_cluster.py -h
usage: make_a_star_cluster.py [-h] [-o CLUSTERNAME] [-type FILE TYPE]
[-N NUMBER_OF_STARS] [-M CLUSTER_MASS]
[-dist STAR_DISTRIBUTION]
[-gasdist GAS_DISTRIBUTION]
[-imf INITIAL_MASS_FUNCTION]
[-modelnr CLUSTER_MODEL_NUMBER]
[-kingw KING_PARAMETER_W0]
[-fractald FRACTAL_PARAMETER_FD]
[-uml UPPER_MASS_LIMIT] [-Z METALLICITY]
[-ibf INITIAL_BINARY_FRACTION]
[-R EFFECTIVE_RADIUS] [-vr VIRIAL_RATIO]
optional arguments:
-h, --help show this help message and exit
-o CLUSTERNAME Outputfile name [auto]
-type FILE TYPE Output file type ([amuse]/ascii/starlab/nemo)
-N NUMBER_OF_STARS Number of stars
-M CLUSTER_MASS Cluster mass (takes precedence over number of stars)
-dist STAR_DISTRIBUTION
Star distribution ([plummer]/king/fractal)
-gasdist GAS_DISTRIBUTION
Gas distribution ([none]/plummer/king/fractal) NOT
IMPLEMENTED YET
-imf INITIAL_MASS_FUNCTION
IMF ([kroupa]/salpeter/fixed)
-modelnr CLUSTER_MODEL_NUMBER
Model number
-kingw KING_PARAMETER_W0
King W0 parameter [7.0]
-fractald FRACTAL_PARAMETER_FD
Fractal distribution [2.0]
-uml UPPER_MASS_LIMIT
Upper mass limit (in MSun) [125.]
-Z METALLICITY Metallicity [0.01]
-ibf INITIAL_BINARY_FRACTION
Initial binary fraction (0-1) [0.] NOT IMPLEMENTED YET
-R EFFECTIVE_RADIUS Cluster radius [3.0] (parsec)
-vr VIRIAL_RATIO Virial ration [0.5], 0.5=stable, 0.75=just expelled
gas, 0.1=collapsing
COPYRIGHT/LICENSE
See LICENSE
Metadata
Release files for amuse-masc 2023.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| amuse-masc-2023.9.0.tar.gz | 15.7 kB | Without provenance | Details for amuse-masc-2023.9.0.tar.gz |
Release files / amuse-masc-2023.9.0.tar.gz
| Download URL | amuse-masc-2023.9.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33fe7131e289208f8add9f7c438e138eba65f53d953b95d6e553e6d19e98c7bf
|
|
BLAKE2b-256 checksum How to use checksums |
2564ea022d590397a9a3f4c87bc76f942adf66080a9e77bfbe98b44aae862292
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for amuse-masc 2023.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.