Skip to content
Projects

Cut cells

The equations of carafe.spatial.cutcell, declared on the code that implements them and checked by the tests.

cut_cells

functionsource

The conformal cut cells of the union of simgeometry shapes.

fractions
edge_air=1−fe,face_air=1−ff(simgeometry’s yee_fractions)\text{edge\_air} = 1 - f_e, \qquad \text{face\_air} = 1 - f_f \quad (\text{simgeometry's } \texttt{yee\_fractions})
width
wf=tracemax⁡(sin⁡θ,min_sine),sin⁡θ=projected tracetracew_f = \frac{\text{trace}}{\max(\sin\theta, \text{min\_sine})}, \qquad \sin\theta = \frac{\text{projected trace}}{\text{trace}}
Assumes
  • exact for planes, second order for curved surfaces; a slit narrower than a cell keeps its gap
  • wf=trace2/projectedw_f = \text{trace}^2/\text{projected} while sin⁡θ≥0.1\sin\theta \ge 0.1; the bound keeps the matrix moderate
  • staircased cells (staircased_cells) make the surface too long (4/π4/\pi for a circle) and the loss does not converge
References
  • Dey and Mittra (conformal cut faces)