tidy3d.components.source.AngledFieldSource#
- class AngledFieldSource[source]#
Bases:
DirectionalSource,ABCA FieldSource defined with an angled direction of propagation.
- Parameters:
name (Attribute:
name) –TypeOptional[str]
Default= None
DescriptionOptional name for the source.
center (Attribute:
center) –TypeTuple[float, float, float]
Default= (0.0, 0.0, 0.0)
Unitsum
DescriptionCenter of object in x, y, and z.
size (Attribute:
size) –TypeTuple[NonNegativeFloat, NonNegativeFloat, NonNegativeFloat]
DefaultUnitsum
DescriptionSize in x, y, and z directions.
source_time (Attribute:
source_time) –TypeUnion[GaussianPulse, ContinuousWave, CustomSourceTime]
DefaultDescriptionSpecification of the source time-dependence.
direction (Attribute:
direction) –TypeLiteral[‘+’, ‘-‘]
DefaultDescriptionSpecifies propagation in the positive or negative direction of the injection axis.
angle_theta (Attribute:
angle_theta) –Typefloat
Default= 0.0
Unitsrad
DescriptionPolar angle of the propagation axis from the injection axis.
angle_phi (Attribute:
angle_phi) –Typefloat
Default= 0.0
Unitsrad
DescriptionAzimuth angle of the propagation axis in the plane orthogonal to the injection axis.
pol_angle (Attribute:
pol_angle) –Typefloat
Default= 0
Unitsrad
DescriptionSpecifies 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, whilepol_angle=np.pi/2specifies S polarization. At normal incidence when S and P are undefined,pol_angle=0defines: -Eypolarization for propagation alongx.-Expolarization for propagation alongy.-Expolarization for propagation alongz.
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 thedirectionandinjection_axisattributes, but it must be composed with a class that also definesangle_thetaandangle_phi.Attributes
Methods
glancing_incidence(val)Warn if close to glancing incidence.
- angle_theta#
- angle_phi#
- pol_angle#
- __hash__()#
Hash method.