How to Numerically Solve a 1D Heat Equation ? ( MATLAB Script in Description)

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025

Комментарии • 25

  • @matlabtricks5944
    @matlabtricks5944 2 года назад +1

    Very good video, the best I've seen on the topic, deserves more views!

  • @J-Stew_64
    @J-Stew_64 8 месяцев назад +1

    Best video on the subject good job man

  • @and_i_wonder_if_you_kow_wh7114
    @and_i_wonder_if_you_kow_wh7114 2 года назад

    Awesome video! I was looking for a more general version with a source function g.

  • @arts5852
    @arts5852 3 года назад

    Good job 👍. Your script is perfect

  • @k.l.9743
    @k.l.9743 2 года назад

    Good video! Can you make a video of this problem with a second and third order boundary condition in spherical coordinates? It would be an interesting approach for the heat conduction

  • @lailatulmaghfiroh8337
    @lailatulmaghfiroh8337 2 года назад

    Please help me sir
    I don't understand how to change the program, for example, the initial temperature of the rod is 25oC
    I'm working on my final project and need to know about it
    Thank you

    • @altuwwx
      @altuwwx 2 года назад

      Hey, did you get how to do it?

    • @TheTechHans
      @TheTechHans  2 года назад

      In the matlab script the Array T is the temperature at nodes. T[0] is temperature at zeroth node...
      Initially temperature at all nodes is zero except at end nodes., Where it is 100. As time progresses the T is updated.
      For giving 25 deg as initial condition put
      T[2:end-1]=25
      The above line should be added after the line, "T=zeros(1,nx) ;" in the script.
      ;

  • @mobinnurzad3592
    @mobinnurzad3592 2 года назад

    nice. how can I implement the same problem but on one end with neumann B.C dt/dx=0 at x=o

  • @Zebrox_Editz
    @Zebrox_Editz 2 года назад

    That's a nice video
    Where we use the 1D diffusion eq on it application or for what purpose?

    • @praveenkumarch4566
      @praveenkumarch4566 2 года назад

      This equation models the physical phenomenon of diffusion, I mean spreading of a particular parameter (dependent variable) from higher concentration zones to lower concentration zone. Here I took an example of heat Diffusion,the parameter is temperature. We can also model diffusion of ink in water, then the parameter will be concentration of ink.

  • @AnandSingh-rz5sv
    @AnandSingh-rz5sv 4 года назад

    Good keep it up

  • @devendranama9424
    @devendranama9424 2 года назад

    How to solve the equation if it contains the source term as well?

    • @BRunoAWAY
      @BRunoAWAY 2 года назад

      The source term add Just one more line in the code

  • @elihunyemah8573
    @elihunyemah8573 3 года назад

    thanks ever so much it was nice script. but does it work for this du/dt=k, d2u/dx2
    u(x,t=0)=h(1-(x/l)square)
    u(x-l)-u(x=-l)-0

    • @TheTechHans
      @TheTechHans  3 года назад

      Thank you.
      This equation is a generalized 1D diffusion equation: (du/dt)=k* (d2u/dx2)
      Heat equation is also a Diffusion equation.
      So you can use the same Numerical Strategy as explained in this video.
      You need to modify the Matlab Script so that the initial conditions, Coefficient - "k" , and the end conditions are implemented as per the given data.

    • @elihunyemah8573
      @elihunyemah8573 3 года назад

      @@TheTechHans I send you an email can you respond pls. I did send it to the email address on RUclips.

  • @johnlesterbagongon8628
    @johnlesterbagongon8628 3 года назад

    how do I update the time step?

  • @priyeshpandey100
    @priyeshpandey100 3 года назад

    hello dear..do u paidwork ?

    • @TheTechHans
      @TheTechHans  3 года назад

      Yes I do work for pay. It depends on the kind of work, pay and time schedules.

  • @am-bt8xq
    @am-bt8xq 3 года назад

    Thanks sir, can you send me your mail please ?

    • @am-bt8xq
      @am-bt8xq 3 года назад

      @@TheTechHans are sure that's the right mail ?