Skip to main content

Phantom setup with Python and HDF5

Project description

Phantom setup

phantom-setup: generate initial conditions for Phantom simulations

Build Status Coverage Status Documentation Status PyPI Anaconda Version


Install via conda.

conda install phantomsetup --channel dmentipl

Install via pip.

pip install phantomsetup


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.


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

Project details

Download files

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

Files for phantomsetup, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size phantomsetup-0.0.1-py3-none-any.whl (33.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size phantomsetup-0.0.1.tar.gz (28.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page