Skip to main content

Phantom setup

phantom-setup: generate initial conditions for Phantom simulations

Build Status Coverage Status Documentation Status PyPI Anaconda Version

Install

Install via conda.

conda install phantomsetup --channel dmentipl

Install via pip.

pip install phantomsetup

Usage

To generate initial conditions for a Phantom simulation via a Python script with phantom-setup:

  1. Instantiate a phantomsetup.Setup object.
  2. Add particles, set arrays, units, equation of state, sinks, dust, and other parameters.
  3. Write a Phantom HDF5 dump file containing the particle arrays.
  4. Write a Phantom in file containing the run time parameters.
  5. Compile Phantom with the correct Makefile variables.

Then run Phantom.

Examples

The examples folder contains examples that you can run as a Python script or Jupyter notebook.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phantomsetup-0.0.1.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phantomsetup-0.0.1-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file phantomsetup-0.0.1.tar.gz.

File metadata

  • Download URL: phantomsetup-0.0.1.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0.post20200113 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3

File hashes

Hashes for phantomsetup-0.0.1.tar.gz
Algorithm Hash digest
SHA256 167136b0694c8dc5295dbad74428f3415a505f6dd9f11f6d99a4024a965aa0ff
MD5 623ed73b6f73bf160c07dcd95648981d
BLAKE2b-256 69c5ad85867a8b61f1058f8a34b77397a1161215bc0e4baca1653e1e4bd98449

See more details on using hashes here.

File details

Details for the file phantomsetup-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: phantomsetup-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0.post20200113 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3

File hashes

Hashes for phantomsetup-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 854a71f4c0a97b7fd9bb21a5ae52ec24496231f5c91aaabbc0ff2226d3f84199
MD5 7151bcc0ecbb5a02bfb9387131d26728
BLAKE2b-256 7b15abfd689e5951be8d0b79d6f702a62e772e7df065f5e482fcdcf980a02c39

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page