I am trying to integrate a coefficient function over a surface (labeled as “observationplane”):
It should be zero, however it returns a non-zero value 2.0002296550916974.
The attached code produces this result.
you need to use the arctan2 to have the correct angle for all 4 quadrants (atan is only defined on 2).
Thank you Christopher. The use of atan2 gives the following:
Traceback (most recent call last):
File “”, line 26, in
netgen.libngpy._meshing.NgException: atan2 not available for type N5ngstd4SIMDIdLi4EEE
Thanks again Christopher. I guess an alternative way would be
this atan2 problem was fixed a few days ago, install the latest nightly version,