Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

YukiNix/CAdfinitas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adfīnitās

C N-body simulation program with distributed support. It is the new edition of Juila Adfīnitās package. Fixed memory consumpting problem and speed up.

Now distributed computing support is comming back with MPI.

All integrators are sympletic integrator, but Verlet method have some known problem on Hamilton conservation(To be continued).

This simulator does not solve collision. So in the example 3.2, the Hamilton of system is not conservated.


Dependency: libXi, openMPI(or other MPI implementation, ditributed condition only);

Example dependency: GNU Plot, make, cc;


There are some examples just same as Julia edition.

Examples in examples/, just run: # make all, or using MPI with # make all_mpi

  1. Solar system up to Jupiter;
    a. Orbits;
    solar system orbits
    b. System Hamilton;
    system hamilton
    c. Radial velocity of Mercury and Solar;
    radial velosity
  2. Sun-Earth-Moon system, but Moon has velocity on z-axis;
    a. orbits;
    Sun-Earth-Moon system orbits
  3. N-Body simulation with 1000 bodies; a. 1000-bodies animation;
    1000-bodies animation
    a. system Hamilton;
    system Hamilton

About

The C version program updated from Julia Adfinitas package.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages