By default, Gmsh is used for visualisations. If you want to use ParaView, you can set
If you are running an IPython notebook, you should set
This will allow you to plot grids and functions within an IPython notebook using three.js.
Once you have set Bempp to use the correct plotting backend, you may plot a grid or grid function as in the following examples.
space = bempp.api.function_space(grid, "DP", 1)
def fun(x, normal, domain_index, result):
result = np.exp(1j * x)
grid_fun = bempp.api.GridFunction(space, fun=fun)