GithubHelp home page GithubHelp logo

galaxy's Introduction

Galaxy

GitHub issues GitHub watchers GitHub code size

About

This project allows you to run a simulation of the collision of two galaxies. The project was based on the law of universal gravitation.
Project use C++ standard 17

Demonstration

Demo animation

How use

Start with all parameter's

cd Galaxy
make ThreeBody

Start with 3 Body

cd Galaxy
make ThreeBody

Start with Sun Earth Moon system

cd Galaxy
make Sun-Earth-Moon

Start Collision

cd Galaxy
make Sun-Earth-Moon

Clean project

cd Galaxy
make clean

galaxy's People

Contributors

aamirglb avatar dark0ghost avatar dinoz1729 avatar quuxplusone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

galaxy's Issues

idk why x2

I can´t compile:

in Cmd: g++ ThreeBody.cpp -o ThreeBody

In file included from ThreeBody.cpp:2:0:
screen.h: In member function 'void Screen::Setup()':
screen.h:259:5: error: 'CONSOLE_FONT_INFOEX' was not declared in this scope
CONSOLE_FONT_INFOEX cf = {0};
^~~~~~~~~~~~~~~~~~~
screen.h:260:5: error: 'cf' was not declared in this scope
cf.cbSize = sizeof cf;
^~
screen.h:264:68: error: 'SetCurrentConsoleFontEx' was not declared in this scope
SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), 0, &cf);

Idk why

Hello, so it seems like this line in Sun-Earth-Moon.cpp Moon.vel={sqrt(Earth.m/r),Earth.vel.y}; gives me the error narrowing conversion of 'sqrt(((double)(Earth.Body::m / ((float)r))))' from 'double' to 'float' inside { } [-Wnarrowing] idk

CMakeList.txt doesn't support compiling on Windows using MinGW

While compiling the project on Windows platform using MinGW C++ compiler throws following error:

Galaxy\screen.h:2:10: fatal error: curses.h: No such file or directory
    2 | #include <curses.h>
      |          ^~~~~~~~~~
compilation terminated.

To reproduce the issue install MinGW compiler tool chain on Windows and run following commands inside Galaxy folder

cmake -G "MinGW Makefiles" -H. -Bbuild
cd build
cmake --build .

Error in Readme.md

It says to start with all type 'make ThreeBody'.
Isn't it supposed to be 'make all'?

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.