Skip to content

This simulator computes all possible intersections for a very small timestep for a particle model

Notifications You must be signed in to change notification settings

EmmanuelMess/FirstCollisionTimestepRarefiedGasSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This simulator computes all possible intersections for a very small timestep for a particle model

Topics

Resources

Stars

Watchers

Forks