Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jborrow/gogogadget
Initial Conditions Generator for Isolated Disk Galaxies in Gadget
https://github.com/jborrow/gogogadget
conditions cosmology gadget gadget2 ics initial science simulations
Last synced: about 2 months ago
JSON representation
Initial Conditions Generator for Isolated Disk Galaxies in Gadget
- Host: GitHub
- URL: https://github.com/jborrow/gogogadget
- Owner: JBorrow
- License: mit
- Created: 2016-12-14T15:05:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T17:32:56.000Z (almost 8 years ago)
- Last Synced: 2024-03-16T00:25:58.448Z (9 months ago)
- Topics: conditions, cosmology, gadget, gadget2, ics, initial, science, simulations
- Language: Python
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GoGoGadget
============A Generator for Isolated Disk Galaxies in Gadget
------------------------------------------------This script generates the initial conditions and parameterfile for a gadget run with an isolated galaxy. It is inteded for use with the fixed potential [InterStellarGadget](https://github.com/JBorrow/InterStellarGadget). It also provides a much more readable and portable way to write gadget parameterfiles.
To set up a run, simply run the parser script followed by the .ini file, for example from the 'example' directory:
```
python3 ../parser.py test.ini
```
This will generate the initial conditions (sans dark matter halo, of course). These follow exponential radial profiles and sech^2 profiles for the gas and stars.A quick note: using the ```--pfile``` option will ensure that the script only generates the parameterfile, and then quits.
The custom (i.e. non base-gadget) paramters are:
```
[ParameterFile]# Name and location of gadget file
ParameterFile: test.param[NFW]
# Scale lengths and masses are given in simulation units
NFWc: 40
NFWScaleRadius: 20
HaloMass: 1e12[Gas]
GasScaleRadius: 10
# Particles are generated out to radius GasScaleRadius*MaxGas
MaxGas: 30
GasScaleHeight: 1
GassMass: 1e10
GasParticles: 1e3
GasDispersion: 0[Stars]
StarScaleRadius: 10
MaxStar: 30
StarScaleHeight: 2
StarMass: 5e10
StarParticles: 1e3
StarDispersion: 0
```Warranty/etc.
-------------Of course, this software is supplied with the usual:
+ No warranty
+ No guarantee that it will produce convergent results
+ No guarantee that it will not blow up your computer.This script is not parallelized well, in particular the routines that generate the exponential profile are very lousy.