WLJS LogoWLJS Notebook

PoissonPDEComponent

PoissonPDEComponent[vars, pars] yields a Poisson PDE term ∇²u - f with model variables vars and model parameters pars.

Examples

Create a Poisson equation component:

PoissonPDEComponent[{u[x, y], {x, y}}, <|"LoadValue" -> 1|>]

Solve Poisson's equation on a disk:

eqn = PoissonPDEComponent[{u[x, y], {x, y}}, <|"LoadValue" -> 1|>];
NDSolveValue[{eqn == 0, DirichletCondition[u[x, y] == 0, True]}, 
  u, {x, y} \[Element] Disk[]]

Visualize the solution:

sol = NDSolveValue[{eqn == 0, DirichletCondition[u[x, y] == 0, True]}, 
  u, {x, y} \[Element] Disk[]];
Plot3D[sol[x, y], {x, y} \[Element] Disk[]]

Please visit the official Wolfram Language Reference for more details.

On this page