Solving 1D Diffusion Equation using MATLAB | Lecture 5 | ICFDM

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น • 68

  • @Strikervishu
    @Strikervishu 2 ปีที่แล้ว

    Hi Tanmay , i was searching for cfd videos from 1 week and suddenly i came across your channel. I literally like your way of teaching . Before watching your videos i was thinking the cfd with matlab is not my cup of tea .But your videos have cleared many of my doubts . Just a bid thanks for uploading such productive videos

  • @woochanjung8259
    @woochanjung8259 2 ปีที่แล้ว

    감사합니다.

  • @I_am_Rathore
    @I_am_Rathore 4 ปีที่แล้ว +1

    Many thanks @Tanmay...learning a lot from your tutorials.

  • @nilamanisahoo7825
    @nilamanisahoo7825 2 ปีที่แล้ว

    Well done Tanmay..

  • @wildphysicspianoboy97
    @wildphysicspianoboy97 4 หลายเดือนก่อน

    You are an excellent teacher, those lessons are amazing, will you do some C++ applied to CFD in the future? Also i'm really looking forward to the course you do on Peric's book, thanks a lot.

  • @swachwadey3839
    @swachwadey3839 4 ปีที่แล้ว +3

    Hi Tanmay, could you please explain when you're using '-' and when '='? It's confusing for me while practicing the code you're showing. But you're explanation is very impressive. I always struggled with CFD. Now I am hoping that I will be able to understand when I will complete the series. Thanks a lot man!

    • @TanmayAgrawal7
      @TanmayAgrawal7  4 ปีที่แล้ว +2

      Most of the time, it should be =. The display resolution is creating that problem of squeezed symbols. I've shared the link to all my codes in a later video. The initial few videos are a bit confusing to exactly read my screen but it would be resolved in the videos you'll watch later.

    • @swachwadey3839
      @swachwadey3839 4 ปีที่แล้ว

      @@TanmayAgrawal7 Thanks a lot!

  • @rischdtericlub
    @rischdtericlub 2 ปีที่แล้ว

    Hello, the link in description for fluid mechanics course appears broken. Can you please give us a new link? Your videos are very good and I would like to learn fluid mechanics from a good teacher like you.

  • @vaibhavkumbhar3524
    @vaibhavkumbhar3524 4 ปีที่แล้ว

    Great Explanation...Thanks for the Video... Expecting the same advanced problem in this series

  • @zeeshan2k5
    @zeeshan2k5 3 ปีที่แล้ว +1

    Hi Tanmay, due to the video low resolution, the code is not clearly visible. Can you please share the code?

  • @vardhanshah5283
    @vardhanshah5283 3 ปีที่แล้ว

    you're a genius man. thanks a ton for this

  • @007aha1
    @007aha1 ปีที่แล้ว +1

    i dont understand why the error ist ynew-y

  • @b.mallick5905
    @b.mallick5905 4 ปีที่แล้ว +1

    Can you please provide some lectures on finite element method and associated coding with complex domain?

    • @TanmayAgrawal7
      @TanmayAgrawal7  4 ปีที่แล้ว +1

      In this series, the focus would be on finite differences. I'll see if the time allows

  • @AniruddhaKane-f3o
    @AniruddhaKane-f3o ปีที่แล้ว

    Hi Sir,
    I think the 'iterations=iterations+1' in the for loop will print wrong value of the iteration count.
    It should be out of the loop.

  • @raghureddy2982
    @raghureddy2982 3 ปีที่แล้ว

    Hi Tanmay great teaching, really appreciate your effort. Unable to access fundamentals of fluid mechanics link .

    • @TanmayAgrawal7
      @TanmayAgrawal7  3 ปีที่แล้ว +1

      Dear Raghu,
      Since not many had joined the course, therefore I didn't put further efforts towards it. Also, for some reason, the website had pulled itself off, therefore you might not even see the webpage.

  • @palashwaghmare7990
    @palashwaghmare7990 4 ปีที่แล้ว

    Hi Tanmay. Thanks for the great videos and easy explanations. I have one doubt here. The iterations that you are updating in the first for loop will basically increment for each value of y(i). That is if I divide my domain into 1000 parts, updating the 1000 y(i)s for the first time would cause the iterations to be 1000 after first loop. But is that what an iteration means? Like I would think 'one' iteration to be the combined task of updating all the y(i) values once. So I think the iteration should be incremented once for every loop of the while block. Please let me know if this is a correct line of thinking.
    Thanks again.

    • @TanmayAgrawal7
      @TanmayAgrawal7  4 ปีที่แล้ว +2

      Hi Palash,
      You're right, great catch! One iteration is equivalent to updating the values of y at all the grid points. This mistake has been identified later in the videos and corrected accordingly.
      Tanmay

    • @palashwaghmare7990
      @palashwaghmare7990 4 ปีที่แล้ว

      @@TanmayAgrawal7 Thanks for the reply! I would be glad to connect with you. I work on CFD with Boeing currently and would be willing to connect on LinkedIn if you are up.
      www.linkedin.com/in/palash-waghmare-81953a96
      Cheers!

  • @ALOKSRK1
    @ALOKSRK1 4 ปีที่แล้ว +1

    Yo yo ...I am happy...I am learning... Yo yo 😎😎😎😎😍

  • @kohinoor9070
    @kohinoor9070 2 ปีที่แล้ว

    I have one doubt in plotting. There is no direct relation between y and x_dom, then how did it plot y values for x_dom values?

  • @ichigoduzumaki3150
    @ichigoduzumaki3150 4 ปีที่แล้ว

    Great vedio sir highly helpful for me

  • @a.n.1534
    @a.n.1534 3 ปีที่แล้ว

    Hi . Many thanks for your great lecture. Just I am confused if it's the solution of 1D or 2D difussion equation?

    • @TanmayAgrawal7
      @TanmayAgrawal7  3 ปีที่แล้ว

      This should be for 1D case. Although in future lectures, I think I have delivered content for 2D case as well.

  • @vishalrasaniya906
    @vishalrasaniya906 2 ปีที่แล้ว

    hello sir
    can you suggest me for solving a example 4.2 and example 5.1 using the MATLAB from the book
    An Introduction
    to Computational
    Fluid Dynamics
    THE FINITE VOLUME METHOD
    H K Versteeg and W Malalasekera

  • @traavel_bug
    @traavel_bug 3 ปีที่แล้ว

    thank u tanmay for sharing your knowledge. the underscores and other symbols in matlab are not visible sometime. is it possible to see code as text file

    • @TanmayAgrawal7
      @TanmayAgrawal7  3 ปีที่แล้ว

      I've uploaded all these codes on GDrive. Can you access it?

    • @traavel_bug
      @traavel_bug 3 ปีที่แล้ว

      @@TanmayAgrawal7 how to access these files on g drive

    • @TanmayAgrawal7
      @TanmayAgrawal7  3 ปีที่แล้ว

      drive.google.com/folderview?id=1Hhoh8U2CsbPa4bTT8Vnlg3dM5G6KnUZ3

    • @traavel_bug
      @traavel_bug 3 ปีที่แล้ว

      Thank u

  • @vinayakkhatawate
    @vinayakkhatawate 4 ปีที่แล้ว

    Hi Tanmay,
    Great teaching.
    Love to learn Fundamentals of Fluid Mechanics. But given link seems not working. App gets installed but gets stuck on welcome page. Please upload videos on youtube or please make them available on some reliable platform.
    Thank you again.

    • @TanmayAgrawal7
      @TanmayAgrawal7  4 ปีที่แล้ว +1

      Hi Vinayak!
      Thank you for your kind comments. I've started the same series here: th-cam.com/video/33Mhsnm78M0/w-d-xo.html
      Hopefully more videos would come out soon.

    • @vinayakkhatawate
      @vinayakkhatawate 4 ปีที่แล้ว

      @@TanmayAgrawal7 That's great. Thank you. God bless you

  • @rtam9894
    @rtam9894 2 ปีที่แล้ว

    Hello Tanmay, I need help. I'm getting ans = 0.5 after doing run.

  • @ayushshukla9959
    @ayushshukla9959 2 ปีที่แล้ว

    Sir how come the initial values are y(2,3,4) =0 yet still after so many iteration the exact answer is reached

  • @rtam9894
    @rtam9894 2 ปีที่แล้ว

    Hello Tanmay, your videos are helpful but can you share the code so that I can compare with mine.

  • @jkayalvizhi6300
    @jkayalvizhi6300 3 ปีที่แล้ว

    sir please can u help,me to find nusselt number and skin friction & matlab coding.

  • @antoine1407
    @antoine1407 2 ปีที่แล้ว

    Is it possible do it even in C language?

  • @hardworkalwayspay178
    @hardworkalwayspay178 2 ปีที่แล้ว

    sir i am using matlab 2020 version after putting the same code it is showing the error..

  • @AmitKumar-uw4uu
    @AmitKumar-uw4uu 2 ปีที่แล้ว

    nice lecture. can you pls upload the matlab code .

  • @EderSalcedoCastro
    @EderSalcedoCastro 3 ปีที่แล้ว

    Which book do you recommend for 3d fluid mechanics with unstructured meshes?

    • @TanmayAgrawal7
      @TanmayAgrawal7  3 ปีที่แล้ว +1

      Personally,I haven't come across a textbook that deals specifically with unstructured meshes.
      The book by Versteeg presents some details on 2D unstructured mesh that you can find in the description.

    • @EderSalcedoCastro
      @EderSalcedoCastro 3 ปีที่แล้ว +1

      @@TanmayAgrawal7 thank you very much sir.

  • @sarthak_k_patel
    @sarthak_k_patel 3 ปีที่แล้ว

    Hi sir, What is the exact meaning of Domain size and it can be anything else than 1? If not possible explain via comment then if possible then you can provide some link of any video or any website which could be help, then it would be great.
    Thanks.

    • @TanmayAgrawal7
      @TanmayAgrawal7  3 ปีที่แล้ว +1

      Hi Sarthak,
      Usually in CFD, domain is normalized (non-dimensionalized) - all length, velocity and time scales. So it is a common practice to have the NORMALIZED domain size as unity. However, it need not be if you are solving the equations in physical units.

  • @rajneeshmaurya8333
    @rajneeshmaurya8333 4 ปีที่แล้ว +1

    sir can u pls improve the quality of matlab interface screen

    • @TanmayAgrawal7
      @TanmayAgrawal7  4 ปีที่แล้ว

      Thank you very much for the feedback. I'll work on it for the next video.

  • @dr.manishsharma8124
    @dr.manishsharma8124 4 ปีที่แล้ว

    Hi Tanmay
    The code you explained is not running. Could you rectify the problem?
    clear all
    close all
    clc
    n_points=5;
    dom_size=1;
    h=dom_size/(n_points-1);
    %% Initializing the problem
    y(1)=0;
    Y(n_points)=1;
    y_new(1)=0;
    y_new(n_points)=1;
    error_mag=1;
    error_req=0.0000001;
    iterations=0;
    %% calculations
    while error_mag>error_req
    for i=2:(n_points-1)
    y_new(i)=0.5.*(y(i-1)+y(i+1));
    iterations=iterations+1;
    end
    error_mag=0;
    for i=2:(n_points-1)
    error_mag=error_mag+abs(y(i)-y_new(i));
    end
    y=y_new;

    end

    • @TanmayAgrawal7
      @TanmayAgrawal7  4 ปีที่แล้ว

      Hi,
      You initialized capital Y instead of small y.
      %% Initializing the problem
      y(1)=0;
      y(n_points)=1;
      This would solve the problem.

    • @dr.manishsharma8124
      @dr.manishsharma8124 4 ปีที่แล้ว +1

      Thank You

  • @EHVACR_Learning_Hub
    @EHVACR_Learning_Hub 6 หลายเดือนก่อน

    good!

  • @amianifineug1353
    @amianifineug1353 3 ปีที่แล้ว

    I can't run pgm number of iterration is infini

  • @15ayushman
    @15ayushman 3 ปีที่แล้ว

    why semi-colon is used?

    • @muhammadabdeltwab8255
      @muhammadabdeltwab8255 2 ปีที่แล้ว

      not to run the code just at this line but the whole code

  • @kodalisagar704
    @kodalisagar704 3 ปีที่แล้ว

    I am unable to execute the code. Could you share me the link of this code in G drive please.

    • @TanmayAgrawal7
      @TanmayAgrawal7  3 ปีที่แล้ว

      I've shared the link to Google Drive in subsequent videos. You'll find it soon :)

    • @amianifineug1353
      @amianifineug1353 3 ปีที่แล้ว

      please I can't run program please could you send me an example (thank you)

  • @I_am_Rathore
    @I_am_Rathore 4 ปีที่แล้ว

    Instead of running the whole code at once, you're executing them part by part...Can we perform the same in OCTAVE?

    • @TanmayAgrawal7
      @TanmayAgrawal7  4 ปีที่แล้ว

      I'm not entirely sure since I've barely used octave. But it can be tried :)

  • @vivekananddhumal7853
    @vivekananddhumal7853 4 ปีที่แล้ว

    Thanks tanmay

  • @vamshishetty7606
    @vamshishetty7606 3 ปีที่แล้ว

    Sir i have doubt, why we want to define new value

    • @TanmayAgrawal7
      @TanmayAgrawal7  3 ปีที่แล้ว +1

      It's an optional process so that we are not overwriting the variables during calculations. It's very effective during debugging as well

  • @neelampatidar6250
    @neelampatidar6250 3 ปีที่แล้ว

    How do you decide the error tolerance is 1e-7 ?. Is there any parameter?

    • @TanmayAgrawal7
      @TanmayAgrawal7  3 ปีที่แล้ว +1

      No, it is upto you. Any number above your machine tolerance zero would be fine.

  • @soundararajan5399
    @soundararajan5399 3 ปีที่แล้ว

    Can you please provide some lectures on finite element method and associated coding with complex domain?

    • @TanmayAgrawal7
      @TanmayAgrawal7  3 ปีที่แล้ว

      Sorry, I'm not well versed with FEM.