Group Abstract Group Abstract

Message Boards Message Boards

Poisson equation with PeriodicBoundaryCondition

2 Replies

You are right. The code in the English version is (a light but important difference: - 10^-6):

ufun = NDSolveValue[{-Laplacian[u[x, y], {x, y}] == 1, 
   PeriodicBoundaryCondition[u[x, y], (x - 2)^2 + y^2 == 1, 
         Function[x, x - {2, 0}]], 
   DirichletCondition[u[x, y] == 0, 
    Inequality[0, LessEqual, x, Less, 2 - 10^(-6)] && 
           (y <= -1 || y >= 1)]}, u, Element[{x, y}, \[CapitalOmega]]]

Thank you

Posted 5 years ago

Hi Guillermo,

There is a mistake in the Spanish version of the page. The code in the English version works fine, a small offset is used to prevent the conditions from overlapping.

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard