Skip to content

aberno2000/Start

 
 

Repository files navigation

Start

Description

Dependencies

Usage

Example to compile(&start) the project

./compile.sh

or

./run.sh

Example to visualize particles with the VMD

Simplest example

int main() { RealNumberGenerator rng; std::vector<Particle> particles(N); for (size_t i{}; i < N; ++i) particles[i] = Particle(rng.get_double(0, 100), rng.get_double(0, 100), rng.get_double(0, 100), rng.get_double(0, 5), rng.get_double(0, 5), rng.get_double(0, 5), rng.get_double(0.5, 1)); for (size_t i{}; i < particles.size(); ++i) { const aabb::AABB &currentAABB{particles[i].getBoundingBox()}; particles[i].updatePosition(); } writeInXYZ(std::span<Particle const>(particles.data(), particles.size()), "trajectory.xyz"); return EXIT_SUCCESS; }

Compiling and running the simplest example

./compile.sh ./main vmd trajectory.xyz -e vmd.tcl

Result

About

Numeric simulation of physics proccess project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 55.7%
  • C++ 42.2%
  • CMake 1.4%
  • Other 0.7%