Giter Site home page Giter Site logo

phirling / swift_ics Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 159 KB

Tools to generate stable self-gravitating N-Body initial conditions and new external potentials for the SWIFT N-Body code

Python 28.65% M4 64.16% C 7.19%
nbody nbody-gravity-simulation

swift_ics's Introduction

SWIFT N-body isolated stellar ICs

Initial Condition generators

A set of python scripts to generate realizations of a few isolated stellar systems via their distribution function, and to write them to an initial conditions file compatible with the SWIFT code: https://swift.dur.ac.uk/

  • plummerIC.py: Generates realization of general Plummer model (Dejonghe 1987, 1987MNRAS.224...13D, see also Breen et al. 2017, 2017MNRAS.471.2778B)
  • plummer_isotropic_ic.py: Generates the particular case of an isotropic (in velocities) Plummer model (see Aarseth et al., 1974A&A....37..183A)
  • mestelIC.py: Generates realization of a finite-mass, razor-thin Mestel disk as in (De Rijcke et al. 2019, 2019MNRAS.484.3198D)
  • read_snapshot.py: Class to read from a Swift .hdf5 snapshot file
  • write_gadget.py: Wrapper used to write ics to a SWIFT-compatible hdf5 IC file (Josh Borrow ([email protected]), see official SWIFT documentation)

New External Potential for SWIFT

The directory swiftsim contains the necessary additions to the SWIFT source to compile it with an external Mestel Potential.

swift_ics's People

Contributors

phirling avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.