JordiManyer / upa

FEM library for Plasma Physics and Confinement Fusion.
1 stars 0 forks source link

Implement Laplacian FEM #2

Closed albertguti closed 3 years ago

albertguti commented 4 years ago

Develop first version of 1D Finite Element Method libraries to implement the Laplace equation.

JordiManyer commented 4 years ago

We should follow more or less (even in 1D) the structure of the Matlab code that I gave you: 1) A class for mesh-related things (Coordinate matrix, connectivity matrix, ...) 2) A class for the reference element 3) A function/routine that assembles the matrix given the matrix and the reference element (this is what has the physics in it) 4) A main that brings it all together: A) Creates/Imports the mesh B) Creates the reference element C) Assembles the system D) Imposes easy Boundary conditions E) Solves the equation

What do you think?