ElectricFieldReceiver

public class ElectricFieldReceiver

Methods for creating new and different types of ElectricField instances.

Author:Kyle M. Douglass

Methods

generateUniformSquareElectricField

public static ElectricField generateUniformSquareElectricField(double width, double height, Vector3D orientation, double wavelength, RefractiveIndex refractiveIndex)

Creates a uniform electric field of square shape. This electric field is uniformly polarized and of the same magnitude within the area (x, x+width), (y, y+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.

Parameters:
  • width – The extent of the field in x from 0 to width.
  • height – The extend of the field in y from 0 to height.
  • orientation – The orientation of the electric field vector.
  • wavelength – The wavelength of the radiation.
  • refractiveIndex – The sample’s refractive index distribution.
Returns:

A new instance of an ElectricField that is uniform and square.