bempp.api.external.fenicsx

Interface to DOLFINX for FEM-BEM coupling.

Module Contents

Classes

FenicsOperator

Wrap a FEniCS-X Operator into a Bempp operator.

Functions

boundary_grid_from_fenics_mesh(fenics_mesh)

Create a Bempp boundary grid from a FEniCS Mesh.

fenics_to_bempp_trace_data(fenics_space)

Return tuple (space,trace_matrix).

fenics_space_info(fenics_space)

Return tuple (family,degree) containing information about a FEniCS space.

p1_trace(fenics_space)

Return the P1 trace operator.

bempp.api.external.fenicsx.boundary_grid_from_fenics_mesh(fenics_mesh)

Create a Bempp boundary grid from a FEniCS Mesh.

Return the Bempp grid and a map from the node numberings of the FEniCS mesh to the node numbers of the boundary grid.

bempp.api.external.fenicsx.fenics_to_bempp_trace_data(fenics_space)

Return tuple (space,trace_matrix).

bempp.api.external.fenicsx.fenics_space_info(fenics_space)

Return tuple (family,degree) containing information about a FEniCS space.

bempp.api.external.fenicsx.p1_trace(fenics_space)

Return the P1 trace operator.

This function returns a pair (space, trace_matrix), where space is a Bempp space object and trace_matrix is the corresponding matrix that maps the coefficients of a FEniCS function to its boundary trace coefficients in the corresponding Bempp space.

class bempp.api.external.fenicsx.FenicsOperator(fenics_weak_form)

Bases: object

Wrap a FEniCS-X Operator into a Bempp operator.

weak_form()

Return the weak form.