parametric.s_bend
s_bend( *, port_spec: Annotated[str | photonforge.PortSpec, _] | None = None, length: Annotated[float, exclusiveMinimum=0, units='μm'] | None = None, offset: Annotated[float, units='μm'] | None = None, euler_fraction: Annotated[float, maximum=1, minimum=0] | None = None, technology: photonforge.Technology | None = None, name: str | None = None, model: photonforge.Model | None = None,) -> photonforge.ComponentS bend waveguide section.
Args
- port_spec: Port specification describing waveguide cross-section.
- length: Length of the S bend in the main propagation direction. If
None, a default is calculated based on the default bend radius, if possible. - offset: Side offset of the S bend.
- euler_fraction: Fraction of the bends that is created using an Euler spiral (see
Path.arc). IfNone, defaults to 0. - technology: Component technology. If
None, the default technology is used. - name: Component name.
- model: Model to be used with this component. If
NoneaWaveguideModelis used.
Returns
Component with the S bend section, ports and model.
Example
>>> component = pf.parametric.s_bend(... port_spec="Strip", length=10, offset=3, euler_fraction=0.5... )