GenerateSquareUniformElectricField

public class GenerateSquareUniformElectricField implements ElectricFieldCommand

Creates a uniform electric field of square shape. This electric field is uniformly polarized and of the same magnitude within the area (0, width), (0, height). It extends from z = 0 to z = infinity. Obviously, it is not physical but is a good approximation of a plane wave with finite energy.

Author:Kyle M. Douglass

Fields

height

double height

The extend of the illumination from y = 0 to y = height.

orientation

Vector3D orientation

The orientation of the electric field vector. This vector should be normalized to 1.

refractiveIndex

RefractiveIndex refractiveIndex

The refractive index of the medium.

wavelength

double wavelength

The wavelength of the radiation in free space.

width

double width

The extend of the illumination from x = 0 to x = width.

Methods

generateElectricField

public ElectricField generateElectricField()

Executes the command that returns a uniform electric field of square shape. This electric field is uniformly polarized and of the same magnitude within the area (0, width), (0, height). It extends from z = 0 to z = infinity. Obviously, it is not physical but is a good approximation of a plane wave with finite energy.