Skip to content
Projects

Aperture3D

The equations of simgeometry.objects.aperture3d, declared on the code that implements them and checked by the tests.

Aperture3D

classsource

Represent a three-dimensional aperture embedded in a simulation domain.

radius
r(z)=rk−1+z−zk−1zk−zk−1 (rk−rk−1),zk−1<z≤zkr(z) = r_{k-1} + \frac{z - z_{k-1}}{z_k - z_{k-1}}\,(r_k - r_{k-1}), \qquad z_{k-1} < z \le z_k
opening
open  ⟺  ρ2<rmin⁡2  or  ρ2≤r(z)2,ρ2=∣p⊥−c∣2\text{open} \iff \rho^2 < r_{\min}^2 \;\text{or}\; \rho^2 \le r(z)^2, \qquad \rho^2 = |p_\perp - c|^2
inside
p∈S  ⟺  l≤p<u  and  ¬ open(inverted, the default)p \in S \iff l \le p < u \;\text{and}\; \lnot\,\text{open} \quad (\text{inverted, the default})
Assumes
  • the profile of (axial position zkz_k, radius rkr_k) vertices about the axis through center_coords; kk from searchsorted (side left)
  • beyond the first or last vertex the end radius holds
  • the inversion applies before the half-open box test: the solid is the material around the opening within the box only
  • no level set and no analytic crossing: crossings are sampled