NeuroDiffGym / neurodiffeq

A library for solving differential equations using neural networks based on PyTorch, used by multiple research groups around the world, including at Harvard IACS.
http://pypi.org/project/neurodiffeq/
MIT License
664 stars 87 forks source link

Neumann boundary conditions #176

Open ma-sadeghi opened 1 year ago

ma-sadeghi commented 1 year ago

I'm trying to solve the Laplace PDE in 2D with the following boundary conditions:

x = 0 ; u = 1 x = 1 ; u = 0 y = 0 ; du/dy = 0 y = 1 ; du/dy = 0

How can I enforce the du/dy=0 ones? Thanks!