Back to Browse

I Built a Finite Element Solver in Python — From Scratch in 15 Minutes

1.6K views
Mar 6, 2025
16:05

In this video I show you how to write the tinyest Finite Element Method (FEM) Python Solver from scratch, in 15 mins. I'm using Jupyter Notebook for clarity. The idea here is to obtain simple displacements of a single element loading with a force in one of its nodes. Take into account Plain Strain is supposed to be ez=0 so, it is a scenario with thickness (Z dim) larger than in plane (x and y) dimensions. Plane stress is the opposite. So at the end of this video, thickness should be also coherent. This video is only a sight of a course I'm preparing. Subscribe to mailing list to get exclusive material and courses together with announcements!! https://opensourcemech.com/subscribe 0:00 Intro 0:40 Jupyter Notebook Sections - Plot and Solver 1:00 Shape Functions 3:30 Material Matrix 4:00 Stiffness Matrix introduction 5:13 Jacobian Matrix and determinant 6:55 Global derivatives and B matrix 8:45 Stiffness matrix calc from B matrix 10:00 Defining U & F vectors 11:00 Boundary conditions 13:00 Solving System 13:55 Beautiful Plot!

Download

0 formats

No download links available.

I Built a Finite Element Solver in Python — From Scratch in 15 Minutes | NatokHD