lululxvi / deepxde

A library for scientific machine learning and physics-informed learning
https://deepxde.readthedocs.io
GNU Lesser General Public License v2.1
2.71k stars 752 forks source link

Boundary condition as input for branch net in PI DeepONet #1752

Open voloddia opened 5 months ago

voloddia commented 5 months ago

Hi, I am solving a 1D heat conduction equation and I want to use one BC (time-dependent) as input for the branch net in PI DeepONet. In the demos, it seems that the function u must be inside pde. Does the current code allow to feed a BC into branch net?

lululxvi commented 3 months ago

See Advection equation example

xiaofan1230 commented 3 months ago

See Advection equation example

Hi Dr. Lu, I want to know if the advection_aligned_pideeponet_2d example solves the following PDE: ∂u/∂t + ∂u/∂x = 0 The initial condition is: u(x,0) = sin(2πx) Thank you!

voloddia commented 3 months ago

See Advection equation example

I see an additional variable v is used for IC. I'll try the same approach with BC. Thank you, Professor Lu.