deepxde icon indicating copy to clipboard operation
deepxde copied to clipboard

Boundary is called on vertices

Open AJAXJR24 opened this issue 1 year ago • 4 comments

I am trying to solve a problem over a Rectangle Geometry. my rectangle min and max are [0,0], [1,1]. I get the below error:

Warning: Rectangle boundary_normal called on vertices. You may use PDE(..., exclusions=...) to exclude the vertices. Warning: Rectangle boundary_normal called on vertices. You may use PDE(..., exclusions=...) to exclude the vertices.

When I want to define exclusions by an array I also get an error. I assume because my problem is 3D(x,y,t), The exclusions array elements must be the shape of my dimensions. If I am right, How should it be defined since there is time in my problem?

AJAXJR24 avatar Nov 08 '23 15:11 AJAXJR24

I am also getting these warnings, but for a 2D time dependent PDE. Would like to know how to solve it. Mine converges very well so I'm not sure if this warning is affecting anything.

unixcrab avatar Nov 10 '23 19:11 unixcrab

This warning means that the code tries to compute the normal direction for vertices, which is not well defined. In many cases, this would not cause a problem, and you can ignore the warning.

When you want to exclude the points, then you are right that the points should be the same shape.

lululxvi avatar Nov 25 '23 02:11 lululxvi

dear @lululxvi Thanks for your reply Would these vertices be problematic if the heat equation is solved in a rectangular domain in which 2 of the adjacent sides are RobinBC and the other 2 are NeumannBC?

AJAXJR24 avatar Nov 28 '23 09:11 AJAXJR24

Theoretically, it could cause some problem, but in practice, sometimes it is fine.

lululxvi avatar Dec 12 '23 01:12 lululxvi