~cpraveen/fem

Codes for finite element method
Add more comments
Specify ksp_rtol instead of ksp_max_it
Fix parameter, ksp_max_iter -> ksp_max_it

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~cpraveen/fem
read/write
git@git.sr.ht:~cpraveen/fem

You can also use your local clone with git send-email.

#Codes on finite element method

These codes are prepared as material for teaching finite element method.

  • deal.II: Examples using deal.II library in C++
  • fenics: Examples using Fenics in Python (fenics is dead)
  • dolfinx: rewriting fenics codes in dolfinx
  • firedrake: rewriting fenics codes in firedrake, code is on colab
  • dg1d:
    • python: A simple 1-D DG code in Python scalar/euler equations
    • c: A simple 1-D DG code euler equations (very old, not well written)
    • Other directories contain deal.II codes.
  • dg2d: 2-D codes written in deal.II

#How to get the code ?

(1) The easiest way is by using git which will download the code in directory fem

git clone https://github.com/cpraveen/fem.git

(2) Download a zip file by clicking on the green button called "Code" and then "Download ZIP".

(3) Or use wget

wget https://github.com/cpraveen/fem/archive/master.zip

or curl

curl -O https://github.com/cpraveen/fem/archive/master.zip

and unzip it

unzip master.zip

which creates the directory fem-master.

#Other codes

#Additional software

Some of the examples require additional software.

  • Gmsh: used for generating unstructured grids
  • VisIt: used to visualize solutions
  • ParaView: another software to visualize solutions