Finite Element Method in FEniCS: 1D Transient Heat Diffusion in detail

  Рет қаралды 11,536

Machine Learning & Simulation

Machine Learning & Simulation

Күн бұрын

Пікірлер: 64
@alikoulani5446
@alikoulani5446 10 ай бұрын
for anyone watching this in 2024 or later, do "Import dolfin as fe" and the rest of the code should work
@vishalkumar040393
@vishalkumar040393 8 ай бұрын
does this works with dolfinx?
@alikoulani5446
@alikoulani5446 8 ай бұрын
@@vishalkumar040393 i dont think so, the change from dolfin to dolfinx was beyond my understanding of python and FEM maybe Herr Köhler can provide us with some new videos :D
@thomaslee6498
@thomaslee6498 2 жыл бұрын
Thank you very much for your excellent sharing! I like your detail explanations and steps which solved lots of questions in my mind in the past......Thank you so much! A greeting from Taiwan.......
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
You're very welcome :). Thanks a lot for your generous donation. I also struggled for a long time for understanding the weak form derivations and their implementations. I am super happy that my approach in teaching is helpful. ❤️
@SimaZahediFard
@SimaZahediFard Жыл бұрын
You did a good job! Thank you very much! you explained in very simple way, how to work with Fenics which is a big help is for a lot of researchers!
@MachineLearningSimulation
@MachineLearningSimulation Жыл бұрын
Thanks a lot 😊 I'm very happy I could help. The videos are also helpful for me to solidify my knowledge. It's a win-win 😊
@aliesmaeili6601
@aliesmaeili6601 Жыл бұрын
Hi thank you so much for your great video series about FeniCs. Could you please update them with the updated version of Fenics?
@MachineLearningSimulation
@MachineLearningSimulation Жыл бұрын
You're very welcome 🤗 It is already on my To-do list. However, for now I want to focus on other topics. Might return to FEniCs in the next year 😊
@driesvanoosten4417
@driesvanoosten4417 8 ай бұрын
Can we also use fenics to solve the nonlinear heat equation, i.e. the case were the diffusivity depends on temperature?
@MachineLearningSimulation
@MachineLearningSimulation 8 ай бұрын
I'm pretty sure this is possible. If you check out the fenics documentation you will find a section on solving nonlinear PDEs with newtons method.
@minhaanees276
@minhaanees276 2 жыл бұрын
YOU ARE EXPALINED IN A VERY GOOD WAY
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
Thanks for the kind words 😊 much appreciated.
@kavoshgar9733
@kavoshgar9733 Жыл бұрын
Very useful for us, CES and SiSc students at RWTH and TUM. Vielen Dank:)
@MachineLearningSimulation
@MachineLearningSimulation Жыл бұрын
You're welcome :). Always happy to help out fellow CSE students.
@kavoshgar9733
@kavoshgar9733 11 ай бұрын
@MachineLearningSimulation Actually your videos help a lot
@mdAman-xq5ww
@mdAman-xq5ww 2 жыл бұрын
I want to learn fenics for constitutive modelling of viscoelastic materials Can you suggest some sources to study fenics.
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
Hey, thanks for the comment 😊 I haven't used fenics for this use case yet, but I'm certain it is a good fit for solving any PDE. A good resource to start with fenics in general is the "fenics tutorial" by h.p. langtangen. The video series I have on fenics, is also inspired by it. For your particular use case it might also be helpful to search for GitHub repos in which people might have used fenics to solve a similar problem. This can be inspiring. Good luck learning fenics 👍 P.S.: also be aware that fenics is under heavy re-development at the moment, shifting towards "fenicsx" which has a slightly different interface
@mdAman-xq5ww
@mdAman-xq5ww 2 жыл бұрын
Thanks for replying your videos helps alot.....
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
@@mdAman-xq5ww You're welcome :). I'm super happy to help!
@ghufranullahkhan7479
@ghufranullahkhan7479 2 жыл бұрын
Kindly make a video on phase field model for brittle material implementation in fenics.
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
Hi, thanks for the comment. :) I will note your idea down, but I am not too familiar with this topic. I might cover it in the far future.
@MostafaMahmoud-wz6gx
@MostafaMahmoud-wz6gx 2 жыл бұрын
which is better for CFD and thrmal simulations: machine learning, data science, or AI? if I want to learn one of these which one you recommend the most?
@quantitativefinance4103
@quantitativefinance4103 2 жыл бұрын
Openfoam C++
@Michallote
@Michallote 2 жыл бұрын
None of those to be honest. CFD is it's own thing. Combining any of the above is subject of ongoing research. Not for begginers.
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
The three terms you mentioned are quite close and could be described as data-based science. If you want to learn CFD and thermal simulations, it's best to start from mathematical modeling. In particular, for thermal simulations in solids, the heat PDE (as also discussed in this video) is a great start. I would recommend looking a bit at the analytical and the numerical treatment of it. Afterwards, you can slowly build up to the Navier-Stokes equations. As @Mich Gordilla pointed out, the combination of CFD with any of your mentioned data-driven disciplines is at the frontier of current research. It is definitely out of the scope for a beginner. I hope that answered your question a bit :). Feel free to ask a follow-up question if something is unclear.
@icojb25
@icojb25 2 жыл бұрын
Another great video - quick question, do the trial functions need to always be zero on the boundaries, or match the boundary values (on the boundaries). If they dont equal zero on the boundaries, what happens to the boundary term? It becomes like a source term maybe? Thanks again :clap
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
You're very welcome. I'm glad you enjoy the videos 😊 The trial functions are the prototype for the unknown in the weak form, so they should match the boundary conditions you prescribe to the unknown function in the PDE. I really like your question. It portrays some of the difficulties in boundary handling with CFD. I will probably have to take the time to give it a proper answer. Maybe also in a future video. Stay tuned 😉
@icojb25
@icojb25 2 жыл бұрын
@@MachineLearningSimulation Hi, thanks for the answer. Imade an error, i meant the >test< functions! the one that causes the first trm of the integration by parts to go to zero. Sorry.
@Sclujan971
@Sclujan971 Жыл бұрын
Great video! I was wondering if one could specify custom (user-defined) trial and test functions with FEniCS
@MachineLearningSimulation
@MachineLearningSimulation Жыл бұрын
Thanks for the comment and the kind words :). I'm unsure. You probably have to consult the fenics documentation. Until now, I've never had the need for anything beyond the standard finite Elements.
@habib-ur-rehmaan2532
@habib-ur-rehmaan2532 2 жыл бұрын
you explained to good, kindly also make videos on Laplace equations
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
Thanks a lot for the kind words ☺️ There will a video on the poisson equation soon .
@maurobaldini4582
@maurobaldini4582 2 жыл бұрын
Which editor are you using?
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
That's Visual Studio Code with the Python Extension. For the video, I only record the editor view.
@Exarhadsgfds
@Exarhadsgfds 2 ай бұрын
great video, thank you
@MachineLearningSimulation
@MachineLearningSimulation Ай бұрын
You are welcome! 😊
@osmanfb1
@osmanfb1 2 жыл бұрын
thanks for the very nice video. Does "ansatz" mean "trial" ? I get confused. Thanks.
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
You're very welcome 😊 I'm glad you liked the video. Yes, that was a little unclear in the video. Here, those two can be considered the same
@AJ-et3vf
@AJ-et3vf 2 жыл бұрын
Great video! Thank you!
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
Glad you liked it!
@extendedanthamma5687
@extendedanthamma5687 8 ай бұрын
This was very useful!! Thank you so much!! Can you please make a video on how to solve helmholtz pde in BEMPP (boundary element method python package) for acoustic simulations?
@MachineLearningSimulation
@MachineLearningSimulation 8 ай бұрын
Thanks for the kind comment ❤️ you're very welcome. I am not familiar with neither the Helmholtz pde, Nor the bempp package. As far as I see, this Helmholtz pde essentially is a poisson problem. Maybe you find this video of mine helpful: kzbin.info/www/bejne/hWjJaXVonLWticU
@aiwithhamzanaeem
@aiwithhamzanaeem Жыл бұрын
Thank you so much dear, Now things are easy to understand.
@MachineLearningSimulation
@MachineLearningSimulation Жыл бұрын
You're welcome :). Thanks for the kind comment!
@UncoveredTruths
@UncoveredTruths 2 жыл бұрын
thank you:)
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
You're welcome!
@minhaanees276
@minhaanees276 2 жыл бұрын
PLEASE MAKE THE VIDEO POSSION EQUATION IN TWO DIEMENSION
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
There is already a coding tutorial available: kzbin.info/www/bejne/hWjJaXVonLWticU 😉
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
The derivations of the weak form for Poisson's equation is quite similar to those for structural mechanics. If you want more details, check out this one: kzbin.info/www/bejne/kF6pn4Noot6pgdk 😊
@minhaanees276
@minhaanees276 2 жыл бұрын
@@MachineLearningSimulation oo thank you 😊
@minhaanees276
@minhaanees276 Жыл бұрын
Hi please makes a video in fenicsx
@MachineLearningSimulation
@MachineLearningSimulation Жыл бұрын
At a certain point, there will be, but I can't promise when. It is currently not on top of my interests. A big motivation for the channel, is just following my curiosity. If I stopped this, the channel would probably fade out. Hope you can understand that 😊
@jimpal5119
@jimpal5119 2 жыл бұрын
Second 😁
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
Nice! :) Good to have you back.
@jimpal5119
@jimpal5119 2 жыл бұрын
@@MachineLearningSimulation I see you did make a FE video. A suggestion I have , which i think might interest you , is Petrov -Galerkin methods for fluids. Or just Taylor-Hood element solutions of the Stokes problem. Anyways , excellent content as always!
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
@@jimpal5119 Yes, that's a great idea. A video on FEniCS for Navier Stokes is already in the making. In my schedule it's also the next one to be uploaded next week. Stay tuned ;)
@jimpal5119
@jimpal5119 2 жыл бұрын
@@MachineLearningSimulation Damn , did not expect that! Definitely looking forward to it!
@mohammedjamoukha4503
@mohammedjamoukha4503 2 жыл бұрын
Hey, sehr starkes Video sind sie deutscher wenn ich fragen darf😅
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
Hi, danke für das Kommentar 😊 Genau, ich bin deutscher, merkt man leicht am Akzent, richtig?
@osmanfb1
@osmanfb1 2 жыл бұрын
I also suggest Gridap.jl as a much closer to the written math version of FEniCS.
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
That's a great suggestion. I've also been reading a little into their docs and might do a video about the library in the future 👍
@pedramnoohi2715
@pedramnoohi2715 2 жыл бұрын
excellent video, thank you for this!
@MachineLearningSimulation
@MachineLearningSimulation 2 жыл бұрын
You're very welcome!
FEniCS Tutorial: Poisson Equation
15:21
Machine Learning & Simulation
Рет қаралды 7 М.
Deriving the Weak Form for Linear Elasticity in Structural Mechanics
29:50
Machine Learning & Simulation
Рет қаралды 6 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Understanding the Finite Element Method
18:36
The Efficient Engineer
Рет қаралды 1,8 МЛН
Weak Form for Navier-Stokes with Chorin's Projection
41:30
Machine Learning & Simulation
Рет қаралды 7 М.
FEniCS Tutorial: 3D Linear Elasticity on Cantilever Beam (+Paraview Visualization)
31:39
Machine Learning & Simulation
Рет қаралды 11 М.
Stockfish Just Solved Chess
27:40
GothamChess
Рет қаралды 959 М.
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 153 М.
Laplace's Equation with Arbitrary Boundary Conditions in PYTHON
25:45
FEniCS Tutorial: Navier-Stokes Equation for Lid-Driven Cavity
39:34
Machine Learning & Simulation
Рет қаралды 10 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН