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.Setupobject. - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
167136b0694c8dc5295dbad74428f3415a505f6dd9f11f6d99a4024a965aa0ff
|
|
| MD5 |
623ed73b6f73bf160c07dcd95648981d
|
|
| BLAKE2b-256 |
69c5ad85867a8b61f1058f8a34b77397a1161215bc0e4baca1653e1e4bd98449
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
854a71f4c0a97b7fd9bb21a5ae52ec24496231f5c91aaabbc0ff2226d3f84199
|
|
| MD5 |
7151bcc0ecbb5a02bfb9387131d26728
|
|
| BLAKE2b-256 |
7b15abfd689e5951be8d0b79d6f702a62e772e7df065f5e482fcdcf980a02c39
|