Not sure how to set up the Laplacian/Poisson EquationUse NDSolve to solve a PDEWhy does NDSolveValue giving...

Can I legally make a website about boycotting a certain company?

Why is Shelob considered evil?

Identical projects by students at two different colleges: still plagiarism?

Why write a book when there's a movie in my head?

Found a major flaw in paper from home university – to which I would like to return

Was Opportunity's last message to Earth "My battery is low and it's getting dark"?

Did the characters in Moving Pictures not know about cameras like Twoflower's?

Is it ethical to apply for a job on someone's behalf?

What is the name of this perspective and how is it constructed?

Taking an academic pseudonym?

Log to console in a Lightning Web Component

Aligning Systems of Equations

Why Third 'Reich'? Why is 'reich' not translated when 'third' is? What is the English synonym of reich?

Do these large-scale, human power-plant-tending robots from the Matrix movies have a name, in-universe or out?

Is there a way to pause a running process on Linux systems and resume later?

Spells that would be effective against a Modern Day army but would NOT destroy a fantasy one

How can a kingdom keep the secret of a missing monarch from the public?

What did Putin say about a US deep state in his state-of-the-nation speech; what has he said in the past?

Can I do anything else with aspersions other than cast them?

Variance of sine and cosine of a random variable

How can guns be countered by melee combat without raw-ability or exceptional explanations?

What is the reason behind this musical reference to Pinocchio in the Close Encounters main theme?

How can I make my enemies feel real and make combat more engaging?

If I have Haste cast on me, does it reduce the casting time for my spells that normally take more than a turn to cast?



Not sure how to set up the Laplacian/Poisson Equation


Use NDSolve to solve a PDEWhy does NDSolveValue giving crappy results?Solution of Poisson equation with two regionsNDSolve for unsteady Taylor-Goldstein equation, can't use MethodOfLinesSolving Partial Differential Equations using NDSolveConfusion with Neumann and DirichletSystem of nonlinear PDE 2D (Reaction-Diffusion type) with periodic boundary conditionFluid Flow PDE with Mass ConservationThe rectangular region composed of two triangular regions contains a pde connecting the bc of the first and the second kindPoisson equation with pure Neumann boundary conditions













2












$begingroup$


As stated, I am having trouble trying to set up a Laplacian/Poisson Equation. I have boundary conditions with this too, and I've tried using the DirichletCondition function, but I don't know what I'm doing there either. (I have almost zero Mathematica experience, and the Wolfram site's help is just as confusing to me as the program.)



Laplacian[V[x, y], {x, y} == 0;

V[x, 0] == 0;
V[x, 0.05] == 1;
V[0, y] == 0;
V[0.1, y] == 0;]

Plot[{x, -0.25, 0.25}, {y, -0.15, 0.15}]


Plot I'm getting



While I am getting that plot to appear, it's not even close to what I need. What I'm needing is the solution to appear within the region 0 ≤ x ≤ 0.1 and 0 ≤ y ≤ 0.05, as stated by the boundary conditions (rectangular). It's supposed to be a distribution type of plot, kind of like elevation contour graphs and similar.



And for now, the PDE I'm solving is equal to 0, so once I get that done, how do I set up the PDE when it's not equal to 0 (Poisson's Equation)? I would think that since Laplacian is a function, I can't use it anymore since the PDE isn't equal to 0 anymore.



Help is greatly appreciated!










share|improve this question







New contributor




LtGenSpartan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$

















    2












    $begingroup$


    As stated, I am having trouble trying to set up a Laplacian/Poisson Equation. I have boundary conditions with this too, and I've tried using the DirichletCondition function, but I don't know what I'm doing there either. (I have almost zero Mathematica experience, and the Wolfram site's help is just as confusing to me as the program.)



    Laplacian[V[x, y], {x, y} == 0;

    V[x, 0] == 0;
    V[x, 0.05] == 1;
    V[0, y] == 0;
    V[0.1, y] == 0;]

    Plot[{x, -0.25, 0.25}, {y, -0.15, 0.15}]


    Plot I'm getting



    While I am getting that plot to appear, it's not even close to what I need. What I'm needing is the solution to appear within the region 0 ≤ x ≤ 0.1 and 0 ≤ y ≤ 0.05, as stated by the boundary conditions (rectangular). It's supposed to be a distribution type of plot, kind of like elevation contour graphs and similar.



    And for now, the PDE I'm solving is equal to 0, so once I get that done, how do I set up the PDE when it's not equal to 0 (Poisson's Equation)? I would think that since Laplacian is a function, I can't use it anymore since the PDE isn't equal to 0 anymore.



    Help is greatly appreciated!










    share|improve this question







    New contributor




    LtGenSpartan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$















      2












      2








      2





      $begingroup$


      As stated, I am having trouble trying to set up a Laplacian/Poisson Equation. I have boundary conditions with this too, and I've tried using the DirichletCondition function, but I don't know what I'm doing there either. (I have almost zero Mathematica experience, and the Wolfram site's help is just as confusing to me as the program.)



      Laplacian[V[x, y], {x, y} == 0;

      V[x, 0] == 0;
      V[x, 0.05] == 1;
      V[0, y] == 0;
      V[0.1, y] == 0;]

      Plot[{x, -0.25, 0.25}, {y, -0.15, 0.15}]


      Plot I'm getting



      While I am getting that plot to appear, it's not even close to what I need. What I'm needing is the solution to appear within the region 0 ≤ x ≤ 0.1 and 0 ≤ y ≤ 0.05, as stated by the boundary conditions (rectangular). It's supposed to be a distribution type of plot, kind of like elevation contour graphs and similar.



      And for now, the PDE I'm solving is equal to 0, so once I get that done, how do I set up the PDE when it's not equal to 0 (Poisson's Equation)? I would think that since Laplacian is a function, I can't use it anymore since the PDE isn't equal to 0 anymore.



      Help is greatly appreciated!










      share|improve this question







      New contributor




      LtGenSpartan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      As stated, I am having trouble trying to set up a Laplacian/Poisson Equation. I have boundary conditions with this too, and I've tried using the DirichletCondition function, but I don't know what I'm doing there either. (I have almost zero Mathematica experience, and the Wolfram site's help is just as confusing to me as the program.)



      Laplacian[V[x, y], {x, y} == 0;

      V[x, 0] == 0;
      V[x, 0.05] == 1;
      V[0, y] == 0;
      V[0.1, y] == 0;]

      Plot[{x, -0.25, 0.25}, {y, -0.15, 0.15}]


      Plot I'm getting



      While I am getting that plot to appear, it's not even close to what I need. What I'm needing is the solution to appear within the region 0 ≤ x ≤ 0.1 and 0 ≤ y ≤ 0.05, as stated by the boundary conditions (rectangular). It's supposed to be a distribution type of plot, kind of like elevation contour graphs and similar.



      And for now, the PDE I'm solving is equal to 0, so once I get that done, how do I set up the PDE when it's not equal to 0 (Poisson's Equation)? I would think that since Laplacian is a function, I can't use it anymore since the PDE isn't equal to 0 anymore.



      Help is greatly appreciated!







      differential-equations






      share|improve this question







      New contributor




      LtGenSpartan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      LtGenSpartan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      LtGenSpartan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 3 hours ago









      LtGenSpartanLtGenSpartan

      132




      132




      New contributor




      LtGenSpartan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      LtGenSpartan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      LtGenSpartan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          4












          $begingroup$

          Something like this?



          PDE = D[V[x, y], x, x] + D[V[x, y], y, y];

          BCs = {DirichletCondition[V[x, y] == 0, y == 0],
          DirichletCondition[V[x, y] == 1, y == 0.05],
          DirichletCondition[V[x, y] == 0, x == 0],
          DirichletCondition[V[x, y] == 0, x == 0.1]};

          ufun = NDSolveValue[{PDE == 0, BCs}, V, {x, 0, 0.1}, {y, 0, 0.05}];

          ContourPlot[ufun[x, y], {x, 0, 0.1}, {y, 0, 0.05}]


          enter image description here



          For Poisson equation replace PDE == 0 by PDE == f[x,y], where f[x,y] is an arbitrary function.






          share|improve this answer











          $endgroup$













          • $begingroup$
            Oh wow, that's exactly what I needed! Also thanks for clearing up the DirichletCondition, the way you did it was much easier than what the Wolfram site had. To make sure I understand the syntax for PDE, i.e does that mean derivative of V with respect to x, and x again (to satisfy a squared partial)?
            $endgroup$
            – LtGenSpartan
            2 hours ago












          • $begingroup$
            @LtGenSpartan Yes!
            $endgroup$
            – zhk
            2 hours ago










          • $begingroup$
            I actually have another question, is there a way to add legends, axes, etc. to this plot?
            $endgroup$
            – LtGenSpartan
            2 hours ago










          • $begingroup$
            @LtGenSpartan Of course you can. Check the documentations on Plot.
            $endgroup$
            – zhk
            2 hours ago










          • $begingroup$
            @LtGenSpartan - FrameLabel -> Automatic, PlotLegends -> Automatic
            $endgroup$
            – Bob Hanlon
            2 hours ago











          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: "387"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          LtGenSpartan is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f191984%2fnot-sure-how-to-set-up-the-laplacian-poisson-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









          4












          $begingroup$

          Something like this?



          PDE = D[V[x, y], x, x] + D[V[x, y], y, y];

          BCs = {DirichletCondition[V[x, y] == 0, y == 0],
          DirichletCondition[V[x, y] == 1, y == 0.05],
          DirichletCondition[V[x, y] == 0, x == 0],
          DirichletCondition[V[x, y] == 0, x == 0.1]};

          ufun = NDSolveValue[{PDE == 0, BCs}, V, {x, 0, 0.1}, {y, 0, 0.05}];

          ContourPlot[ufun[x, y], {x, 0, 0.1}, {y, 0, 0.05}]


          enter image description here



          For Poisson equation replace PDE == 0 by PDE == f[x,y], where f[x,y] is an arbitrary function.






          share|improve this answer











          $endgroup$













          • $begingroup$
            Oh wow, that's exactly what I needed! Also thanks for clearing up the DirichletCondition, the way you did it was much easier than what the Wolfram site had. To make sure I understand the syntax for PDE, i.e does that mean derivative of V with respect to x, and x again (to satisfy a squared partial)?
            $endgroup$
            – LtGenSpartan
            2 hours ago












          • $begingroup$
            @LtGenSpartan Yes!
            $endgroup$
            – zhk
            2 hours ago










          • $begingroup$
            I actually have another question, is there a way to add legends, axes, etc. to this plot?
            $endgroup$
            – LtGenSpartan
            2 hours ago










          • $begingroup$
            @LtGenSpartan Of course you can. Check the documentations on Plot.
            $endgroup$
            – zhk
            2 hours ago










          • $begingroup$
            @LtGenSpartan - FrameLabel -> Automatic, PlotLegends -> Automatic
            $endgroup$
            – Bob Hanlon
            2 hours ago
















          4












          $begingroup$

          Something like this?



          PDE = D[V[x, y], x, x] + D[V[x, y], y, y];

          BCs = {DirichletCondition[V[x, y] == 0, y == 0],
          DirichletCondition[V[x, y] == 1, y == 0.05],
          DirichletCondition[V[x, y] == 0, x == 0],
          DirichletCondition[V[x, y] == 0, x == 0.1]};

          ufun = NDSolveValue[{PDE == 0, BCs}, V, {x, 0, 0.1}, {y, 0, 0.05}];

          ContourPlot[ufun[x, y], {x, 0, 0.1}, {y, 0, 0.05}]


          enter image description here



          For Poisson equation replace PDE == 0 by PDE == f[x,y], where f[x,y] is an arbitrary function.






          share|improve this answer











          $endgroup$













          • $begingroup$
            Oh wow, that's exactly what I needed! Also thanks for clearing up the DirichletCondition, the way you did it was much easier than what the Wolfram site had. To make sure I understand the syntax for PDE, i.e does that mean derivative of V with respect to x, and x again (to satisfy a squared partial)?
            $endgroup$
            – LtGenSpartan
            2 hours ago












          • $begingroup$
            @LtGenSpartan Yes!
            $endgroup$
            – zhk
            2 hours ago










          • $begingroup$
            I actually have another question, is there a way to add legends, axes, etc. to this plot?
            $endgroup$
            – LtGenSpartan
            2 hours ago










          • $begingroup$
            @LtGenSpartan Of course you can. Check the documentations on Plot.
            $endgroup$
            – zhk
            2 hours ago










          • $begingroup$
            @LtGenSpartan - FrameLabel -> Automatic, PlotLegends -> Automatic
            $endgroup$
            – Bob Hanlon
            2 hours ago














          4












          4








          4





          $begingroup$

          Something like this?



          PDE = D[V[x, y], x, x] + D[V[x, y], y, y];

          BCs = {DirichletCondition[V[x, y] == 0, y == 0],
          DirichletCondition[V[x, y] == 1, y == 0.05],
          DirichletCondition[V[x, y] == 0, x == 0],
          DirichletCondition[V[x, y] == 0, x == 0.1]};

          ufun = NDSolveValue[{PDE == 0, BCs}, V, {x, 0, 0.1}, {y, 0, 0.05}];

          ContourPlot[ufun[x, y], {x, 0, 0.1}, {y, 0, 0.05}]


          enter image description here



          For Poisson equation replace PDE == 0 by PDE == f[x,y], where f[x,y] is an arbitrary function.






          share|improve this answer











          $endgroup$



          Something like this?



          PDE = D[V[x, y], x, x] + D[V[x, y], y, y];

          BCs = {DirichletCondition[V[x, y] == 0, y == 0],
          DirichletCondition[V[x, y] == 1, y == 0.05],
          DirichletCondition[V[x, y] == 0, x == 0],
          DirichletCondition[V[x, y] == 0, x == 0.1]};

          ufun = NDSolveValue[{PDE == 0, BCs}, V, {x, 0, 0.1}, {y, 0, 0.05}];

          ContourPlot[ufun[x, y], {x, 0, 0.1}, {y, 0, 0.05}]


          enter image description here



          For Poisson equation replace PDE == 0 by PDE == f[x,y], where f[x,y] is an arbitrary function.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 hours ago

























          answered 3 hours ago









          zhkzhk

          9,32411433




          9,32411433












          • $begingroup$
            Oh wow, that's exactly what I needed! Also thanks for clearing up the DirichletCondition, the way you did it was much easier than what the Wolfram site had. To make sure I understand the syntax for PDE, i.e does that mean derivative of V with respect to x, and x again (to satisfy a squared partial)?
            $endgroup$
            – LtGenSpartan
            2 hours ago












          • $begingroup$
            @LtGenSpartan Yes!
            $endgroup$
            – zhk
            2 hours ago










          • $begingroup$
            I actually have another question, is there a way to add legends, axes, etc. to this plot?
            $endgroup$
            – LtGenSpartan
            2 hours ago










          • $begingroup$
            @LtGenSpartan Of course you can. Check the documentations on Plot.
            $endgroup$
            – zhk
            2 hours ago










          • $begingroup$
            @LtGenSpartan - FrameLabel -> Automatic, PlotLegends -> Automatic
            $endgroup$
            – Bob Hanlon
            2 hours ago


















          • $begingroup$
            Oh wow, that's exactly what I needed! Also thanks for clearing up the DirichletCondition, the way you did it was much easier than what the Wolfram site had. To make sure I understand the syntax for PDE, i.e does that mean derivative of V with respect to x, and x again (to satisfy a squared partial)?
            $endgroup$
            – LtGenSpartan
            2 hours ago












          • $begingroup$
            @LtGenSpartan Yes!
            $endgroup$
            – zhk
            2 hours ago










          • $begingroup$
            I actually have another question, is there a way to add legends, axes, etc. to this plot?
            $endgroup$
            – LtGenSpartan
            2 hours ago










          • $begingroup$
            @LtGenSpartan Of course you can. Check the documentations on Plot.
            $endgroup$
            – zhk
            2 hours ago










          • $begingroup$
            @LtGenSpartan - FrameLabel -> Automatic, PlotLegends -> Automatic
            $endgroup$
            – Bob Hanlon
            2 hours ago
















          $begingroup$
          Oh wow, that's exactly what I needed! Also thanks for clearing up the DirichletCondition, the way you did it was much easier than what the Wolfram site had. To make sure I understand the syntax for PDE, i.e does that mean derivative of V with respect to x, and x again (to satisfy a squared partial)?
          $endgroup$
          – LtGenSpartan
          2 hours ago






          $begingroup$
          Oh wow, that's exactly what I needed! Also thanks for clearing up the DirichletCondition, the way you did it was much easier than what the Wolfram site had. To make sure I understand the syntax for PDE, i.e does that mean derivative of V with respect to x, and x again (to satisfy a squared partial)?
          $endgroup$
          – LtGenSpartan
          2 hours ago














          $begingroup$
          @LtGenSpartan Yes!
          $endgroup$
          – zhk
          2 hours ago




          $begingroup$
          @LtGenSpartan Yes!
          $endgroup$
          – zhk
          2 hours ago












          $begingroup$
          I actually have another question, is there a way to add legends, axes, etc. to this plot?
          $endgroup$
          – LtGenSpartan
          2 hours ago




          $begingroup$
          I actually have another question, is there a way to add legends, axes, etc. to this plot?
          $endgroup$
          – LtGenSpartan
          2 hours ago












          $begingroup$
          @LtGenSpartan Of course you can. Check the documentations on Plot.
          $endgroup$
          – zhk
          2 hours ago




          $begingroup$
          @LtGenSpartan Of course you can. Check the documentations on Plot.
          $endgroup$
          – zhk
          2 hours ago












          $begingroup$
          @LtGenSpartan - FrameLabel -> Automatic, PlotLegends -> Automatic
          $endgroup$
          – Bob Hanlon
          2 hours ago




          $begingroup$
          @LtGenSpartan - FrameLabel -> Automatic, PlotLegends -> Automatic
          $endgroup$
          – Bob Hanlon
          2 hours ago










          LtGenSpartan is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          LtGenSpartan is a new contributor. Be nice, and check out our Code of Conduct.













          LtGenSpartan is a new contributor. Be nice, and check out our Code of Conduct.












          LtGenSpartan is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Mathematica 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%2fmathematica.stackexchange.com%2fquestions%2f191984%2fnot-sure-how-to-set-up-the-laplacian-poisson-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

          Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

          Lupi Siderali Indice Storia | Organizzazione | La Tredicesima Compagnia | Aspetto | Membri Importanti...

          Armoriale delle famiglie italiane (Car) Indice Armi | Bibliografia | Menu di navigazioneBlasone...