Code Monkey home page Code Monkey logo

fhplatticegas's Introduction

FHPLatticeGas

This is a FHP Lattice Gas Cellular Automata implementation in C++. It has been done following the steps of the book by D.A. Wolf-Gladrow, "Lattice Gas Cellular Automata and Lattice Boltzmann Models" (Springer Berlin, 2000).

It allows you to simulate the FHP-I, FHP-II or FHP-III model, simply setting up the initial conditions for the particles. Since it has been made using multispin coding, the implementation is really efficient (it can proccess a large amount the particles in a few seconds) and useful to do fluid simulations. The code measure the mean occupation numbers, velocity and density in each node.

Also, the code is well-structured and fully commented, so it's easy to modify it for your own purposes :D

FHP-III implementation differs from the one given in the book by Wolf-Gladrow (but it gives correct results).

fhplatticegas's People

Contributors

victorseven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fhplatticegas's Issues

Optimize coarse-graining

The coarse graining function could be done using the GNU compiler function to sum all the 1s in the binary representation of the uint_64. This would speed up the computations.

User-friendly BC

You have to write know the initial and boundary conditions in the code. I want to write a system so everything can be readed from a file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.