Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.45 KB

File metadata and controls

26 lines (18 loc) · 1.45 KB

First-collision timestep rarefied gas simulator

This simulator computes all possible intersections, then checks which of those possible intersections is soonest to occur, and does some checks, the simulator then runs for time for enough time for the collision to occur. Once the intersection occurs, the whole process runs again.

The idea is that CUDA allows this to go very fast, by computing a lot of data in parallel (all segments and intersections), this method of simulation is very presice as intesections are computed analitically, not in steps.

Architecture

The general arch is in architecture.md.

Image

Some refrences and thanks

  • Colliding balls: An explanation for the basic idea, but without much implementation info.
  • EasyBMP: EasyBMP is an easy to use library to generate BMP images with a simple structure to prototype any project with image generation requirement.
  • cuda-api-wrappers: Thin, unified, C++-flavored wrappers for the CUDA APIs

Become a patreon