Utility functions¶
- dune.mmesh.domainMarker(grid)[source]
Return domain markers passed by .msh grid file.
- Parameters
grid – The grid.
- 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 (Grid, optional) – The bulk grid. Necessary, if wrapped.
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.