Skip to main content

DOI

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)

Source distribution for amuse-masc 2023.9.0
File Size Uploaded
amuse-masc-2023.9.0.tar.gz 15.7 kB Details

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

Release history Release notifications | RSS feed

This release

2023.9.0 This release

1 release file

0.8.0

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.3

1 release file

0.2.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page