Understanding a basic scheme for the heat equation












1












$begingroup$


I'm studying the parabolic PDE



$$ begin{cases} v_{xx} = c v_t, & x in (0,1), t > 0 \ v(x,0)=f(x)\v(0,t)=a(t)\v(1,t)=b(t)\f(0)=a(0), f(1)=b(0) end{cases} $$



Using Taylor approximation we have



$$ u_k^n = u_{k}^{n-1} + rho( u_{k+1}^n - 2 u_k^n + u_{k-1}^n )$$
where $u_k^n = v(k Delta x, n Delta t ) $. and $rho = dfrac{ c Delta t }{Delta x^2} $.



If we are given that $a=b=0$ and $Delta t = 0.02$ and to take $10$ nodal points.



So, I know I will have $x_0, x_1, ..., x_{10}$. My question is, how do we tell how many time steps to take? Do I need to choose this?



Say I'm given to find the solution at $t = 0.06$, then I would have to take $n=3$ so this means that we only want to compute



$$ u_k^3 = u_k^{2} + rho( u_{k+1}^2 - 2u_k^2 + u_{k-1}^2 ) $$



and this equation would determine my solution for this time $t=0.06$, say if I want to find out the value of $v(0.5, 0.06) $, then in my scheme I would look for



$$ u_5^3 = u( 5 Delta x, 3 Delta t ) $$



Is this correct interpretation? apologies is this question sounds really stupid, but Im learning this for the first time and I just want to understand the concept.










share|cite|improve this question











$endgroup$

















    1












    $begingroup$


    I'm studying the parabolic PDE



    $$ begin{cases} v_{xx} = c v_t, & x in (0,1), t > 0 \ v(x,0)=f(x)\v(0,t)=a(t)\v(1,t)=b(t)\f(0)=a(0), f(1)=b(0) end{cases} $$



    Using Taylor approximation we have



    $$ u_k^n = u_{k}^{n-1} + rho( u_{k+1}^n - 2 u_k^n + u_{k-1}^n )$$
    where $u_k^n = v(k Delta x, n Delta t ) $. and $rho = dfrac{ c Delta t }{Delta x^2} $.



    If we are given that $a=b=0$ and $Delta t = 0.02$ and to take $10$ nodal points.



    So, I know I will have $x_0, x_1, ..., x_{10}$. My question is, how do we tell how many time steps to take? Do I need to choose this?



    Say I'm given to find the solution at $t = 0.06$, then I would have to take $n=3$ so this means that we only want to compute



    $$ u_k^3 = u_k^{2} + rho( u_{k+1}^2 - 2u_k^2 + u_{k-1}^2 ) $$



    and this equation would determine my solution for this time $t=0.06$, say if I want to find out the value of $v(0.5, 0.06) $, then in my scheme I would look for



    $$ u_5^3 = u( 5 Delta x, 3 Delta t ) $$



    Is this correct interpretation? apologies is this question sounds really stupid, but Im learning this for the first time and I just want to understand the concept.










    share|cite|improve this question











    $endgroup$















      1












      1








      1


      1



      $begingroup$


      I'm studying the parabolic PDE



      $$ begin{cases} v_{xx} = c v_t, & x in (0,1), t > 0 \ v(x,0)=f(x)\v(0,t)=a(t)\v(1,t)=b(t)\f(0)=a(0), f(1)=b(0) end{cases} $$



      Using Taylor approximation we have



      $$ u_k^n = u_{k}^{n-1} + rho( u_{k+1}^n - 2 u_k^n + u_{k-1}^n )$$
      where $u_k^n = v(k Delta x, n Delta t ) $. and $rho = dfrac{ c Delta t }{Delta x^2} $.



      If we are given that $a=b=0$ and $Delta t = 0.02$ and to take $10$ nodal points.



      So, I know I will have $x_0, x_1, ..., x_{10}$. My question is, how do we tell how many time steps to take? Do I need to choose this?



      Say I'm given to find the solution at $t = 0.06$, then I would have to take $n=3$ so this means that we only want to compute



      $$ u_k^3 = u_k^{2} + rho( u_{k+1}^2 - 2u_k^2 + u_{k-1}^2 ) $$



      and this equation would determine my solution for this time $t=0.06$, say if I want to find out the value of $v(0.5, 0.06) $, then in my scheme I would look for



      $$ u_5^3 = u( 5 Delta x, 3 Delta t ) $$



      Is this correct interpretation? apologies is this question sounds really stupid, but Im learning this for the first time and I just want to understand the concept.










      share|cite|improve this question











      $endgroup$




      I'm studying the parabolic PDE



      $$ begin{cases} v_{xx} = c v_t, & x in (0,1), t > 0 \ v(x,0)=f(x)\v(0,t)=a(t)\v(1,t)=b(t)\f(0)=a(0), f(1)=b(0) end{cases} $$



      Using Taylor approximation we have



      $$ u_k^n = u_{k}^{n-1} + rho( u_{k+1}^n - 2 u_k^n + u_{k-1}^n )$$
      where $u_k^n = v(k Delta x, n Delta t ) $. and $rho = dfrac{ c Delta t }{Delta x^2} $.



      If we are given that $a=b=0$ and $Delta t = 0.02$ and to take $10$ nodal points.



      So, I know I will have $x_0, x_1, ..., x_{10}$. My question is, how do we tell how many time steps to take? Do I need to choose this?



      Say I'm given to find the solution at $t = 0.06$, then I would have to take $n=3$ so this means that we only want to compute



      $$ u_k^3 = u_k^{2} + rho( u_{k+1}^2 - 2u_k^2 + u_{k-1}^2 ) $$



      and this equation would determine my solution for this time $t=0.06$, say if I want to find out the value of $v(0.5, 0.06) $, then in my scheme I would look for



      $$ u_5^3 = u( 5 Delta x, 3 Delta t ) $$



      Is this correct interpretation? apologies is this question sounds really stupid, but Im learning this for the first time and I just want to understand the concept.







      pde numerical-methods






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited 15 hours ago









      mathreadler

      15.5k72263




      15.5k72263










      asked Feb 3 at 5:04









      JamesJames

      2,636425




      2,636425






















          1 Answer
          1






          active

          oldest

          votes


















          2












          $begingroup$

          Short answer: you’re correct.
          There is the time interval of interest or the final time moment (0.06 in your case) and there is a numerical scheme. Since the scheme is discrete in its nature, you have two parameters for it, space and time steps ($h$ and $tau$). Usually, their values are chosen as dictated by accuracy and stability properties of the scheme (which together give the property of convergence). Sometimes, of course, more subtle properties are taken into account. In your case, the scheme is absolutely stable and thus has no stability restriction. So, in general you’re free to choose any $h$ and $tau$ which allow you to compute the solution at the required point. Unless someone fixes their values as it is done by the problem formulation in your case.






          share|cite|improve this answer









          $endgroup$














            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "69"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3098202%2funderstanding-a-basic-scheme-for-the-heat-equation%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2












            $begingroup$

            Short answer: you’re correct.
            There is the time interval of interest or the final time moment (0.06 in your case) and there is a numerical scheme. Since the scheme is discrete in its nature, you have two parameters for it, space and time steps ($h$ and $tau$). Usually, their values are chosen as dictated by accuracy and stability properties of the scheme (which together give the property of convergence). Sometimes, of course, more subtle properties are taken into account. In your case, the scheme is absolutely stable and thus has no stability restriction. So, in general you’re free to choose any $h$ and $tau$ which allow you to compute the solution at the required point. Unless someone fixes their values as it is done by the problem formulation in your case.






            share|cite|improve this answer









            $endgroup$


















              2












              $begingroup$

              Short answer: you’re correct.
              There is the time interval of interest or the final time moment (0.06 in your case) and there is a numerical scheme. Since the scheme is discrete in its nature, you have two parameters for it, space and time steps ($h$ and $tau$). Usually, their values are chosen as dictated by accuracy and stability properties of the scheme (which together give the property of convergence). Sometimes, of course, more subtle properties are taken into account. In your case, the scheme is absolutely stable and thus has no stability restriction. So, in general you’re free to choose any $h$ and $tau$ which allow you to compute the solution at the required point. Unless someone fixes their values as it is done by the problem formulation in your case.






              share|cite|improve this answer









              $endgroup$
















                2












                2








                2





                $begingroup$

                Short answer: you’re correct.
                There is the time interval of interest or the final time moment (0.06 in your case) and there is a numerical scheme. Since the scheme is discrete in its nature, you have two parameters for it, space and time steps ($h$ and $tau$). Usually, their values are chosen as dictated by accuracy and stability properties of the scheme (which together give the property of convergence). Sometimes, of course, more subtle properties are taken into account. In your case, the scheme is absolutely stable and thus has no stability restriction. So, in general you’re free to choose any $h$ and $tau$ which allow you to compute the solution at the required point. Unless someone fixes their values as it is done by the problem formulation in your case.






                share|cite|improve this answer









                $endgroup$



                Short answer: you’re correct.
                There is the time interval of interest or the final time moment (0.06 in your case) and there is a numerical scheme. Since the scheme is discrete in its nature, you have two parameters for it, space and time steps ($h$ and $tau$). Usually, their values are chosen as dictated by accuracy and stability properties of the scheme (which together give the property of convergence). Sometimes, of course, more subtle properties are taken into account. In your case, the scheme is absolutely stable and thus has no stability restriction. So, in general you’re free to choose any $h$ and $tau$ which allow you to compute the solution at the required point. Unless someone fixes their values as it is done by the problem formulation in your case.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Feb 6 at 1:48









                VorKirVorKir

                32619




                32619






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Mathematics Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3098202%2funderstanding-a-basic-scheme-for-the-heat-equation%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    MongoDB - Not Authorized To Execute Command

                    in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

                    How to fix TextFormField cause rebuild widget in Flutter