I finally understood the Weak Formulation for Finite Element Analysis

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ •

  • @DrSimulate
    @DrSimulate  2 місяці тому +10

    Frequently Asked Questions:
    1. At 03:40 I claim that rotating u does not change its curvature. What I really mean here is that adding a linear function to u does not change its curvature. If the linear function is ax + b and if a is small, adding this function to u looks a bit like rotating u.
    2. I am using the word ansatz for the assumed form of the solution function u. Although ansatz is a German word, it is also frequently used in English, especially in the mathematical context.
    3. It is possible to assume a higher order ansatz for the solution function u and use the strong form to identify the unknown parameters in the ansatz. However, in general it is not possible to simply substitute the ansatz in the strong form and solve for the parameters, because it is likely that there is no realization of parameters such that the strong form is exactly fulfilled at all points x. A remedy to this issue is to select some points in the region of interest and minimize the sum of squared residuals of the strong form at these points. This is called collocation. Maybe we can discuss this topic in a future video.
    4. With my explanation of why the strong form and the weak form are equivalent, I intended to provide some intuition on how one should think about the weak form. It should not be seen as a rigorous mathematical proof. For a rigorous mathematical treatment, please refer to the book mentioned in the description of the video.

  • @Cookstein2
    @Cookstein2 11 місяців тому +58

    I have searched high and low for videos to explain this over the years; this is the one!

    • @DrSimulate
      @DrSimulate  11 місяців тому +2

      Thanks a lot! Glad to hear that making the video was worth the efforts. :)

    • @LK-vu1dt
      @LK-vu1dt 8 місяців тому +1

      amazing!

  • @Roxas99Yami
    @Roxas99Yami 9 місяців тому +45

    as a computational physicist i have to rate this a 10/10 youtube vid.

  • @lionelmartinez6810
    @lionelmartinez6810 10 місяців тому +45

    Please, I would like a second part that focuses on the finite element method, this is incredible

    • @DrSimulate
      @DrSimulate  10 місяців тому +10

      It's on the to-do-list! :)

    • @lionelmartinez6810
      @lionelmartinez6810 10 місяців тому +3

      @@DrSimulate thank!!

    • @TheAncientColossus
      @TheAncientColossus 10 місяців тому +2

      ​@ComputationalModelingExpert Very much looking forward to it!!! You are making history!

    • @5eurosenelsuelo
      @5eurosenelsuelo 5 місяців тому +3

      It's now been released and it's great!

  • @alirezazakeri9338
    @alirezazakeri9338 День тому

    I used to skip this part of the method, thank you for this fabulous piece of content! please continue doing this great job!

  • @bugrasaat
    @bugrasaat 7 місяців тому +18

    This is one of the best explanation that i have ever heard up to now. Please come back with the FEM. Over thousand people are waiting for that!

    • @DrSimulate
      @DrSimulate  7 місяців тому +4

      Thank you so much! The next video about FEM is already in preparation :)

    • @vivekkoul4428
      @vivekkoul4428 2 місяці тому

      It's pure gold no doubt. Is he going to start the FEM series ?

  • @keydi98
    @keydi98 2 місяці тому +6

    This is an outstanding work, you made a lot of effort for that, unfortunately, this type of content will not have a lot of audience, but the amount of work realise there is just phenomenal, thank you to spend your time worrying about people like us not mastering mathematical and physical principle. I cannot not thank you enough man, this is unbelievable.

    • @keydi98
      @keydi98 2 місяці тому +1

      However I came here already knowing what an interpolation or form function Ni is, knowing also lagrange approximation and hermite approximation, maybe it would be interesting to add that in the course.

  • @SantiagoMorales-w1s
    @SantiagoMorales-w1s День тому

    This video has genuinely been enlightening, thank you so much!

  • @alemorita92
    @alemorita92 10 місяців тому +11

    Fantastic video! You are able to explain a difficult concept in an order that makes sense without glossing over the math. Textbooks usually go over the weak formulation in detail before expressing how what one really wants is an ansatz on a properly defined basis to solve the problem - I like how you start out with that, present how it won’t work naively, and then proceed to motivate weak formulations.
    I think a lot of people, myself included, would appreciate if this evolved into a series on FEM and its intricacies!

    • @DrSimulate
      @DrSimulate  10 місяців тому +1

      Thanks a lot! 🤗🤗🤗 Yes, more content on FEM is planned! :)

    • @KipIngram
      @KipIngram 9 місяців тому

      Yes, I thought the way this video divided the ideas up was extremely useful. In most introductions those things are all just "rammed together," and while you still can see that all the math is "technically correct," it's easy to lose sight of those boundaries.

  • @eduardoimaz1591
    @eduardoimaz1591 21 день тому

    I loved the video, outstanding job. I can't believe it was the first video you uploaded!!
    Also loved the music btw jajaja

  • @beansprouts113
    @beansprouts113 10 місяців тому +6

    The easiest to understand explaination I've ever come across. Each one of your videos so far is incredible please keep it up!

    • @DrSimulate
      @DrSimulate  10 місяців тому

      Thanks, Joe! This means a lot to me. :)

  • @soeinalbo913
    @soeinalbo913 24 дні тому

    Bruder du hast alles hochgenommen mit diesem video. sehr stark gemacht!

  • @cziffras9114
    @cziffras9114 10 місяців тому +4

    Wow, wonderful video, I came to the same intuition last year when I got to know PDEs, howerver I clearly could not explain it with such beautifuls images and great explanations: you truly are the boss!!!

  • @MatrixMover
    @MatrixMover 24 дні тому

    It's a great video. I was quite perplexed myself while contemplating the need for weak formulation in the finite element method.

  • @JonathanLang-nu2lx
    @JonathanLang-nu2lx Місяць тому

    I cannot thank you enough for this, this might be one of the most useful maths videos I've seen in my life. You've probably saved me hours of stress and panic and now I'm having fun with the problem I'm trying to solve instead

    • @DrSimulate
      @DrSimulate  Місяць тому

      @@JonathanLang-nu2lx Happy to hear you are having fun ;)

  • @icojb25
    @icojb25 9 місяців тому +2

    Bravo! I studied computational mechanics for my PhD and this is one of the best explanations i have seen. And one of the best videos on UA-cam. A second part would be great!

    • @DrSimulate
      @DrSimulate  9 місяців тому

      Yay, computational mechanics rocks 😁 I did also my PhD in computational mechanics :)

  • @Julian-ti1bv
    @Julian-ti1bv 8 місяців тому +2

    Awesome video! In my computational science masters program we mainly focus on mathematical proofs but I never quite got the intuition. This video helped me a lot! Glad to see more about FEA from you!

  • @yondaimenamikaze8793
    @yondaimenamikaze8793 2 місяці тому +1

    Great Video !!! This is a really helpful visualization. Keep going like this :D

    • @DrSimulate
      @DrSimulate  2 місяці тому

      Thanks a lot! Glad you enjoyed! :)

  • @tobiasl3517
    @tobiasl3517 4 місяці тому +2

    Im speechless how good this video is! The visualisazions are helping a lot! Best video about this topic on UA-cam

    • @DrSimulate
      @DrSimulate  4 місяці тому

      @@tobiasl3517 Thank you so much!

  • @Vinzmannn
    @Vinzmannn 7 місяців тому +2

    We took a look at the weak formulation in a math class in passing. This is really interesting and nice to hear it again here.

  • @ronmaor5052
    @ronmaor5052 10 місяців тому +2

    This video is nothing short but amazing for getting the intuition behind the weak form and FEM!

  • @chasefoxen
    @chasefoxen 9 місяців тому +1

    Would love to see more vids like this on variational methods, functional analysis for PDEs, and more! This video helped me a ton for getting some intuition on how we set up FEM problems and why they turn into linear systems. Awesome job!

  • @dedperded
    @dedperded 9 місяців тому +3

    That’s a 12/10 vid, extremely grateful. Thanks for adding an example and a short look into finite elements!! Looking forward to a full finite elements playlist😊

  • @huuthinhnguyen5031
    @huuthinhnguyen5031 10 місяців тому +3

    This is so so useful. The explaination is easy to follow and the animations are beautiful! I definitely would love to see a video on FEM and FEM at higher dimension than 1D. Amazing job! Thank you so much!

    • @DrSimulate
      @DrSimulate  10 місяців тому

      Thank you so much!! 🙏🙏🙏

  • @albajasadur2694
    @albajasadur2694 6 місяців тому +2

    Your video is so intuitive in explaining the weak and strong formulations. 👍 It is especially beneficial to engineering students or those who are not majoring in mathematics. The common difficulty in reading FEM textbooks is that the content is rigorously written from a mathematical point of view, making the concepts sometimes too abstract for beginners to grasp.
    I hope you will lecture us in the future on further details of FEM, such as matrix formulation, through simple examples on topics like the mechanics of solids or even vibration. 🙏

    • @DrSimulate
      @DrSimulate  6 місяців тому +1

      @@albajasadur2694 Thanks a lot. The next video on FEM will come in a few weeks :)

  • @jordanolafson
    @jordanolafson Місяць тому

    This is beautiful. I would love any and all more videos like this.

  • @RATULDAS-el3of
    @RATULDAS-el3of 10 місяців тому +1

    Finally i have found a helpful video on weak formulations after months of searching. Thanks for the great explanation. Looking forward to more content from you!

  • @LucasVieira-ob6fx
    @LucasVieira-ob6fx 9 місяців тому +2

    Beautiful explanation! This video deserves going viral!

  • @ishfaqtakkar210
    @ishfaqtakkar210 5 місяців тому +1

    I have taken multiple course in FEA but your explanation incredible and amazing!!! Please continue this series of videos.

    • @DrSimulate
      @DrSimulate  5 місяців тому

      Thanks for the kind words! :)

  • @shafihaidery848
    @shafihaidery848 9 місяців тому +2

    wow, crystal clear, you did amazing job, you deserve a medal for this video bro

  • @dhavalmysore
    @dhavalmysore 2 місяці тому +1

    Very good explanation, thank you. I would like to ask a question that some viewers may have had when you started explanation for the motivation of the weak formulation at around 7:20 time stamp. That question is, why not use a quadratic shape function instead of linear shape function, then the 2nd derivative exists (a constant)? Then, you would not need to use the weak formulation, i.e., the motivation explained at around 7:20 time stamp?

    • @DrSimulate
      @DrSimulate  2 місяці тому +1

      Thank you! This is a great question that indeed has been asked already. I just added a comment with FAQs to the video. It should appear on top of the comments section.

  • @QUANNGUYENVOHOANG
    @QUANNGUYENVOHOANG Місяць тому

    Hi, many thanks for the graphical explanation at the beginning, it help me understand the problem better.

  • @kesav1985
    @kesav1985 4 місяці тому +1

    Excellent job!
    Fantastic explanations accompanied by excellent visual aids!

  • @ib_parametres724
    @ib_parametres724 2 місяці тому +1

    This was beautifully explained. Awesome job!

  • @NathanKairuGusko
    @NathanKairuGusko 10 місяців тому +2

    What a watch! - greatly explained can't wait for more videos :)

    • @DrSimulate
      @DrSimulate  10 місяців тому

      Thank you so much Nathan!!

  • @markoula7211
    @markoula7211 3 місяці тому +1

    Hi, thank you for the great tutorial. I have a couple of questions. 1. At 7:19 you explain that we cannot insert solution function into the strong formulation because the second derivative would be zero everywhere. That is true if you choose linear shape functions, what if we use quadratic or higher order shape functions, what would happen then? Is there some kind of rule that we can use any shape function so that it has to be solvable even for the first order shape function? 2. You explain how weak formulation is made and that it is mathematically correct. BUT you do not specifically say why they transform it in that way? Why do they multiply it with test function and integrate it? Is partial integration their main motivation or is it something else? I mean, why exactly they do it like this?

    • @DrSimulate
      @DrSimulate  3 місяці тому +1

      Hi, these are great questions! I will try my best to answer them:
      1. This has been also discussed in other comments, maybe you can find them. Here is a short answer: Even if we take higher order ansatz functions, it is very likely that there exists no realization of parameters u_i such that the strong form is exactly fulfilled at all points x. This means substituting the higher order ansatz in the strong form and solving for the parameters u_i is not possible. A remedy to this problem would be to select a bunch of points x and minimize the sum of squared residuals of the strong form at these points. This is called collocation and there has been research on this, but the finite element method has been more sucessful.
      2. I totally understand why multiplying with test functions and integrating seems very random and out of the blue. I'm afraid that I cannot give you a completely satisfying explanation. But here are some thought on this. As explained in answer 1. there usually exists no realization of parameters u_i such that the strong form is exactly fulfilled at all points x. Therefore the strong formulation is a too strong requirement. We can weaken this requirement by integrating both sides of the strong form. In this way we make sure that the integrals of u'' and f are equal. But this requirement is too weak. There are many functions u that fulfill this requirement. By multiplying with the test functions before integrating, we somehow make sure that the integral of u'' and the intergal of f are similar over arbitrary intervals of x. So we again have a stronger requirement. Apologies that this explanation is not very mathematically rigorous, maybe I will make a future video about it. I will also make a video in the future about variational calculus, where I show that the weak form is the necessary condition of a minimization problem. This will hopefully add to a better understanding of the weak form.
      I think the weak form is a difficult topic because it feels like coming from out of the blue and in many years of studying and reasearch I have not yet found an explanation that is completely satisfactory from a didactical perspective.

    • @markoula7211
      @markoula7211 3 місяці тому +1

      @@DrSimulate thank you for the answer. I am a phd student of mechanical engineering and I am working on axial flux motors, both electromagnetic and mechanical design. Currently, I am trying to understand FEM because most of the things I simulate is done by FEM. When I was learning about electric machines I came to conclusion that most of the concepts can only be understood reading older textbooks, because, modern engineers often take the conclusions of the concepts without understanding basic idea. Conclusion is often enough to make something work, but for me personally, I like to understand ideas. So I will try to find the answers in the textbooks by the people who invented FEM. If I find anything meaningful I will share with you since this video is really great.

  • @muaddib6107
    @muaddib6107 10 місяців тому +6

    I would love further information on FEM in higher dimensions, in particular deriving a weak formulation for various PDEs and how to choose a good test function. Thank you for the video!

    • @DrSimulate
      @DrSimulate  10 місяців тому +1

      Thank you! Many seem to be interested in more details on FEM. I will definitely do a video about it in the future! :)

  • @nitishyadav8801
    @nitishyadav8801 5 місяців тому +1

    Thanks

  • @5eurosenelsuelo
    @5eurosenelsuelo 5 місяців тому +1

    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.

    • @DrSimulate
      @DrSimulate  5 місяців тому

      @@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 🙄

    • @5eurosenelsuelo
      @5eurosenelsuelo 5 місяців тому

      @@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.

    • @DrSimulate
      @DrSimulate  5 місяців тому

      @@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.. 🤔

    • @erichgust7138
      @erichgust7138 4 місяці тому

      You would create an over-determined system that has no solution. This is the math telling you that your ansatz that the solution is a linear combination of hat functions is false. But we already knew that the ansatz was an approximation and so is rigorously false. So there is really no point to adding more test functions without also increasing the resolution of the approximation ansatz. This is exactly what is done when one wants more resolution in a specific area for a certain problem -- put more grid points there.

  • @Peter109ful
    @Peter109ful 10 місяців тому +1

    Cool Video!
    But I am a bit confused about what you say at 22:35 - 22:55. Does that mean you get different results by using the weak formulation instead of the strong formulation?
    This must be caused at the last step at 20:10 during the partial integration, but why does this change the solution?

    • @DrSimulate
      @DrSimulate  10 місяців тому +2

      Thanks Peter,
      the analytical solution (the quadratic function) is a solution to both the strong and the weak form. But when we introduce the piecewise linear finite element ansatz, we cannot use the strong form anymore. So, the numerical solution that we find in the end is not a solution to the strong form.
      You are right, the part of the video you are referring to is confusing! All I wanted to say is that when we choose a parameterization of u, it is better to consider the weak form because it allows for the piecewise linear parametric ansatz whose second derivative is zero almost everywhere.

  • @morghor1872
    @morghor1872 2 місяці тому +1

    Thank you so much for this amazing video! Really helped me with my studies!

  • @MH_Yip
    @MH_Yip 7 місяців тому +1

    Really Really well done. Having an intuition makes learning rigous material more easier.

  • @throxs1535
    @throxs1535 3 місяці тому +1

    Small correction: at 3:56, rotating the function does change its second derivative! Translating it side to side rather, doesn't

    • @DrSimulate
      @DrSimulate  3 місяці тому

      Sorry, I was not precise there. What I meant was adding a linear function to the function, which looks a bit like a rotation if the slope of the added linear function is small :)

  • @antonioldesma
    @antonioldesma 3 місяці тому +1

    Wow, this explains it so well, I’m amazed

  • @sauravkumarnayak473
    @sauravkumarnayak473 5 місяців тому +1

    Incredible explanation!! Now I can visualise FEA concepts better. Thank You!!

  • @ajokaefi
    @ajokaefi 4 місяці тому +1

    You are a trully amazing teacher!

  • @ireoluwaTH
    @ireoluwaTH 10 місяців тому +3

    Gold.
    This is gold!

    • @DrSimulate
      @DrSimulate  10 місяців тому

      Thank you so much!! :D

  • @vinitfirke2201
    @vinitfirke2201 10 місяців тому +1

    This video is amazing, as a Master student who is currently studying Linear and Non Linear Continuum Mechanics, this video is very helpful. Also, I would also prefer to continue to upload videos of more advanced topics please

    • @DrSimulate
      @DrSimulate  10 місяців тому

      Thanks for the suggestion! There will be definitely more advanced content down the line... :)

  • @rifatmithun8948
    @rifatmithun8948 8 місяців тому +1

    Wow. Thank you for all the hard work. Keep posting.

  • @erayyildiz9562
    @erayyildiz9562 10 місяців тому +2

    Great video. Looking forward for the next ones. Thanks.

  • @Vhaanzeit
    @Vhaanzeit 10 місяців тому +1

    This not an area of Mathematics I've been remotely involved in at all, but I do have a good background from PDEs/ODEs in general and damn... what an insightful video. The intuition and explanations were so damn good, I was able to see that Integration-By-Parts was going to be necessary as soon as I saw you multiply and constrain the original strong form of the equation by v(x). Was plainly obvious (and no I did not skip forward!). The video lead the conclusions at each stage super well.
    Lovely job! Not everyone that uses this software to produce Mathematical animations has such a clear talent for demonstrating this tricky concept as you do. I forgot the name of the software, so if you could drop a name for it, that would be greatly appreciated.
    Best,
    Vhaanzeit

    • @DrSimulate
      @DrSimulate  9 місяців тому +1

      Thank you Vhaanzeit :) The name of the software is Manim (standing for mathematical animation)

  • @frannieves8495
    @frannieves8495 11 місяців тому +1

    Amazing explanations. Congratulations for the channel, and well done.

    • @DrSimulate
      @DrSimulate  11 місяців тому

      Thank you so much for your kind comment! New video coming today. :)

  • @SAHumptyDumptyTO
    @SAHumptyDumptyTO 7 місяців тому +1

    Great!! I'm studying FEM for engineering. I think this video is very easy to understand for beginners.

  • @OmPrakash-vt5vr
    @OmPrakash-vt5vr 2 місяці тому +1

    Thanks for sharing, it's now very easy to understand.

  • @nihalhegde1372
    @nihalhegde1372 7 місяців тому +1

    This is beautifully done. Would love a follow-up video on the finite element method:)

  • @AllanKobelansky
    @AllanKobelansky 11 місяців тому +1

    Outstanding work. Thank you for producing this content.

    • @DrSimulate
      @DrSimulate  11 місяців тому +1

      Thank you so much, Allan! :)

  • @alep1700
    @alep1700 2 місяці тому +1

    Great video! I really enjoyed it. However, I have a question that came to mind after your explanation. You explained that we cannot rely on the formulation involving the second derivative because our ansatz, based on linear shape functions, always has a zero second derivative. But what if we change the shape functions and use ones that are not linear-for example, polynomial functions of a degree higher than 1?
    This is probably a silly question, but I would really appreciate an explanation in the same spirit as the one you gave in the video. Thank you in advance if you’re able to answer!

    • @DrSimulate
      @DrSimulate  2 місяці тому

      Thanks! :) Yes this is a good question that has been asked several times. I just added a comment with FAQs to the video. It should appear on top of the comments section.

  • @kostoffj
    @kostoffj 3 місяці тому +1

    where was this video 4 years ago when I was taking the FEA class? Haha I got thru it but this video would have been tremendously helpful. Well done!

  • @the_ALchannel
    @the_ALchannel 3 місяці тому +1

    Oh my god, what a great video!

  • @Cookstein2
    @Cookstein2 10 місяців тому +1

    Would definitely be interested in further videos into the finite element method

    • @DrSimulate
      @DrSimulate  10 місяців тому +1

      It's definitely on the list ✅ Will take some time unfortunately

  • @mustafaemre2952
    @mustafaemre2952 9 місяців тому +2

    Did you build a pyramid or a tower? Where did you get your inspiration from? What did you drink while making this video? Look at this. Perfect!!

  • @salvatoregiordano9050
    @salvatoregiordano9050 6 місяців тому +1

    So well explained! Thank you!

  • @Daniel-vu7pi
    @Daniel-vu7pi 10 місяців тому +1

    Great video, loved the explanation and animations!

    • @DrSimulate
      @DrSimulate  10 місяців тому

      Thank you so much, Daniel!

  • @robm624
    @robm624 5 місяців тому +1

    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!

    • @DrSimulate
      @DrSimulate  5 місяців тому

      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.

    • @robm624
      @robm624 5 місяців тому +1

      @@DrSimulate Ah I think I understand, it would be great to see a video on that at some point!

    • @robm624
      @robm624 5 місяців тому

      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

    • @DrSimulate
      @DrSimulate  5 місяців тому

      @@robm624 Yes, I hope I can do a video that is more mathematically rigorous and covers e.g. the function spaces in the future :)

  • @Vbsuv
    @Vbsuv Місяць тому

    This is awesome. Commenting to lyk that I am here before you get very famous.

  • @Somersbysnoreband
    @Somersbysnoreband 6 місяців тому +1

    Wonderful video. I wish I had visualizations like these when I was at uni.

  • @strikeemblem2886
    @strikeemblem2886 10 місяців тому +1

    i would be interested in a follow-up video/notes explaining a-priori bounds for | u - u_approx |, where u = the weak solution, and u_approx = the linear combination of shape functions at 24:00.
    yes I see the reference in the description, but i would like *your* take on this. =)

    • @DrSimulate
      @DrSimulate  10 місяців тому +1

      Thanks for the suggestion! I hope I can cover this in one of the next videos on FEM. :)

  • @abcdefghijklm9697
    @abcdefghijklm9697 2 місяці тому +1

    Great explanation, thank you

  • @akaakaakaak5779
    @akaakaakaak5779 8 місяців тому +1

    Great video, just curious how you got this first video into the algorithm? 17k views on a first video is vert impressive, did you advertise anywhere?

    • @DrSimulate
      @DrSimulate  8 місяців тому

      Thanks! No, it is very unpredictable. The first weeks, I had almost no views. Then it went up. Now it's stagnating a bit...

  • @Mr.Nichan
    @Mr.Nichan 9 місяців тому +2

    20:11 "partial integration" == "integration by parts" (just in case anyone was confused and thinking of undoing partial differentiation like I was).

    • @StefanHoffmann84
      @StefanHoffmann84 7 місяців тому +1

      Maybe he is from Germany, as in Germany we call integration by parts "Partielle Integration", which translates to "partial integration" if translates verbatim.

  • @soumyadas9896
    @soumyadas9896 6 місяців тому +1

    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.

    • @DrSimulate
      @DrSimulate  5 місяців тому

      @@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.

  • @arjunmore7545
    @arjunmore7545 4 місяці тому +1

    Beautiful explanation! Thanks 😀🙌👏

  • @giuseppegaleotti9149
    @giuseppegaleotti9149 10 місяців тому +2

    Extremely good videos, keep it up

  • @arbitrandomuser
    @arbitrandomuser 9 місяців тому +1

    How is one sure that if you evaluate the weak form for N test functions the solution we get satisfies the weak form for *any* function , after all solving the linear equation in the end just show that it satisfies for the N test functions one has chosen , the solution we get from this may not solve for some other test function that i might come up with ?

    • @DrSimulate
      @DrSimulate  9 місяців тому

      The discretized weak form will be satisfied for the N test functions. But it will also be satisfied for linear combinations of these test functions, e.g., if the weak form is satisfied for v=N1 and v=N2, it will also be satisfied for a*N1+b*N2, where a and b are some scalar values. So after all, we at least know that the discretized weak form is satisfied for quite many functions...

  • @Samo_1221_s
    @Samo_1221_s 2 місяці тому +1

    Such a nice explanation! May i ask how did do the dynamic simulation 😢

    • @DrSimulate
      @DrSimulate  2 місяці тому +1

      Thanks, I am using Manim for the animations. :)

    • @Samo_1221_s
      @Samo_1221_s 2 місяці тому

      @ Thank you so much may god bless you🙂‍↕️

  • @lifescience8860
    @lifescience8860 10 місяців тому +1

    Thanks very much for this wonderful and clear explanation of the weak form. Is it possible to make a vedio on how to solve the Poisson equation using FEM by python programming, thus to help master the concept!

    • @DrSimulate
      @DrSimulate  10 місяців тому

      Thanks a lot! For the next few videos, I am planning to mostly focus on theory. At some point in the future, I will also share codes! :)

  • @mattiaviola7152
    @mattiaviola7152 10 місяців тому +1

    Very good job!! did you save the Manim files into a repository?

    • @DrSimulate
      @DrSimulate  10 місяців тому +1

      Thanks :) Manim files are not public yet. This was my first time using manim, so the code is a big mess. Maybe for future videos, I will share manim codes 🙂

  • @KipIngram
    @KipIngram 10 місяців тому +3

    I think this was very good. You completely dodged the messy business of coordinate system transformations, where you bring the "real" coordinates of each element into a common "local coordinates" formulation. I think that's important, of course, when really learning finite elements, but it is unnecessary if your goal is to motivate intuition. So - good call. I think even in a video aimed at teaching finite elements it would be best to treat those two aspects separately - the local coordinate thing is more of a "computational optimization" than it is critical to the core concept. It lets you think in terms of "universal shape functions" that get transformed (via Jacobians) to fit each element in turn. But this is completely separate from grasping the general idea that you can transform the continuous original problem into a parameterized linear algebra problem.

    • @DrSimulate
      @DrSimulate  9 місяців тому

      Yes, I am 100 percent with you! To understand the core concept of FEM it is not necessary to learn about the reference element. Of course later it is necessary to understand why the reference element is so useful...

    • @KipIngram
      @KipIngram 9 місяців тому +1

      @@DrSimulate Yes - it's useful from the "practical computation" standpoint. I was fairly fortunate in graduate school; in my first "introductory" class the subject was presented very mechanically - the professor sort of "took us by the nose" and dragged us through it. But then I took a "topics in FEM" class that was taught by Eric Becker, who was a fairly prominent FEM "guy" and had written textbooks on the subject. His style was very interesting; he'd just wander into the lecture hall, stand there and ponder for a minute, and then just start talking about some aspect of it all. Kind of whatever happened to be on his mind that day. He chose well, and wound up showing us a lot of interesting things. The "informality" of that approach would have been disastrous in the first class, I think, but in a "follow-up" class it just worked extremely nicely. I always looked forward to those lectures.
      Wow - that was... so long ago. Back around 1990 or so, maybe the late 1980's. Dr. Becker actually sat on my PhD committee. I felt privileged to learn from and be exposed to such a knowledgeable person. This was at The University of Texas at Austin.
      It also helped a lot that I'd taken a linear algebra class prior to studying FEM.

  • @MissPiggyM976
    @MissPiggyM976 9 місяців тому +1

    Great video, many thanks!

  • @jkgan4952
    @jkgan4952 7 місяців тому +1

    Great Video!

  • @SinaAtalay
    @SinaAtalay 4 місяці тому +1

    Thank you very much.

  • @CMVFENGINEER
    @CMVFENGINEER 10 місяців тому +1

    Your channel looks great

  • @hexane360
    @hexane360 10 місяців тому +1

    Would this also allow for the computation of solutions parameterized on other basis sets (e.g. Fourier series, wavelets, Chebyshev polynomials, etc.)?

    • @DrSimulate
      @DrSimulate  10 місяців тому +2

      Don't see a problem with other parameterizations. Some people recently tried to use neural networks as parameterizations. However, the power of the ansatz functions with local support (i.e., functions that are zero at many nodes) is that the matrix K has a lot of zero entries because many of the integrals vanish. This reduces the computational costs for computing the integrals as well as for solving the final linear system of equation, which is one of the reasons why the FEM is so powerful.

    • @hexane360
      @hexane360 10 місяців тому +1

      @@DrSimulate Good point on the locality; The advantage of other parameterizations would be requiring fewer paramters to start with and thus a smaller matrix K to start with. Wavelets may be interesting because they retain some degree of locality

    • @DrSimulate
      @DrSimulate  10 місяців тому

      If I remember correctly, for problems with periodic boundary conditions (for example multiscale homogenization problems) a Fourier-type ansatz is very popular.

  • @Dmitriy-qu6hv
    @Dmitriy-qu6hv 10 місяців тому +3

    the only problem with the explaination that such test functions are not allowed since the left hand side can not be integrated by parts. I think it is easier and more mathematically correct to explain the weak formulation using that residual (u''(x)-f(x)) must be a L^2 orthogonal to the test functions and if we have enough test functions, it actually forces the residual to be zero pointwise.

    • @DrSimulate
      @DrSimulate  10 місяців тому +3

      I am using the discontinuous test functions here only for developing some graphical intuition about the meaning of the fundamental lemma of the calculus of variations (before even talking about partial integration). It should also not be taken as a rigorous proof of the lemma. For those interested in more mathematical details, please refer to Theorem 0.1.4 in "The Mathematical Theory of Finite Element Methods" by Brenner and Scott, where continuous test functions with compact support and partial integration are considered.

  • @thmessage5919
    @thmessage5919 10 місяців тому +1

    Great explanation, thanks!

  • @Mightyminionrush
    @Mightyminionrush 9 місяців тому +1

    Incredible video, thanks

  • @vegetablebake
    @vegetablebake 4 місяці тому +1

    Brilliant!

  • @myfelicidade
    @myfelicidade Місяць тому

    Why not partially integrate again, so to have only u(x) in the lhs of the weak form?

  • @chainetravail2439
    @chainetravail2439 10 місяців тому +1

    So if I understand correctly, for every strong formulation there is one and only one weak formulation, but that does not mean that both have the same answer?

    • @DrSimulate
      @DrSimulate  10 місяців тому +1

      Hey,
      regarding the second part of your question: if no finite element discretization is considered, the strong form and the weak form have the same solution. For the example in the video, the analytical solution is a solution to both the strong and the weak form. But things change after introducing a finite element discretization. The solution that we obtain from finite element analysis, i.e., the numerical solution, is a solution of the discretized weak form, but it is not a solution of the strong form.
      Regarding the first part of your question: Whether there always exists one and only one weak form for any PDE is a tough question. It can be shown that some PDEs like the one in the video can be written as minimization problems (a.k.a. variational problems). The weak form can then be interpreted as the necessary condition for a minimum of the variational problem. Unfortunately, I don't know whether it is always possible to find a proper variational problem for any arbitrary PDE given in its strong form. Maybe a mathematician is following this thread and can help. I would be highly interested! :)
      A video on variational calculus is planned for the future...

    • @strikeemblem2886
      @strikeemblem2886 10 місяців тому +1

      responding to the second part of the answer: probably no, especially if you are thinking of non-linear PDEs, as they are studied on an ad-hoc basis. Sometimes, it is easy to write down the weak form, e.g. Navier-Stokes, where the non-linear part is actually bilinear, so it is not too bad.

    • @chainetravail2439
      @chainetravail2439 9 місяців тому

      ​@@strikeemblem2886 I just learned that you can see the integral as a scalar product between two functions.
      Then under some mild conditions, what you have in the weak form is an approximation of the solution of the strong force !!
      Really beautifull math, if you want I can show you the proof

    • @strikeemblem2886
      @strikeemblem2886 9 місяців тому

      @@chainetravail2439 thanks, but i am familiar with the proof (i work in PDEs). =)

  • @Anl1107-c1s
    @Anl1107-c1s 10 місяців тому +1

    Great explanation. Thank you.

    • @DrSimulate
      @DrSimulate  10 місяців тому

      Thanks, you're welcome! :)

  • @BigMims27
    @BigMims27 11 місяців тому +1

    Great explanation!

  • @mediwise2474
    @mediwise2474 3 місяці тому +1

    How to learn any numerical analysis

  • @keydi98
    @keydi98 Місяць тому

    I have a question, is it right to use N1(x) as a test function knowing that N1(x) = 1 when x = 0 (The boundary condition is not met).

    • @DrSimulate
      @DrSimulate  26 днів тому

      I start counting the shape functions with 0. So, N1 is already the second shape function with N1(x=0)=0 :)

  • @farzinhosseini2667
    @farzinhosseini2667 11 місяців тому +1

    Awesome.Thanks.
    Plz keep going.

  • @al-iraqia1
    @al-iraqia1 2 місяці тому

    Can you explain the steps programming for the Galerkin method in MATLAB?

    • @DrSimulate
      @DrSimulate  2 місяці тому +1

      I am planning to do programming videos in the future, but for the next weeks/months, I am occupied with another project. Thanks for your patience :)

    • @al-iraqia1
      @al-iraqia1 2 місяці тому

      @DrSimulate thanks🌹🌹

  • @navibongo9354
    @navibongo9354 10 місяців тому +1

    Noooo, how do you compute those integrals? What programs do you use? :'d

    • @DrSimulate
      @DrSimulate  10 місяців тому

      In this video, the functions to be integrated are very simple. They can be computed by hand. Of course for higher dimensions and for higher degree polynomials numerical integration (Gauss integration) should be used. This video had not the focus on FEM. This will be covered in the future.

  • @ytx6448
    @ytx6448 9 місяців тому

    It's a great content
    please keep forward

  • @alshahriarbd
    @alshahriarbd 3 місяці тому

    what is "UNS" in subtitles? I cannot get it when he pronounces a word like "unzerts" and it is showing as UNS in the subtitle. Can someone tell me what is that?

    • @DrSimulate
      @DrSimulate  2 місяці тому

      It's "ansatz", which is apparently not as commonly used as I thought :)

  • @mahdihosseini6361
    @mahdihosseini6361 7 місяців тому +1

    great video

  • @mohammaddudin5511
    @mohammaddudin5511 2 місяці тому +1

    amazing ❤ !!

    • @mohammaddudin5511
      @mohammaddudin5511 2 місяці тому

      please can you recommend me a reference for the method that is easy to follow just like your videos ? 😅