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.

Metadata

Release files for phantomsetup 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phantomsetup 0.0.1
File Size Uploaded
phantomsetup-0.0.1.tar.gz 28.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for phantomsetup 0.0.1
File Interpreter ABI Platform
phantomsetup-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 62.0 kB

Release files / phantomsetup-0.0.1.tar.gz

Download URL phantomsetup-0.0.1.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
167136b0694c8dc5295dbad74428f3415a505f6dd9f11f6d99a4024a965aa0ff
BLAKE2b-256 checksum
How to use checksums
69c5ad85867a8b61f1058f8a34b77397a1161215bc0e4baca1653e1e4bd98449
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / phantomsetup-0.0.1-py3-none-any.whl

Download URL phantomsetup-0.0.1-py3-none-any.whl
Size 33.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
854a71f4c0a97b7fd9bb21a5ae52ec24496231f5c91aaabbc0ff2226d3f84199
BLAKE2b-256 checksum
How to use checksums
7b15abfd689e5951be8d0b79d6f702a62e772e7df065f5e482fcdcf980a02c39
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

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