Cut edges
The equations of simgeometry.cut_edges, declared on the code that implements them and checked by the tests.
bracketed_edge_geometry
functionsourceVectorized edge bisections used by embedded-boundary finite differences.
- solid
- cut
- Assumes
- node masks per object, the last listed object owning an overlap
- every edge from a fluid node to a solid neighbour is one outside-to-inside bracket, located by
intersection_fractionsagainst the neighbour's owner - periodic axes roll the masks and wrap the probe points
- no boundary values, stencil weights or minimum-distance clamps
- Built from
cut_edges
functionsourceFind all surface crossings, including objects between two fluid nodes.
- hits
- entering
- Assumes
- the diagnostic path: every edge of the grid, all hits of
intersect_segment, sorted by axis, lower node and fraction - analytic for primitives on nonperiodic edges, sampled (
samplesper edge) otherwise; features narrower than a sampling interval can be missed
- the diagnostic path: every edge of the grid, all hits of