Giter VIP home page Giter VIP logo

wlb's Introduction

A Lattice-Boltzmann code for solving coupled equations in electrohydrodynamics. 
Three collision operators are implemented for the (incompressible) Navier-Stokes, 
Nernst-Planck (advection-diffusion) and Poission's equation for electrostatics 
respectively. Various implementations of Dirichlet/Neumann boundary conditions 
are also available. The code deals (so far) only with 2D systems.

This code is part of a  master thesis project carried out at Chalmers University, 
Gothenburg. The accompanying report is available upon request (email me).
 
Example of computed (steady state) velocity field in some geometry 
(no electrical effects here):
https://raw.github.com/weierstrass/wlb/master/example.png

Another example showing a Karman vortex street:
http://www.youtube.com/watch?v=azrFJ8qbrKM

Technical overview:
 Collision operators:
   BGK:
    + Navier-Stokes
     - Shan-Chen force implementation
    + Advection-diffusion
    + Poisson's equation
 Boundary conditions:
  + Bounce back (Full way implementation)
  + Slip (Mirror reflection)
  + Periodic
  + He/Zou Constant density
  + He/Zou Constant velocity
 Boundary conditions (Not yet fully implemented)
  + LPM Neumann (From Wang paper) [NYFI]
  + He/Zou Constant velocity [NYFI]
  + BFL (Bouzidi's rule) [NYFI]

Examples:
 + Poiseuille flow
  - Driven by pressure grad.
  - Constant velocity driven
  - Force driven
 + Taylor-Green Vortex
 + Cylindrical obstacle
  - Bounce back
  - BFL 
 + 1D Poison-Boltzmann vs. Nernst-Planck
 + 2D Helmholtz equation (Wang+Chai)
 + 1D Advection-diffusion of point mass

Compile library:
 1. $ make
 
Compile and run example file:
 1. $ make (link to library libwlb.so)
 2. ./a.out > output.txt
 

Further notes:
 Old dirichlet boudary conditions for the Poisson solver are not accurate and will be removed soon.
 
  


 
 

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.