I finally understood the weak formulation for finite element analysis

Поділитися
Вставка
  • Опубліковано 2 чер 2024
  • 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 boundary condition.
    0:00 Introduction
    1:36 The Strong Formulation
    8:08 The Weak Formulation
    20:09 Partial Integration
    23:21 The Finite Element Method
    27:57 Outlook
    Recommendations:
    Finite Element Method - Numerical Analysis by Julian Roth • Finite Element Method
    A Brief Introduction to the Weak Form - Chien Liu www.comsol.com/blogs/brief-in...
    The Mathematical Theory of Finite Element Methods - S. C. Brenner and L. R. Scott link.springer.com/book/10.100...
    Music: Swans In Flight - Asher Fulero

КОМЕНТАРІ • 121

  • @Cookstein2
    @Cookstein2 2 місяці тому +25

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

  • @lionelmartinez6810
    @lionelmartinez6810 2 місяці тому +20

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

  • @Roxas99Yami
    @Roxas99Yami Місяць тому +10

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

  • @Mr.Nichan
    @Mr.Nichan Місяць тому +2

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

  • @alemorita92
    @alemorita92 Місяць тому +4

    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!

    • @ComputationalModelingExpert
      @ComputationalModelingExpert  Місяць тому +1

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

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

      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.

  • @shafihaidery848
    @shafihaidery848 Місяць тому +2

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

  • @mustafaemre2952
    @mustafaemre2952 Місяць тому +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!!

  • @LucasVieira-ob6fx
    @LucasVieira-ob6fx Місяць тому +2

    Beautiful explanation! This video deserves going viral!

  • @Julian-ti1bv
    @Julian-ti1bv 24 дні тому +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!

  • @muaddib6107
    @muaddib6107 2 місяці тому +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!

    • @ComputationalModelingExpert
      @ComputationalModelingExpert  Місяць тому +1

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

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

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

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

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

  • @dedperded
    @dedperded Місяць тому +2

    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😊

  • @rifatmithun8948
    @rifatmithun8948 20 днів тому +1

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

  • @MissPiggyM976
    @MissPiggyM976 Місяць тому +1

    Great video, many thanks!

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

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

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

    Great video, loved the explanation and animations!

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

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

  • @cziffras9114
    @cziffras9114 2 місяці тому +3

    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!!!

  • @Mightyminionrush
    @Mightyminionrush Місяць тому +1

    Incredible video, thanks

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

    Outstanding work. Thank you for producing this content.

  • @chasefoxen9393
    @chasefoxen9393 Місяць тому +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!

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

    Gold.
    This is gold!

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

    Great explanation, thanks!

  • @RATULDAS-el3of
    @RATULDAS-el3of 2 місяці тому +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!

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

    Great explanation. Thank you.

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

    It's a great content
    please keep forward

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

    Extremely good videos, keep it up

  • @huuthinhnguyen5031
    @huuthinhnguyen5031 2 місяці тому +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!

  • @Dmitriy-qu6hv
    @Dmitriy-qu6hv 2 місяці тому +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.

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

      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.

  • @icojb25
    @icojb25 Місяць тому +1

    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!

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

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

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

    Great explanation!

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

    Awesome.Thanks.
    Plz keep going.

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

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

  • @Vhaanzeit
    @Vhaanzeit Місяць тому +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

    • @ComputationalModelingExpert
      @ComputationalModelingExpert  Місяць тому +1

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

  • @vinitfirke2201
    @vinitfirke2201 2 місяці тому +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

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

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

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

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

    • @ComputationalModelingExpert
      @ComputationalModelingExpert  2 місяці тому +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 🙂

  • @CMVFENGINEER
    @CMVFENGINEER Місяць тому +1

    Your channel looks great

  • @emrekt22
    @emrekt22 2 дні тому

    this is great

  • @Peter109ful
    @Peter109ful Місяць тому +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?

    • @ComputationalModelingExpert
      @ComputationalModelingExpert  Місяць тому +1

      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.

  • @KipIngram
    @KipIngram Місяць тому +1

    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.

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

      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 Місяць тому

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

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

    As clear as 3Blue1Brown ! Thanks a lot !

  • @arbitrandomuser
    @arbitrandomuser Місяць тому +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 ?

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

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

  • @lifescience8860
    @lifescience8860 2 місяці тому +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!

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

      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! :)

  • @strikeemblem2886
    @strikeemblem2886 Місяць тому +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. =)

  • @hexane360
    @hexane360 Місяць тому +1

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

    • @ComputationalModelingExpert
      @ComputationalModelingExpert  Місяць тому +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 Місяць тому +1

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

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

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

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

    What happens with other Boundary conditions?

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

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

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

      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.

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

    u know that the creator of the video is german when he uses the expression "partial integration" :D
    Danke für das Video!

  • @chainetravail2439
    @chainetravail2439 2 місяці тому +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?

    • @ComputationalModelingExpert
      @ComputationalModelingExpert  2 місяці тому +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 Місяць тому +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 Місяць тому

      ​@@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 Місяць тому

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

  • @MH-sf6jz
    @MH-sf6jz 2 місяці тому

    But to be more rigorous, we have to make sure u is indeed two times weakly differentiable. But as what you constructed, u cannot be two times weakly differentiable because there is no continuous representative of the weak derivative of u (a continuous function that agrees with the the weak derivative of u except on a null set, which also admits the same integration by part formula) , which guarantees u is not two times weakly differentiable, hence no two times weak derivatives exists for such u unless u is constant.

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

      Are you referring to the piecewise linear ansatz? These are commonly used and I don't see a problem with this ansatz. Can you be more specific or give a reference? Thanks :)

    • @MH-sf6jz
      @MH-sf6jz Місяць тому

      @@ComputationalModelingExpert Maybe put it this way, it is well known that if strong derivative exists, then the weak derivative, if it exists, agrees with the strong derivative. But we see that the second derivative of u is 0, which does not recover u' at all when integrated, it must not be second weakly differentiable. This made it hard to justify why integration by part can applied to u' at all, hence it is hard to understand why this approximation works.

  • @Oskar-zt9dc
    @Oskar-zt9dc 2 місяці тому +1

    for all functions wii

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

    I love this kind of presentation, what kind of applications or software did you use to create this type of video? Excellent job

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

      looks like manim

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

      Yes, Manim. In other Videos, I also use matplotlib. I do the video editing with OpenShot and the audio recording with Audacity. So everything is open source or free (in case you are also interested in making videos). :)

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

    6:00

  • @f.b.t.3769
    @f.b.t.3769 2 місяці тому +1

    Excellent videos. Please give us a way to donate money to you. Your channel is still too small for you to enter UA-cam's partner program, I believe, - won't be for long! - but you sure deserve compensation for these quality explanations. I can't give much, but I'll be glad to chip in.
    Needless to say, I eagerly await more videos from you on any topic you wish to pick. Cheers!

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

      Hey fbt :) thank you so much for offering your support!! This is a hobby for me and there is no need to support me financially at this stage. But of course I would be very happy if you could support me by sharing my content with your friends and colleagues. Cheers! 😁

  • @arjunkc3227
    @arjunkc3227 23 години тому

    This is the best explanations but nowadays to get job you dont need this. Need only click the mouse in ansys. Companys hire bunch of kids who have no idea but know to click the mouse. Good companys and hiring manager only knows these values which is hard to find

  • @arbitrandomuser
    @arbitrandomuser Місяць тому +1

    i cant wrap my head around rotating u only offsetting its derivative u' by some constant ,
    adding +Cx to u offsets its derivative by C , how does rotation do that ?
    you mention this at 3:45

    • @ComputationalModelingExpert
      @ComputationalModelingExpert  Місяць тому +1

      Good point! Thanks for pointing this out!
      For the animation in the video, I have actually added a linear function to u like you suggested.
      If you think about it, this is very similar to rotating u, especially if the slope of the linear function that we add to u is very small. The x-axis intercept of the linear function added to u determines around which point u is rotated. When the slope of the added linear function gets bigger, it does not really look like a rotation anymore.
      Sorry for being imprecise in the video; it would be more clear to say that adding a linear function to u does not change u''. :)

  • @matinsnow8349
    @matinsnow8349 4 дні тому +2

    Audubillah i am wet in hose bombaclat explained

  • @kingfrozen4257
    @kingfrozen4257 Місяць тому +1

    you are 100% wrong!

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

    Great video, would like further videos.