Incorporating boundary conditions in the Finite Element Method (FEM)

Click For Summary

Discussion Overview

The discussion revolves around the incorporation of boundary conditions in the Finite Element Method (FEM) as applied to differential equations, particularly in the context of temperature distribution. Participants explore the formulation of the source term in the FEM matrix equation and seek clarification on the roles of various components within the method.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses confusion about the source term ##F## in the equation $$[K] [T] = [F]$$ and its relation to boundary conditions.
  • Another participant suggests expanding the matrix equation in terms of its components and discusses how to handle known temperature values at certain nodes, proposing a method to shift terms to the right-hand side to formulate ##F##.
  • A subsequent reply clarifies that ##F## originates from the differential equation and provides a detailed derivation involving integration by parts and test functions.
  • Further questions arise regarding the representation of shape functions by ##\phi## and the structure of the final system in matrix form.
  • Participants also inquire whether the original equation implies solving for ##T## or ##f##.

Areas of Agreement / Disagreement

Participants generally agree on the derivation of the source term ##F## from the differential equation, but there remains uncertainty regarding the representation of shape functions and the implications of the original equation. Multiple viewpoints on the formulation and interpretation of the FEM components are present.

Contextual Notes

Limitations include potential missing assumptions regarding the definitions of terms and the specific conditions under which the boundary values are applied. The discussion does not resolve the mathematical steps involved in transitioning from the differential equation to the matrix form.

Vanilla Gorilla
Messages
78
Reaction score
24
TL;DR
As I understand it, the final step to solving a differential equation in FEM is to solve a matrix equation of the form ##[K] [T] = [F]##, where ##[K]## is the stiffness matrix, while ##[T]## is the matrix of nodal temperature values. However, I am unsure as to what ##F## represents.
I have been watching Mike Foster's video series of the Finite Element Method for Differential Equations (FEM). In this episode, he solves a DE relating to temperature. As the final step, he gives the following equation: $$[K] [T] = [F]$$ In this equation, I understand that ##[K]## is the stiffness matrix, while ##[T]## is the matrix of nodal temperature values. However, I do not fully understand what ##[F]## is, and how to incorporate it into the method; I believe that it is something relating to boundary conditions, but I am unsure as to how to formulate it from said boundary conditions.

Any help is much appreciated!
P.S., I'm not always great at articulating my thoughts, so my apologies if this question isn't clear. Also, I know this isn't high school material, but I am currently in high school, which is why I made my level "Basic/high school level."

Note to moderators: I think that is the most appropriate forum for this post. However, if not, apologies, and please feel free to move at your own discretion. :)
 
Physics news on Phys.org
Expand the matrix equation in terms of its compoenents: <br /> K_{n,1}T_1 + \dots + K_{n,N}T_N = F_n, \quad n = 1, \dots, N. If T_1 = T(x_1) and T_N = T(x_N) are known, they do not need to be solved for; substitute the known values and shift the corresponding terms to the right hand side as part of the source term F: <br /> K_{n,2}T_2 + \dots + K_{n,N-1}T_{N-1} = F_n - K_{n,1}T_1 - K_{n,N}T_N. Now discard rows 1 and N of the matrix; we do not need them, as we only have N - 2 unknowns.
 
I believe I understand that, but how do we get the source term ##F##? That is where my confusion lies.
 
THat comes from the differential equation; starting with <br /> \frac{d^2T}{dx^2} = -f we multiply by a test function v and integrate, using integration by parts on the left hand side: <br /> \left[ v(x)T&#039;(x)\right]_a^b - \int_a^b T&#039;(x)v&#039;(x)\,dx = - \int_a^b f(x)v(x)\,dx Now expand T(x) = T_1\phi_1(x) + \dots + T_N\phi_N(x) where at each node x_m <br /> \phi_n(x_m) = \begin{cases} 1 &amp; n = m \\ 0 &amp; n \neq m\end{cases} so that T(x_m) = T_m, and choose N convenient test functions v_n such that v_n(a) = v_n(b) = 0. We then get the system <br /> \left(\int_a^b \phi&#039;_1(x) v&#039;_m(x)\,dx\right) T_1 + \dots + \left(\int_a^b \phi&#039;_N(x) v&#039;_m(x)\,dx\right) T_N = \int_a^b f(x)v_m(x)\,dx and so \begin{split}<br /> K_{m,n} &amp;= \int_a^b \phi&#039;_n(x) v&#039;_m(x)\,dx \\<br /> F_m &amp;= \int_a^b f(x)v_m(x)\,dx\end{split}
 
  • Like
Likes   Reactions: Vanilla Gorilla
That makes more sense, but I still have a feq questions

Is ##\phi## representative of the shape functions?
How would the final system, shown below, end up looking in matrix form? $$ \begin{split} K_{m,n} &= \int_a^b \phi'_n(x) v'_m(x)\,dx \\ F_m &= \int_a^b f(x)v_m(x)\,dx\end{split}$$
In the orgininal equation, shown below, is it implied that we are solving for ##T## or ##f##? $$\frac{d^2T}{dx^2} = -f$$
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
7K