zwicker-group / py-pde

Python package for solving partial differential equations using finite differences.
https://py-pde.readthedocs.io
MIT License
408 stars 52 forks source link

Dirichlet boundary condition for custom grid config #333

Closed kallegrens closed 1 year ago

kallegrens commented 1 year ago

Hello!

I'm a beginner using py-pde. I'm wondering how I can define custom Dirichlet conditions for a grid. Is it possible to pass a numpy array with my config? See the image below for clarity.

Thanks in advance!

Screenshot 2022-11-19 at 20 04 00
david-zwicker commented 1 year ago

I'm not quite sure what you're asking and I don't know how to interpret the graphics. If you're asking whether py-pde supports general geometries and boundaries of arbitrary shape, then I'm afraid I need to disappoint you.