Phantom setup with Python and HDF5
Project description
Phantom setup
phantom-setup: generate initial conditions for Phantom simulations
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:
- Instantiate a
phantomsetup.Setup
object. - Add particles, set arrays, units, equation of state, sinks, dust, and other parameters.
- Write a Phantom HDF5 dump file containing the particle arrays.
- Write a Phantom in file containing the run time parameters.
- 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.
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for phantomsetup-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 854a71f4c0a97b7fd9bb21a5ae52ec24496231f5c91aaabbc0ff2226d3f84199 |
|
MD5 | 7151bcc0ecbb5a02bfb9387131d26728 |
|
BLAKE2b-256 | 7b15abfd689e5951be8d0b79d6f702a62e772e7df065f5e482fcdcf980a02c39 |