bempp_cl.api.external.fenics ============================ .. py:module:: bempp_cl.api.external.fenics .. autoapi-nested-parse:: Interface to DOLFIN for FEM-BEM coupling. Classes ------- .. autoapisummary:: bempp_cl.api.external.fenics.FenicsOperator Functions --------- .. autoapisummary:: bempp_cl.api.external.fenics.boundary_grid_from_fenics_mesh bempp_cl.api.external.fenics.fenics_to_bempp_trace_data bempp_cl.api.external.fenics.fenics_space_info bempp_cl.api.external.fenics.p1_trace bempp_cl.api.external.fenics.nc1_tangential_trace Module Contents --------------- .. py:function:: 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. .. py:function:: fenics_to_bempp_trace_data(fenics_space) Return tuple (space,trace_matrix). .. py:function:: fenics_space_info(fenics_space) Return tuple (family,degree) containing information about a FEniCS space. .. py:class:: FenicsOperator(fenics_weak_form) Bases: :py:obj:`object` Wrap a FEniCS Operator into a Bempp operator. .. py:attribute:: _fenics_weak_form .. py:attribute:: _sparse_mat :value: None .. py:method:: weak_form() Return the weak form. .. py:function:: 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. .. py:function:: nc1_tangential_trace(fenics_space) Return the NC1 (twisted) tangential 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.