Hi! I’m trying to check some properties of a method I implemented and to do so I need to get \int_el u dx for every element and check its sign, but I couldnt find any way to perform that integral with grid functions.
Integrate (u, mesh, element_wise=True)
returns a vector of element-wise integrals
Ooh, I see, I saw that flag but didn’t get that it returned a vector, thanks @joachim !! Also, are there plans to generate a “Numpy like” documentation? In the sense of a page for every function or class and its args, kwargs, flags and returns? If so I would like to help any way I can!
well, you can do
import ngsolve
dir (ngsolve)
and then
help (ngsolve.Integrate)
Guess we could generate html pages from the docstrings, which would simplify googling.
Joachim
Sounds good, thanks for your comments