- 11
- 44 365
Dr. Simulate
Germany
Приєднався 1 гру 2023
One animation is worth a thousand pictures! Follow this channel to learn about the math and physics behind computer simulations.
Finite Element Method Explained in 3 Levels of Difficulty (My #SoMEpi Contribution)
The finite element method is difficult to understand when studying all of its concepts at once. Therefore, I explain the finite element method in three levels with increasing complexity. At each level, different shape functions are introduced for discretizing the solution function of the given differential equation. At the first level, the shape functions are defined globally. At the second level, the shape functions are defined at the element level. And at the third level, the shape functions are defined on a reference element. Along the way, the concepts of assembly, integration by substitution and Gaussian quadrature are explained.
Video about the weak formulation: ua-cam.com/video/xZpESocdvn4/v-deo.html
This is my contribution to the Summer of Math Exposition (SoME). You can support me by joining the competition as a judge until August 18: some.3b1b.co/
0:00 Introduction
2:45 Level 1
19:37 Level 2
26:33 Level 3
38:21 Summary
Keywords: finite element method, finite element analysis, partial differential equation, Poission problem, weak formulation, discretization, assembly, isoparametric concept, reference element, Gaussian quadrature
Music: Swans In Flight - Asher Fulero
Video about the weak formulation: ua-cam.com/video/xZpESocdvn4/v-deo.html
This is my contribution to the Summer of Math Exposition (SoME). You can support me by joining the competition as a judge until August 18: some.3b1b.co/
0:00 Introduction
2:45 Level 1
19:37 Level 2
26:33 Level 3
38:21 Summary
Keywords: finite element method, finite element analysis, partial differential equation, Poission problem, weak formulation, discretization, assembly, isoparametric concept, reference element, Gaussian quadrature
Music: Swans In Flight - Asher Fulero
Переглядів: 4 665
Відео
The Difference between Stress and Traction
Переглядів 1,5 тис.2 місяці тому
This video is part of a series of videos on continuum mechanics (see playlist: ua-cam.com/play/PLMF9mxKF2mHIiy-roDINLmJz_AVXTber6.html&si=W5nGEvEWdF5XOoh6). Keywords: continuum mechanics, solid mechanics, fluid mechanics, partial differential equations, boundary value problems, linear elasticity, small strain elasticity, infinitesimal strain elasticity, Cauchy stress tensor, traction Recommenda...
Visualizing the Strain Tensor
Переглядів 2,5 тис.5 місяців тому
This video is part of a series of videos on continuum mechanics (see playlist: ua-cam.com/play/PLMF9mxKF2mHIiy-roDINLmJz_AVXTber6.html&si=W5nGEvEWdF5XOoh6). The (small or infinitesimal) strain tensor is a mathematical construct to quantify the deformation of matter in continuum mechanics. But how can we visualize it? This question is answered in this video. 0:00 Introduction 1:04 Visualizing th...
The Strain Tensor and its Weird Formula
Переглядів 4,3 тис.6 місяців тому
This video is part of a series of videos on continuum mechanics (see playlist: ua-cam.com/play/PLMF9mxKF2mHIiy-roDINLmJz_AVXTber6.html&si=W5nGEvEWdF5XOoh6). The strain tensor is a mathematical construct to quantify the deformation of matter in continuum mechanics. But the formula for the strain tensor looks unintuitive at a first glance. In this video, the (small or infinitesimal) strain tensor...
Continuum Mechanics Introduction in 10 Minutes
Переглядів 5 тис.6 місяців тому
Continuum mechanics is a powerful tool for describing many physical phenomena and it is the backbone of most computer simulations used in academic or industrial research. This video introduces with many visual animations the idea behind continuum mechanics (or continuum physics), where physical state variables are described by spatio-temporal fields. This is the first video of a series of video...
I Finally Understood the Weak Formulation for Finite Element Analysis
Переглядів 26 тис.6 місяців тому
The weak formulation is indispensable for solving partial differential equations with numerical methods like the finite element method. Yet, the concept of the weak formulation is not easy to understand by just staring at the formulae. This video aims to visually explore the weak formulation following a simple example, i.e., the one-dimensional Poission equation with Dirichlet and Neumann bound...
Thanks
Omg best video on finite element ever. Ive only learn up to level 2 and got brief introduction to level 3 for structural engineering. This video give me better insight on the latter
Thank you ❤
First thank you so much for this video, I have a question does FEM work only if the starting equation is u(x)´´ = f(x) does the problem or the differential equation has to have this form ?
Hi. No, I am just using this equation as an example (because it is the most often used example). The FEM can be applied to a variety of different problems.
Informative! and Loved it!
Thanks! :)
Thank you for your effort in making such an insightful video. More cheers to you. Waiting for more such videos from your channel
Thanks :D
I have taken multiple course in FEA but your explanation incredible and amazing!!! Please continue this series of videos.
Thanks for the kind words! :)
Loved the video but I have a bit of a question. If the reason we need the weak form is because our shape functions can only be differentiated once, why do we not use quadratic shape function and stick with the strong form? Thanks!
This was discussed also in another comment. I don't know how to link it here. Maybe you can find it under this video or under the other video on FEM. But your are right, I am not telling the full story in the video and I understand the confusion. Even when using quadratic shape functions, the derivatives of u are not continuous at the nodes. Therefore, the strong form could not be fulfilled at the nodes. To understand why this is not a problem in the weak formulation, one would need to study which function space u belongs to and study a bit of measure theory, which was not the purpose of the video. There are indeed methods that work with the strong form. These are called collocation methods. You assume an ansatz, insert it in the strong form and minimize the residuals of the strong form a set of points x. Such methods have in general not as nice properties as the FEM based on the weak form.
@@DrSimulate Ah I think I understand, it would be great to see a video on that at some point!
For anyone else interested, if you go to the FEM video ua-cam.com/video/1wSE6iQiScg/v-deo.html and crtl+F for this: "I have a question though. If you had chosen 2nd or higher order polynomials for the shape functions N(x), u''(x) would not necessarily be 0 everywhere." The comment should come up
@@robm624 Yes, I hope I can do a video that is more mathematically rigorous and covers e.g. the function spaces in the future :)
I demonstrated that a symmetric stress tensor implies the conservation of angular momentum in my continuum mechanics exam, but I truly understood the concept just now. Thank you for showing the visualization.
The gradient of displacement tensor is zero for the translation of a body coz, translation is defined as u(x) = u_0, where u_0 is constant
That's right. Do I say something contradicting in the video? If yes, can you tell me were? :)
@@DrSimulate sorry, you did not say anything contradicting. I added this info so that if someone wants to know why the displacement tensor is zero for the translation, they can find it in the comment section.
@@Prashanth-yn9zd Ahh, I see. Thanks, appreciate it! :D
This is the best. 4 months of the course is beautifully summarized in 40 mins!! Please make a video on the Boundary element method if possible!
Generaly, one begins with the hypothesis of continuum mechanics
❤❤❤ liked and subscribed! Love to see more on this and, hopefully, the riemann hypothesis.
@@RSLT Thanks :)
What about shape functions in 3 dimentions ? and how we input any geometry ? . then how the equation gets modified to solve problems with damping and nonlinear terms ? . excellent video , thanks for sharing
@@cleisonarmandomanriqueagui9176 I plan to cover all these questions in future videos :)
Thank you so much for such great videos. Pls keep making it and helping us students to learn more from you. This channel will grow lije crazy.
@@stitaswain7349 Thanks :)
Well done, love it!
Thanks
Thank you! :)
26:35 What would happen if you over-defined the system of equations by an additional test function? As you said, it's always true for ANY test function so I'm wondering if the resulting system of equations would have no solutions or infinite solutions. Great video by the way! Regarding the question to viewers at 29:50, all topics sound very interesting. I came to this video from the one you did on Finite Element and it was very good. Looking forwards to your future videos.
@@5eurosenelsuelo Good question! If the additional test functions are linearly dependent on the other test functions, then nothing changes. If not, the system may have no solution and the problem needs to be approached by minimizing the sum of the squared residuals of the system. I don't know, how this will affect the solution 🙄
@@DrSimulate Interesting. My intuition would be that the additional equations will be linearly dependent because it wouldn't add any new information to the system of equations but I don't have enough experience in the topic to test the hypothesis myself. If the new equation makes the system unsolvable it'd be so strange... That new solution found by minimizing residuals would be a more accurate solution compared to the real analytical solution? Is accuracy dependent of the test functions chosen? Computing speed definitely is but the result should be the same and if that's the case, adding more equations should add no new information as previously mentioned.
@@5eurosenelsuelo I think, as the discretization of u has an influence on the accuracy, the choice of v will also have an influence on the accuracy. For example, if you consider a two-dimensional domain, I am sure that choosing many test functions that are zero at the interesting parts of the domain (e.g., at edges or holes) is not benificial. Unfortunately, I don't have any experience with this. It would be interesting to dig in the literature and see if there is any research on this.. 🤔
"The gradient of the displacement field" Displacement is a function from R^3 to R^3 while the gradient (looking at wikipedia) works on functions from R^3 to R. So for me its not clear what this means.
Ah I see a little further in the video you mean with gradient what I would call the total derivative. Never mind :)
Best explanation of FEM one could find on internet. Looking forward for more such videos on FEM.
@@aqibrasheed4874 Thank you!! :)
This is a great video. I won't be surprised when it eventually explodes within the Math & Eng communities. I'm definitely checking the rest of the videos from this channel.
@@5eurosenelsuelo Thanks a lot! Sharing the video with your friends would help a lot 😁🤗
Incredible explanation!! Now I can visualise FEA concepts better. Thank You!!
Great videos i must say. Whats more complex in your opinion FEM or continuum mechanics ?
@@krokodilvomnil5327 Tough question. FEM is related to math, CM is related to physics. So it depends if you have more a math or physics background.. 🤔
sir, can I take v(x) any function that satisfy the condtion there but other than the combination of N_i . what is the advantages of taking v as N_i. and how can you gurantee the matrix is uniquely solvable.
@@soumyadas9896 You can take other functions than N_i, but they should be linearly independent. If you take linearly dependent functions then the system is not uniquely solvable.
Great explanation so far, I've learned a lot! What would the calculation look like if the forcing term f is chosen as a complex number?
Can you be more specific about the problem you are interested in? Is your solution function u also complex?
@@DrSimulate I am sorry, I did it a little bit wrong. It turns out to be a little bit more complicated. Edit: The system looks like: 1 / (i * k) * u'' - u = f; where only u is complex. The physical system contains a time-alternating flux density (field source = forcing term, homogeneously distributed along x) that penetrates an electrically conductive material and therefore induces a voltage in the material that causes eddy currents and damping reaction fields (Lenz's rule). f is the flux density (e. g. 0.1 T) and k can be e. g. 2 * pi * frequency * 4 * pi * 10^-7 * 625000 u = 0 at the left and right boundary.
@@maxhullmann5660 Mhh. I have never worked with such a system. Did you already derive a weak form? Maybe you can discretize both the real and imaginary part of u and substitute this into the weak form (just a guess).
Is f periodic in time (e.g., sin or cos)? If yes, you may assume a periodic ansatz for u. If not, you may have to discretize in time (e.g., Euler discetization in time). Is the problem in 1D?
@@DrSimulate 1 / (i * k) * u''(x) - u(x) = f is 1-Dimensional and f is a constant (= flux density amplitude, e.g.). I could figure out a solution: weak form: 1 / (i * k) * Integral u''(x) * v(x) dx - Integral u(x) * v(x) dx = Integral f(x) * v(x) dx. The only difference to your example is the complex factor of u''(x) * v(x) and the additional term - u(x) * v(x). The final solution turns out to be ( i / k * K - K' ) * U = F where K = Integral N' N'T dx and K' = Integral N NT dx = IdentityMatrix * ElementLength with u0 = 0 and uend = 0. The analytical solution can be computed by u_an(x) = f * cosh( sqrt( i * k ) * x) / cosh( sqrt( i * k) * Interval_Length / 2) - f (symetrical interval, e.g. -0.015 <= x <= 0.015)
Absoluter Shit endlich habe ich es verstanden 🖕
Nice work ❤❤
What software do you use to generate those animations with the graphs morphing from one shape to another?
I use Manim www.manim.community/
Gibts das auch auf deutsch ?
Ist erstmal nicht geplant ... sorry
Very impressive!.. thanks a lot for sharing 🙏🙏
Thank you
Learning from the best ;)
Thanks Angu 😁
Thank you very much Sir! Can you sent me FEM tutorial video for 3d Nuclear Reactor boiling case for Ansys Fluent 2019 r3 with .m download file? Thank you sir!
That is a very specific request 😅
May Allah bless you 💖
Amazing video with accurate animations! Thanks a lot, hope to see more such amazing videos from you.
THANKS!
Brilliant just brilliant. You are truly right, trying to understand every concept at once is difficult, but as you explain concept by concept it makes it so obvious. Thank you!! one of the best videos on this topic.
Thank you so much!! 😃
I'm impressed how much valuable information you've managed to pack in that video! Congratulations! I have a question though. If you had chosen 2nd or higher order polynomials for the shape functions N(x), u''(x) would not necessarily be 0 everywhere. That implies you could solve the discretized Strong form without the need to recast it into the discretized Weak form. Is that right or am I missing something?
The purpose of the weak form is to reduce computational effort. Linear functions require less computational power compared to quadratic or higher-order functions. Additionally, the strong form requires both essential and natural boundary conditions, while the weak form only requires essential boundary conditions, thereby reducing the continuity requirements. In conclusion, using the weak form reduces computational power and lowers continuity requirements. If I am mistaken, please correct me.
@@hamzazaheer3783 thanks. I do agree that linear shape functions and the weak form are computationally less intensive. But my question was more about the way it was framed, i.e. "let's use linear shape functions", and then "oh, these have 2nd derivative = 0", therefore "we must solve the weak form". It seems that this motivation would've been avoided if the shape functions were 2nd order or higher. So I wonder if there would be more hurdles if one would proceed with this approach (use higher order polynomials to avoid the weak form).
@@LucasVieira-ob6fx Yes, you can solve the strong form without using the weak form, but it requires higher-order shape functions compared to the weak form. Additionally, it must satisfy both essential and natural boundary conditions. You might wonder why we use the weak form if higher-order shape functions are needed. The reason is that, in the weak form, when using higher-order shape functions, you only need to satisfy the essential boundary conditions. The primary advantage of using the weak form is that it lowers the continuity requirements.
I would like to add another point. Even if the second derivative of the ansatz would not be zero, there may be a problem: It is very likely that it is not possible to tweak the parameters in the ansatz in a way that the strong form is exactly fulfilled at all points x. In other words: the "exact" or "true" solution of the differential equation cannot be expressed by the ansatz. In this case, what people do is to minimize the norm of the residuals of the strong form at some chosen points x. This is called collocation and there is still active research on that. But collocation methods are by far not as successful as methods based on the weak form.
@@DrSimulate you are talking about galerkin and rayleigh ritz method ?
Thank you for the fantastic videos! I appreciate the effort put into explaining FEM at different levels. Could you recommend resources on Shear Locking, Reduced Integration, and Hourglassing? I understand the theory but struggle with visualizing these concepts.❤❤
I don't know about a video explaining this, but you may check out these lecture notes, which are very didactic and have one section about this: ethz.ch/content/dam/ethz/special-interest/mavt/mechanical-systems/mm-dam/documents/Notes/IntroToFEA_red.pdf
@@DrSimulate Thanks
Thank you very much for the video. Could you provide a practical example, such as the electric field of a parallel plate capacitor, to observe edge effects? It would be cool to see the solution of electric field in Manim.
That's an interesting suggestion. I definitely want to show more applications in future videos. The nice thing about the Poisson problem is that it appears in many different disciplines.
Enlightening lecture. Thank you. Would you make a follow-up video about FEM in 3 dimensions?
Yes, this is definitely planned in the future. But it will take some time, thanks for your patience :)
Great explanation! I like the use of animations to illustrate these concepts.
So well explained! Thank you!
I've watched this several times and I still don't 100% get it, but I feel like I will eventually. Textbook explanations are close to meaningless to me, I just don't have the mathematical background for it.
Keep grinding 💪
its my first time learning continuum mechanics (im a cs undergrad), so far i would say i understood the general picture, although im left wondering:"is that it? seems pretty easy then!!" but i know that im wrong 😅 but so far its the most visual and appeoachable video about continuum mech ive seen, so thank you!!!
Thanks a lot! If you find this too easy, wait until we get to nonlinear continuum mechanics 🤯🤯
@@DrSimulate heheheh :) i meant easy in the sense that i somehow felt that understood the basics of it very quickly, like dunning-kruger effect, feels like i "know" so much already. Maybe because in the video i didnt get too much info about what i dont know, you know? 😁 im just spitballing
@@DrSimulate do you have a discord or a server? i would love to chat with you occasionally!
@@utof Are you by any chance on the Summer of Math Exposition discord server? We can have a chat there if you like :) discord.com/invite/WZvZMVsXXR
@@DrSimulate yeah, im there! im @utof
Wonderful video. I wish I had visualizations like these when I was at uni.