Exporting Calculated Solution as Arrays of Indices

Hello,

I have calculated a solution for Laplace’s equation (for electric field) using Dirichlet boundary conditions, and am able to generate a Trisurf Plot of the solution within Jupyter. Is there a way to export this data in the form of indices, perhaps the electric field or electric potential associated with each point in space (in a lattice)?

Thank you!
George

Hi George, do you want to export boundary data or evaluations in the interior? For the former you can just use the bempp.api.export command to export the Gridfunction. For the latter you need to evaluate the potential operator at the lattice points you are interested in and then save the resulting Numpy array so that your preferred viewer can read it.