Assembling mass matrix for transient heat conduction pde

Click For Summary
SUMMARY

The discussion focuses on assembling the mass matrix for the transient heat conduction partial differential equation (PDE) using the finite element method (FEM). The mass matrix for an element is defined as M^e = ∫ Ψ Ψ^T dx, where Ψ contains the shape functions of the element. The user seeks clarification on how to properly assemble this matrix, specifically how to apply Gauss quadrature for the integral and organize the shape functions into the correct matrix format. The process involves integrating individual terms M_{ij}^e = ∫ ψ_i(x)ψ_j(x) dx and correctly positioning these in the global matrix according to node numbers.

PREREQUISITES
  • Understanding of transient heat conduction PDEs
  • Familiarity with finite element method (FEM) principles
  • Knowledge of shape functions in FEM
  • Experience with Gauss quadrature for numerical integration
NEXT STEPS
  • Study the derivation of the weak form of transient heat conduction equations
  • Learn how to implement Gauss quadrature for numerical integration in FEM
  • Explore the assembly process of global matrices in finite element analysis
  • Review examples of mass matrix assembly in FEM literature
USEFUL FOR

Engineers and researchers involved in computational mechanics, particularly those working with finite element analysis of heat conduction problems.

nu_hash
Messages
10
Reaction score
0
I have derived the weak form of the transient heat conduction equation (for FEM) and I am having trouble trying to assemble the mass matrix

This is the PDE:
<br /> \frac{\partial U}{\partial t} = \alpha \nabla^2U<br />

This is the equation for the mass matrix for an element:
<br /> M^e = \int \Psi \Psi^T dx<br />
where psi is a matrix containing the shape functions of the element.

I am quite new to FEM so I am not sure how the mass matrix is supposed to be assembled, I understand that I have to use the gauss quadrature to complete the integral but I just can't figure how the matrix containing the shape functions is assembled (i.e. I don't know what numbers go where)

Any help would be greatly appreciated.
 
Engineering news on Phys.org
##\mathbf\Psi## is a vector ##\begin{bmatrix}\psi_1(x) \\ \cdots \\ \psi_n(x) \end{bmatrix}## where the ##\psi_i(x)## are the shape functions for the ##n## nodes (grid points) in the element.

So ##\mathbf \Psi\mathbf\Psi^T## is an ##n \times n## matrix, and you integrate the individual terms ##M_{ij}^e = \int \psi_i(x)\psi_j(x)\,dx##.

To assemble the element matrices into the global matrix, you label the rows and columns of the global matrix using the node (grid) numbers, and then add each element matrix into the the correct node number positions.
 
  • Like
Likes   Reactions: 1 person
Thanks that seems to make more sense now.
 

Similar threads

Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
4
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
3
Views
2K
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 27 ·
Replies
27
Views
7K
  • · Replies 36 ·
2
Replies
36
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K