This is a program that transforms a set of outputs simulation files from FARGO3D into a SPH data, specifically to a GADGET-3 file with HDF5 format.
Project description
mesph
This code transalate the outputs of FARGO3D to a format that splash can read by extrapolating the data. Until the moment, this only translate to a GADGET-2 file with HDF5 format using two methods: a probabilistic one and a trilineal interpolation.
Usage
The script main_parallel.py can be executed with several optional arguments to customize its behavior. It is designed to create multiple output files for each Fargo output file, with the number of output files being equal to the number of processors used.
Arguments
-p/--processors: Number of processors to use. Defaults to 2.-o/--output: Output directory for the generated files. Defaults tooutputs/snapshot.-of/--output_fargo: Directory where FARGO3D outputs are located. Defaults to../../public/outputs/p3disof/.-t/--times: Number of time steps to transform. Defaults to 1.-n/--particles: Number of particles to transform. Defaults to 10000.-a/--alpha: Alpha parameter for artificial viscosity. Defaults to 0.6.-b/--beta: Beta parameter for artificial viscosity. Defaults to 1.-tf/--total_files: Number of files per snapshot. Defaults to 2.-e/--extrapolation: Extrapolation method: 0 -> probabilistic method, 1 -> trilinear interpolation. Defaults to 0'-m/--mode: Mode: 0 = 0 -> t, 1 = t_initial -> t, 2 = t_initial -> t_final. Defaults to 0.-dti/--dT_initial: Initial time step to process. Defaults to None.-dtf/--dT_final: Final time step to process. Defaults to None.-hm/--smoothig_length_mode: Mode: 0 = density based, 1 = adaptative, 2. Defaults to 0.-vm/vectorized_mode: Mode: 0 = no vectorized, 1 = vectorized. Defaults to 0.
Running the Script
For instance, if you have 20 Fargo output files (like domain.dat, gasdens{n}.dat, gasv{n}.dat, gasenergy{n}.dat) and you want to use 8 processors, the script will generate -tf number of output files.
You can run the script with custom parameters like this:
python3 main.py -p 30 -t 20 -tf 8 -n 100000
Once its done, it will generate a executable file called run_splash_gas.sh that you can run on the command line. For this you need an X server if you want to use it interactive.
./run_splash_gas.sh
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 mesph-1.0.tar.gz.
File metadata
- Download URL: mesph-1.0.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
171e330d05f7439643ed3b921a3b413dcff72bdee7c6eb5397c10ea1610b6f4a
|
|
| MD5 |
61168e88abca487d6d6b6b08e613222a
|
|
| BLAKE2b-256 |
75b5ea1754057ca433c6a7eace7f7d3692a582bd7beaecfaafc1d95169798fe3
|
File details
Details for the file mesph-1.0-py3-none-any.whl.
File metadata
- Download URL: mesph-1.0-py3-none-any.whl
- Upload date:
- Size: 31.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
998ce5dbfc06b310ebdc6943405d79212f3421a149e091bbfa50f60de9e6cbb5
|
|
| MD5 |
40994de121b153b32e6fec63d3b24596
|
|
| BLAKE2b-256 |
4b3d239911f7dab3d14247a1361661a15f20ea7502257f79a0b966c97503d686
|