deepxde icon indicating copy to clipboard operation
deepxde copied to clipboard

Potential geometry bug?

Open ethanshoemaker opened this issue 2 years ago • 1 comments

Hi Lu Lu, I am attempting to use the inside(x) function. My code is... (it should be noted that airfoil is a polygon geometry)

def airfoil_fill(x, inside):
    return airfoil.inside(x)

I get the error : too many indices for array: array is 1-dimensional, but 2 were indexed.

I tried your fix seen in https://github.com/lululxvi/deepxde/issues/634 but then my code doesn't do anything. No error is returned and the program doesn't terminate, but nothing happens and no output is generated. Any help would be appreciated.

ethanshoemaker avatar Jul 19 '22 17:07 ethanshoemaker

I noticed that the algorithm of the "inside" method is quite slow, especially if the points to be checked are a lot and the sampling method is latin hypercube. For this reason, I would try to avoid using it

riccardotomada avatar Jul 21 '22 13:07 riccardotomada