s_bend¶
- photonforge.parametric.s_bend(*, port_spec=None, length=None, offset=None, euler_fraction=None, active_model=None, technology=None, name=None, tidy3d_model_kwargs=None, waveguide_model_kwargs=None)¶
S bend waveguide section.
- Parameters:
port_spec (str | PortSpec) – Port specification describing waveguide cross-section.
length (float) – 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 (float) – Side offset of the S bend.
euler_fraction (float) – Fraction of the bends that is created using an Euler spiral (see
photonforge.Path.arc()
). IfNone
, defaults to 0.active_model (Literal['Tidy3D', 'Waveguide']) – Name of the model to be used by default; must be either
"Tidy3D"
or"Waveguide"
(default).technology (Technology) – Component technology. If
None
, the default technology is used.name (str) – Component name.
tidy3d_model_kwargs (dict[str, Any]) – Dictionary of keyword arguments passed to the component’s
photonforge.Tidy3DModel
.waveguide_model_kwargs (dict[str, Any]) – Dictionary of keyword arguments passed to the component’s
photonforge.WaveguideModel
.
- Returns:
Component with the S bend section, ports and model.
- Return type:
component = s_bend(port_spec="Strip", length=10, offset=3, euler_fraction=0.5)