Skip to content

Commit

Permalink
Update boundary conditions format in PDE tutorial notebook (#641)
Browse files Browse the repository at this point in the history
* Update boundary conditions format in PDE tutorial notebook
  • Loading branch information
david-zwicker authored Jan 24, 2025
1 parent 406a901 commit e7a94ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
"outputs": [],
"source": [
"grid = pde.CartesianGrid([[0, 2 * np.pi]] * 2, 64)\n",
"bcs = [{\"value\": \"sin(y)\"}, {\"value\": \"sin(x)\"}]\n",
"bcs = {\"x\": {\"value\": \"sin(y)\"}, \"y\": {\"value\": \"sin(x)\"}}\n",
"\n",
"field_zero = pde.ScalarField(grid)\n",
"result_laplace = pde.solve_poisson_equation(field_zero, bc=bcs)\n",
Expand Down

0 comments on commit e7a94ef

Please sign in to comment.