lululxvi / deepxde

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

Different PDEs for different points #1695

Closed bakhtiyar-k closed 1 month ago

bakhtiyar-k commented 6 months ago

Hello,

If I have two sets of collocation points (red and blue), how can I specify two different sets of PDEs for them and run the network training? image

praksharma commented 5 months ago

I think domain decomposition is not supported by DeepXDE. You can try NVIDIA Modulus as they have a comprehensive library to handle such cases.

lululxvi commented 3 months ago

You can use if/where condition to specific the location in your PDE definition.

bakhtiyar-k commented 2 months ago

tf.where(condition, pde_set_1, pde_set_2)?

lululxvi commented 1 month ago

tf.where(condition, pde_set_1, pde_set_2)?

Yes.