Giter VIP home page Giter VIP logo

grasph's Introduction

GraSPH

GraSPH is a Smoothed Partical Hydrodynamics code developed for astrophysical simulation of self gravitating fluid. The majority of the calculation is done on the GPU using openGL compute shader, which enables real time visualisation on most modern Graphics Cards. It was initially developed as part of my bachelor-thesis at the University of Koblenz in Germany which can be downloaded here (german): opus.

You can see the code in action - simulating star formation from a molecular cloud - in the following video (which was created on a consumer notebook) youtube.


usage / install

If you want to use the code yourself you will need a openGL 4.5 compatible graphics card. While it might work on different operating systems, I only work on Linux, so use anything else on your own risk. To compile the code you will need openGL, GLEW, GLFW, GLM, cmake and a compiler that supports C++17. After checking out the repository use the following commands to compile.

mkdir bin
cd bin
cmake ..
make

The executable will be saved to bin/exec/GraSPH.

The code is build around my mpUtils framework, which is however included in this repository. Files relevant to he simulation are contained in the exec/GraSPH subfolder. To change simulation settings see the Settings.h file. To change initial conditions you have to change the code in main.cpp. More user friendly ways to change settings might be implemented in the future.

grasph's People

Contributors

hschwane avatar

Watchers

James Cloos 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.