Home

Awesome

varFEM: Variational formulation based programming for Finite Element Methods in MATLAB

If you have any problems, please contact me via the email: terenceyuyue@sjtu.edu.cn

More academic examples and problems can be found in the companion package - mFEM: https://github.com/Terenceyuyue/mFEM

[TOC]


Intentions

We intend to develop the "variational formulation based programming" in a similar way of FreeFEM, a high level multiphysics finite element software. The similarity here only refers to the programming style of the main program, not to the internal architecture of the software.

Example: The stiffness matrix for the bilinear form $\int_{T_h} \nabla u \cdot \nabla v {\rm d}\sigma$ can be computed as follows.

  Vh = 'P1';  quadOrder = 5;
  Coef  = 1;
  Test  = 'v.grad';
  Trial = 'u.grad';
  kk = assem2d(Th,Coef,Test,Trial,Vh,quadOrder);

Variational formulation based programming

Examples