leakaufmann / cq-formation-nbody Goto Github PK
View Code? Open in Web Editor NEWThis project forked from calculquebec/cq-formation-nbody
Code source pour une réalisation séquentielle du problème à N corps gravitationnel
This project forked from calculquebec/cq-formation-nbody
Code source pour une réalisation séquentielle du problème à N corps gravitationnel
This N body gravitational code is written in C++, the Makefile contains lines where you can specify the C++ compiler as well as any necessary compilation and linker flags. The resulting binary is called "nbody" and should be run with the command ./nbody [parameter file] An example of a parameter file is provided (parameters.txt); if no parameter file is supplied to the program, it runs with the default parameter values that are shown in the global.h header file. The program periodically writes out the particle positions to an MDL MOL file that can be visualized using a free tool like Jmol or PyMOL. The program is based on a direct (particle-particle) method and uses either the velocity Verlet or the fourth-order Runge-Kutta algorithm to numerically integrate the first-order system x_i' = v_i v_i' = \sum{j=1,j\ne i}^N m_j (x_i - x_j)/(eps + r_{ij}^2)^(3/2) where x_i and v_i are the position and velocity of the i-th particle, m_i its mass and r_ij is the L2 distance between x_i and x_j. The force softening parameter eps is included to avoid singularities caused by near collisions of the particles and should be small and positive. The integration algorithm used is controlled by the compilation flag VERLET. The particle motions are confined to a toroidal box when the parameter "finite_domain" is set to true. The console output consists of the time value and total energy per particle, written out every hundred timesteps.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.