tidy3d.components.source.AngledFieldSource#

class AngledFieldSource[source]#

Bases: DirectionalSource, ABC

A FieldSource defined with an angled direction of propagation.

Parameters:
  • name (Attribute: name) –

    Type

    Optional[str]

    Default

    = None

    Description

    Optional name for the source.

  • center (Attribute: center) –

    Type

    Tuple[float, float, float]

    Default

    = (0.0, 0.0, 0.0)

    Units

    um

    Description

    Center of object in x, y, and z.

  • size (Attribute: size) –

    Type

    Tuple[NonNegativeFloat, NonNegativeFloat, NonNegativeFloat]

    Default

    Units

    um

    Description

    Size in x, y, and z directions.

  • source_time (Attribute: source_time) –

    Type

    Union[GaussianPulse, ContinuousWave, CustomSourceTime]

    Default

    Description

    Specification of the source time-dependence.

  • direction (Attribute: direction) –

    Type

    Literal[‘+’, ‘-‘]

    Default

    Description

    Specifies propagation in the positive or negative direction of the injection axis.

  • angle_theta (Attribute: angle_theta) –

    Type

    float

    Default

    = 0.0

    Units

    rad

    Description

    Polar angle of the propagation axis from the injection axis.

  • angle_phi (Attribute: angle_phi) –

    Type

    float

    Default

    = 0.0

    Units

    rad

    Description

    Azimuth angle of the propagation axis in the plane orthogonal to the injection axis.

  • pol_angle (Attribute: pol_angle) –

    Type

    float

    Default

    = 0

    Units

    rad

    Description

    Specifies the angle between the electric field polarization of the source and the plane defined by the injection axis and the propagation axis (rad). pol_angle=0 (default) specifies P polarization, while pol_angle=np.pi/2 specifies S polarization. At normal incidence when S and P are undefined, pol_angle=0 defines: - Ey polarization for propagation along x.- Ex polarization for propagation along y.- Ex polarization for propagation along z.

Notes

The direction is defined by the polar and azimuth angles w.r.t. an injection axis, as well as forward + or backward -. This base class only defines the direction and injection_axis attributes, but it must be composed with a class that also defines angle_theta and angle_phi.

Attributes

Methods

glancing_incidence(val)

Warn if close to glancing incidence.

angle_theta#
angle_phi#
pol_angle#
classmethod glancing_incidence(val)[source]#

Warn if close to glancing incidence.

__hash__()#

Hash method.