Skip to content

Implementation of a 2D FEM solver for elastic plain stress problems.

License

Notifications You must be signed in to change notification settings

JoshuaSimon/2D-FEM-Solver

Repository files navigation

2D-FEM-Solver

Implementation of a 2D FEM solver for elastic plain stress problems.

This FEM solver is able to read a specific input file, which contains all the mesh data. There is no limit to number of nodes or anything. The only thing to be ensured is that the input file has the right structure. An example for an input file is given within this repository. From there the mathematical model is created and all calculations and solving is done. The 2D solvers comes with a lightweight post processor. Visualizing the mesh, displacement and stress output is done with "gnuplot". This program does not include a mesh generator. Creating a geometry and a meshed geometry must be done seperatly.

The C++ template library for linear algebra "Eigen" is used in this project. You can download it for free here: http://eigen.tuxfamily.org/index.php?title=Main_Page

All plots were created with "gnuplot". For more information see: http://www.gnuplot.info/

Geometry and input mesh data were created with the "GiD" software. For more information see: https://www.gidhome.com/

Examples

Ex. 1:

V. Mises stress and displacement plots for a metal bar. Boundary conditions in this example:

  • Fixed support on the left edge
  • Applied force in negative y-direction on the top edge

Stress_Plot_Ex_01.png Displacements_Plot_Ex_01.png

Ex. 2:

V. Mises stress and displacement plots for a metal plate with a circular bore. Boundary conditions in this example:

  • Fixed support around the circular bore
  • Applied force in negative y-direction on the top edge

Stress_Plot_Ex_02.png Displacements_Plot_Ex_02.png

About

Implementation of a 2D FEM solver for elastic plain stress problems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published