PointSrc

Concrete subclass of Source representing an electric point dipole source.

Contents

Description

PointSrc is the most basic source type. It places an oscillating electric point dipole at the location given in the constructor.

Construction

src = PointSrc(polarization_axis, location)
src = PointSrc(polarization_axis, location, I)

Input Arguments

Note

In the finite-difference grid, PointSrc is located at one of the E-field points. This poses a condition on location argument in the constructor: the location in the directions normal to the dipole polarization should be at dual grid points, whereas the location in the direction along the dipole polarization should be at a primary grid point. Therefore, make sure that the location of the dipole does not overlap with the locations of the vertices of Shape in the directions normal to the dipole polarization; otherwise dynamic grid generation in maxwell_run will fail.

Example

% Create an instance of PointSrc.
src = PointSrc(Axis.z, [0 0 0]);  % z = 0 should not be dual grid point
% Use the constructed src in maxwell_run().
[E, H] = maxwell_run({INITIAL ARGUMENTS}, 'SRC', src);

See Also

PointSrcM, PlaneSrc, maxwell_run