straight¶
- photonforge.parametric.straight(*, port_spec=None, length=None, bulge_width=None, bulge_taper_length=None, bulge_margin=None, active_model=None, technology=None, name=None, tidy3d_model_kwargs=None, waveguide_model_kwargs=None)¶
Straight waveguide section.
- Parameters:
port_spec (str | PortSpec) – Port specification describing waveguide cross-section.
length (float) – Section length.
bulge_width (float) – Width added to the waveguide cross-section in the central region when
length
if enough to fit in 2 tapering sections plus margins.bulge_taper_length (float) – Length of each tapering region for bulging the central region of the waveguide.
bulge_margin (float) – Length of the waveguide that must be kept without bulging at both ends.
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 straight section, ports and model.
- Return type:
component1 = straight(port_spec="Rib", length=10)
component2 = straight(
port_spec="Strip",
length=12,
bulge_width=0.4,
bulge_taper_length=3,
bulge_margin=1,
tidy3d_model_kwargs={"symmetry": (0, -1, 0)},
active_model="Tidy3D",
)