Coder Social home page Coder Social logo

curvilinear_grid_fdm's Introduction

Finite difference method on curvilinear grid

Introduction

Curvilinear_Grid_FDM is project that implement finite difference method on curvilinear grid. The code can be modifide easily by students interested in this topic. More features will be added in the future.


Brief theoretical description

TBD


Program Structure

CUR_GRID_FDM/DiscreteSchemes

There two modules provide necessary informations to assemble discrete schemes.

  • CalCoeff.py

    Calculate essential coefficients for curvilinear coordinates. A structure mesh is given for computing the coefficients. The available information inlcudes: covariant basis vector, contravariant basis vector, metric tensor and christoffel symbols.

  • OperatorFDM3D.py

    Genertate the coefficient matrix for 3D finite difference computation. A structure mesh is given for querying the coefficients. The coefficient matrix can be obtained with several kinds of derivative operations.

CUR_GRID_FDM/Geometry

Provide the information of a structure mesh.

  • RectangularMesh.py

    Provide a structural rectangular mesh.

  • CurveRectangularMesh.py

    Provide a structural curve rectangular mesh.

  • DonutMesh.py

    Provide a structural donut mesh.

Solver

The different solvers that need to be built by the user under specific scenario.


Example

LAPLACE equation

Laplace equation is solved in a (1) rectangular, (1) curved rectangular and (3) cylindrical domain with dirichlet boundary conditions on all sides.

TODO

  1. Support user defined mesh.

References

[1] Finite Difference Coefficients Calculator

curvilinear_grid_fdm's People

Contributors

binghanlin avatar

Stargazers

 avatar

Watchers

 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.