Giter Site home page Giter Site logo

fem-1d's Introduction

FEM-1D

The goal of this repository is to make it simple to learn how the finite element method works. This code is not intended to be fast and efficient. The code is object-oriented which should make it easy to read and the interface is designed to be intuitive.

For now, the code is limited to 1D linear problems and piecewise linear basis functions. The code can solve any problem of the form:

-d/dx ( p(x) * du/dx ) + q(x) * u + r(x) * du/dx = f(x)

Here U is an unknown scalar function of X defined on the interval [X_LEFT, X_RIGHT]. Both Dirichlet and Neumann boundary conditions are supported.

Getting the code

  1. Clone the repository:
git clone https://github.com/michelrobijns/FEM-1D
cd FEM-1D
  1. Create a virtualenvironment and install the dependencies:
pip3 install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

Check out the examples in the examples folder. More examples and are coming soon.

Author

Michel Robijns

Credits

I used the code on this page to check my first implementation.

fem-1d's People

Watchers

James Cloos 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.