Utility functions¶
- dune.mmesh.domainMarker(grid, wrapped=False)[source]
Return domain markers passed by .msh grid file.
- Parameters
grid – The grid.
wrapped – Set this to true if grid is wrapped.
- Returns
Grid function with cell-wise markers from .msh file.
- dune.mmesh.edgeMovement(grid, shifts)[source]
Return linear interpolation of vertex shifts.
- Parameters
grid – The grid.
shifts – List of shifts.
- Returns
Vector-valued grid function.
- dune.mmesh.interfaceEdgeMovement(igrid, shifts)[source]
Return linear interpolation of vertex shifts on the interface.
- Parameters
igrid – The interface grid.
shifts – List of shifts.
- Returns
Vector-valued interface grid function.
- dune.mmesh.interfaceIndicator(igrid, grid=None, restrict=True)[source]
Return indicator of interface edges.
- Parameters
igrid – The interfacegrid.
grid – The bulk grid. Pass this parameter if the bulk grid is wrapped, e.g., by a geometryGridView.
restrict (bool, optional) – If True, the returned UFL expression is restricted.
- Returns
Skeleton function that is one at interface edges.
- dune.mmesh.normals(igrid)[source]
Return normal vectors to the interface grid elements.
- Parameters
igrid – The interface grid.
- Returns
Grid function on the interface grid. Coincides with n(‘+’) of the bulk facet normal.