This document contains code that performs a finite element simulation of a heat equation over time on a triangular mesh. It defines the mesh and boundary nodes, assembles the mass and stiffness matrices, applies an initial condition, then iteratively solves the system of equations over discrete time steps to update the solution. At each time step it applies forcing terms, solves the system, and visualizes the updated solution.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
12 views
Document 1
This document contains code that performs a finite element simulation of a heat equation over time on a triangular mesh. It defines the mesh and boundary nodes, assembles the mass and stiffness matrices, applies an initial condition, then iteratively solves the system of equations over discrete time steps to update the solution. At each time step it applies forcing terms, solves the system, and visualizes the updated solution.