Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.05 KB

README.md

File metadata and controls

37 lines (31 loc) · 1.05 KB

lattice-gas-ca

Introduction

According to Wikipedia,

Lattice gas automata (LGA), or lattice gas cellular automata, are a type of cellular automaton used to simulate fluid flows. They were the precursor to the lattice Boltzmann methods. From lattice gas automata, it is possible to derive the macroscopic Navier-Stokes equations

Here is a prallel implementation of the Lattice Gas Cellular Automata. The serial implementation is a modified version of William Power's repository LGS

Requirements

Language: Python

Libraries:

  • mpi4py
  • numpy
  • random
  • matplotlib
  • sys
  • math

Usage

Serial:

$ python lattice-serial.py

Parallel:

$ mpirun -n <number of processes> python lattice-parallel.py

References