yasfpy.initial_field#
Incident field definition.
This module defines InitialField, which stores
the incident beam type and polarization metadata used when constructing incident
field coefficients.
Classes#
Represents an object with various parameters for a beam of light. |
Module Contents#
- class yasfpy.initial_field.InitialField(beam_width, focal_point, field_type='gaussian', amplitude=1, polar_angle=0, azimuthal_angle=0, polarization='TE')#
Represents an object with various parameters for a beam of light.
- field_type = 'gaussian'#
- amplitude = 1#
- polar_angle = 0#
- azimuthal_angle = 0#
- polarization = 'TE'#
- beam_width#
- focal_point#
- log#
- set_polarization(polarization)#
Update the incident-field polarization and refresh derived flags.
- Parameters:
polarization –
New polarization value. Can be one of:
"TE"/1: transverse electric"TM"/2: transverse magnetic"UNP"/0: unpolarized
Notes
This method recomputes the internal polarization index and the normal-incidence flag.