2D finite difference boundary conditions for radial direction












1












$begingroup$


I am trying to solve Poisson's equation in an axisymmetric cylindrical domain using finite difference. So I start with my differential equation and boundary conditions and discretize them. However, I'm having trouble thinking of how to discretize the radial portion



begin{array}{lll}
frac{1}{r} frac{partial}{partial r} left(r frac{partial u}{partial r} right) + frac{partial^2 u}{partial z^2} = -frac{rho}{varepsilon_0} & longrightarrow & frac{r_{i+1/2} u_{i+1, j} - 2 r_{i} u_{i,j} + r_{i-1/2} u_{i-1, j}}{r_i Delta r^2} + frac{u_{i, j+1} - 2 u_{i, j} + u_{i, j - 1}}{Delta z^2} = -frac{rho_{i,j}}{varepsilon_0} \
left. frac{partial u}{partial r} right|_{r = 0} = 0 & longrightarrow & u_{0,j} = frac{1}{3} left(4 u_{1,j} - u_{2,j} right) ~ \
lim_{rtoinfty} u(r, z) = 0 & longrightarrow & ? ~ \
u(r, l(r)) = f_3(r) & longrightarrow & u_{i, l(r_i)/Delta z} = f_3(r_i) \
u(r, h) = f_4(r) & longrightarrow & u_{i, N} = f_4(r_i) \
end{array}



where



$$
l(r) = left{begin{aligned}
&h - frac{H}{R} r &&: r le R\
&0 &&: r > R
end{aligned}
right.$$
Looking at my old class notes, the professor mentioned a method called irregular singular points as a method to better approximate boundary conditions in (semi-)infinite domains but, I don't understand how I would apply this to 2D systems or to radial systems.



I would appreciate any suggestions.










share|cite|improve this question











$endgroup$

















    1












    $begingroup$


    I am trying to solve Poisson's equation in an axisymmetric cylindrical domain using finite difference. So I start with my differential equation and boundary conditions and discretize them. However, I'm having trouble thinking of how to discretize the radial portion



    begin{array}{lll}
    frac{1}{r} frac{partial}{partial r} left(r frac{partial u}{partial r} right) + frac{partial^2 u}{partial z^2} = -frac{rho}{varepsilon_0} & longrightarrow & frac{r_{i+1/2} u_{i+1, j} - 2 r_{i} u_{i,j} + r_{i-1/2} u_{i-1, j}}{r_i Delta r^2} + frac{u_{i, j+1} - 2 u_{i, j} + u_{i, j - 1}}{Delta z^2} = -frac{rho_{i,j}}{varepsilon_0} \
    left. frac{partial u}{partial r} right|_{r = 0} = 0 & longrightarrow & u_{0,j} = frac{1}{3} left(4 u_{1,j} - u_{2,j} right) ~ \
    lim_{rtoinfty} u(r, z) = 0 & longrightarrow & ? ~ \
    u(r, l(r)) = f_3(r) & longrightarrow & u_{i, l(r_i)/Delta z} = f_3(r_i) \
    u(r, h) = f_4(r) & longrightarrow & u_{i, N} = f_4(r_i) \
    end{array}



    where



    $$
    l(r) = left{begin{aligned}
    &h - frac{H}{R} r &&: r le R\
    &0 &&: r > R
    end{aligned}
    right.$$
    Looking at my old class notes, the professor mentioned a method called irregular singular points as a method to better approximate boundary conditions in (semi-)infinite domains but, I don't understand how I would apply this to 2D systems or to radial systems.



    I would appreciate any suggestions.










    share|cite|improve this question











    $endgroup$















      1












      1








      1


      1



      $begingroup$


      I am trying to solve Poisson's equation in an axisymmetric cylindrical domain using finite difference. So I start with my differential equation and boundary conditions and discretize them. However, I'm having trouble thinking of how to discretize the radial portion



      begin{array}{lll}
      frac{1}{r} frac{partial}{partial r} left(r frac{partial u}{partial r} right) + frac{partial^2 u}{partial z^2} = -frac{rho}{varepsilon_0} & longrightarrow & frac{r_{i+1/2} u_{i+1, j} - 2 r_{i} u_{i,j} + r_{i-1/2} u_{i-1, j}}{r_i Delta r^2} + frac{u_{i, j+1} - 2 u_{i, j} + u_{i, j - 1}}{Delta z^2} = -frac{rho_{i,j}}{varepsilon_0} \
      left. frac{partial u}{partial r} right|_{r = 0} = 0 & longrightarrow & u_{0,j} = frac{1}{3} left(4 u_{1,j} - u_{2,j} right) ~ \
      lim_{rtoinfty} u(r, z) = 0 & longrightarrow & ? ~ \
      u(r, l(r)) = f_3(r) & longrightarrow & u_{i, l(r_i)/Delta z} = f_3(r_i) \
      u(r, h) = f_4(r) & longrightarrow & u_{i, N} = f_4(r_i) \
      end{array}



      where



      $$
      l(r) = left{begin{aligned}
      &h - frac{H}{R} r &&: r le R\
      &0 &&: r > R
      end{aligned}
      right.$$
      Looking at my old class notes, the professor mentioned a method called irregular singular points as a method to better approximate boundary conditions in (semi-)infinite domains but, I don't understand how I would apply this to 2D systems or to radial systems.



      I would appreciate any suggestions.










      share|cite|improve this question











      $endgroup$




      I am trying to solve Poisson's equation in an axisymmetric cylindrical domain using finite difference. So I start with my differential equation and boundary conditions and discretize them. However, I'm having trouble thinking of how to discretize the radial portion



      begin{array}{lll}
      frac{1}{r} frac{partial}{partial r} left(r frac{partial u}{partial r} right) + frac{partial^2 u}{partial z^2} = -frac{rho}{varepsilon_0} & longrightarrow & frac{r_{i+1/2} u_{i+1, j} - 2 r_{i} u_{i,j} + r_{i-1/2} u_{i-1, j}}{r_i Delta r^2} + frac{u_{i, j+1} - 2 u_{i, j} + u_{i, j - 1}}{Delta z^2} = -frac{rho_{i,j}}{varepsilon_0} \
      left. frac{partial u}{partial r} right|_{r = 0} = 0 & longrightarrow & u_{0,j} = frac{1}{3} left(4 u_{1,j} - u_{2,j} right) ~ \
      lim_{rtoinfty} u(r, z) = 0 & longrightarrow & ? ~ \
      u(r, l(r)) = f_3(r) & longrightarrow & u_{i, l(r_i)/Delta z} = f_3(r_i) \
      u(r, h) = f_4(r) & longrightarrow & u_{i, N} = f_4(r_i) \
      end{array}



      where



      $$
      l(r) = left{begin{aligned}
      &h - frac{H}{R} r &&: r le R\
      &0 &&: r > R
      end{aligned}
      right.$$
      Looking at my old class notes, the professor mentioned a method called irregular singular points as a method to better approximate boundary conditions in (semi-)infinite domains but, I don't understand how I would apply this to 2D systems or to radial systems.



      I would appreciate any suggestions.







      polar-coordinates boundary-value-problem finite-differences






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Aug 14 '15 at 17:49







      user1543042

















      asked Aug 14 '15 at 14:28









      user1543042user1543042

      330111




      330111






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          The actual boundary condition should be



          $$lim_{r rightarrow infty} frac{partial u}{partial r} = 0$$



          which I approximated at some finite point using the backward second order finite difference.



          The actual boundary condition can be seen to be correct by a simple thought experiment by setting $H = 0$ (a rectangular grid) with $rho = 0$ and we must recover the solution 1D cartesian solution to Laplace's equation.






          share|cite|improve this answer









          $endgroup$













            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            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%2f1397153%2f2d-finite-difference-boundary-conditions-for-radial-direction%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









            0












            $begingroup$

            The actual boundary condition should be



            $$lim_{r rightarrow infty} frac{partial u}{partial r} = 0$$



            which I approximated at some finite point using the backward second order finite difference.



            The actual boundary condition can be seen to be correct by a simple thought experiment by setting $H = 0$ (a rectangular grid) with $rho = 0$ and we must recover the solution 1D cartesian solution to Laplace's equation.






            share|cite|improve this answer









            $endgroup$


















              0












              $begingroup$

              The actual boundary condition should be



              $$lim_{r rightarrow infty} frac{partial u}{partial r} = 0$$



              which I approximated at some finite point using the backward second order finite difference.



              The actual boundary condition can be seen to be correct by a simple thought experiment by setting $H = 0$ (a rectangular grid) with $rho = 0$ and we must recover the solution 1D cartesian solution to Laplace's equation.






              share|cite|improve this answer









              $endgroup$
















                0












                0








                0





                $begingroup$

                The actual boundary condition should be



                $$lim_{r rightarrow infty} frac{partial u}{partial r} = 0$$



                which I approximated at some finite point using the backward second order finite difference.



                The actual boundary condition can be seen to be correct by a simple thought experiment by setting $H = 0$ (a rectangular grid) with $rho = 0$ and we must recover the solution 1D cartesian solution to Laplace's equation.






                share|cite|improve this answer









                $endgroup$



                The actual boundary condition should be



                $$lim_{r rightarrow infty} frac{partial u}{partial r} = 0$$



                which I approximated at some finite point using the backward second order finite difference.



                The actual boundary condition can be seen to be correct by a simple thought experiment by setting $H = 0$ (a rectangular grid) with $rho = 0$ and we must recover the solution 1D cartesian solution to Laplace's equation.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Aug 28 '15 at 1:50









                user1543042user1543042

                330111




                330111






























                    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%2f1397153%2f2d-finite-difference-boundary-conditions-for-radial-direction%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

                    Plaza Victoria

                    In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                    How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...