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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| phantomsetup-0.0.1.tar.gz | 28.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|