Skip to content
/ dsmc Public

Direct Simulation Monte Carlo for fluids/gases

Notifications You must be signed in to change notification settings

ianfr/dsmc

Repository files navigation

DSMC (Direct Simulation Monte Carlo)

Update (12/15/2025): See the branch convert-to-metal for a peek at the ongoing effort to port the project to run on Apple Silicon GPUs with Metal. Ray-tracing using Metal acceleration structures is also being leveraged there to add support for arbitrary geometries embedded in the computational domain.

Example

Heat diffusion through Argon gas at STP when the bottom boundary is hot:

  • There are 10^5 simulated particles, each representing ~270 million Argon atoms
  • The side length of the cubic domain is 100 microns
  • The computational grid is 2x2
  • Reflection off of the domain boundaries is diffuse
Initial snapshot . . .
image image image image

Overview

This project aims to use Direct Simulation Monte Carlo (DSMC) methods for modeling (dilute) gas flow.

The goal is to later extend this project to support simulation of dense gases / fluids.

See this page for mathematical background and more information.

TODOs

About

Direct Simulation Monte Carlo for fluids/gases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages