Trace and skeleton¶
- dune.mmesh.skeleton(interfaceFunction, grid=None)[source]
Return the skeleton representation of a discrete function on the interface grid.
- Parameters
interfaceFunction – The discrete function on the interface grid.
grid (Grid, optional) – The bulk grid. Necessary, if wrapped.
- Returns
Skeleton representation of given interface function.
Note
This function has to be restricted when evaluated on facets, e.g. using avg(skeleton).
- dune.mmesh.trace(bulkFunction, igrid=None, restrictTo=None)[source]
Return the trace representation of a discrete function on the bulk grid.
- Parameters
bulkFunction – The discrete function on the bulk grid.
igrid (InterfaceGrid, optional) – The interface grid.
restrictTo – already restrict the trace to ‘+’ or ‘-’ side
- Returns
Trace representation of a given interface function. This function has to be restricted to positive (‘+’) or negative side (‘-‘).