Giter Club home page Giter Club logo

greta's Introduction

greta

GRoupEd sTar formAtion: converting sink particles to stars that are sampled from observational initial mass function (IMF).

Paper: Liow K. Y., Rieder S., Dobbs C. L., Jaffa S. E., 2022, MNRAS, 510, 2657 (ADS link of the paper here).

Grouped star formation is developed to form stars dynamically in parsec-scale simulations, such that that the sink particles are first grouped together, then the total group masses are used to sample the IMF and form stars. The current version is not designed to be used to generate initial conditions.

greta is built upon the AMUSE framework.

Installation

First, install AMUSE:

pip install amuse-framework
pip install amuse

Then, install my version of AMUSE MASC (c.f. Steven Rieder's MASC) and create a symbolic link:

git clone https://github.com/kyliow/MASC.git masc
cd {amuse directory}/src/amuse/ext
ln -s ../../../../masc/src/amuse/ext/masc
cd ../../../../

Lastly, install greta:

git clone https://github.com/kyliow/greta.git greta

How to use

The command line arguments that can be parsed to greta.py are:

  • -i: Input AMUSE sink particle set file name.
  • -o: Output AMUSE star particle set file name. Default is stars.amuse.
  • -d: Grouping distance parameter in pc. Default is 0.
  • -v: Grouping speed parameter in km/s. Default is 0.
  • -t: Grouping age parameter in Myr. Default is 0.
  • --lower-limit: Lower limit of stellar mass in MSun. Default is 0.5.
  • --upper-limit: Upper limit of stellar mass in MSun. Default is 100.
  • -r: Random seed. Default is None.

To 'turn off' any of the three grouping parameters, simply set them to unrealistically high values. See Liow et al. (2022) for more information.

An example command to run greta.py with grouping parameters 1 pc, 3 km/s and 1 Myr:

python greta.py -i sinkfilename.amuse -o output.amuse -d 1 -v 3 -t 1

Acronym was generated using ACRONYM (Cook 2019).

greta's People

Contributors

kyliow avatar rieder avatar

Watchers

 avatar

Forkers

rieder

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.