Giter VIP home page Giter VIP logo

fvm-1's Introduction

Solving the advection-diffusion equation on an non-uniform mesh with the finite-volume method


This repo is basically my notes on learning the finite-volume method when applied to the advection-diffusion equation. The methods are based on the the book by W. Hundsdorfer and J. G. Verwer, Numerical solutions of time-dependent advection-diffusion reaction equations.

For my lab-book notes on solving the advection-diffusion equation with the finite-volume method see the accompanying gh-pages branch, http://danieljfarrell.github.io/FVM/index.html.

The code is written in python using numpy as scipy libraries.

Ideas I wanted to explore:

  • How to implement a cell centred mesh?
  • How to implement a non-uniform mesh?
  • How to include adaptive upwinding?
  • This means that the discretisation automatically adjusts to an appropriate scheme depending on the local value of the Peclet number.
  • I use exponentially fitting which is a nice method because it enables to equations to be solved for any Peclet number.
  • A central difference scheme is limited to Peclet number < 2, however a upwind scheme the Peclet number is unbounded.
  • Please not that the CFL condition imposes a limited on the time step when using upwind method.
  • How to include Robin boundary conditions which do not allow any out flow.
  • How to include Dirichlet boundary conditions.
  • How to export a movie of time-dependent simulations.

fvm-1's People

Contributors

danieljfarrell avatar

Watchers

P.Y.Wang avatar

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.