RectSrc

Concrete subclass of Source representing a constant electric dipole distribution over a rectangular patch.

Contents

Description

RectSrc is similar to PlaneSrc, but it places constant electric dipoles on a rectangular patch rather than an entire plane.

Construction

src = RectSrc(normal_axis, intercept, rect, polarization)
src = RectSrc(normal_axis, intercept, rect, polarization, K)

Input Arguments

Note

In the finite-difference grid, RectSrc excites dipoles at the E-field points. This poses a condition on intercept argument in the constructor: intercept should be at a dual grid point in the normal_axis direction. Therefore, make sure that intercept does not overlap with the locations of the vertices of Shape in the normal_axis direction; otherwise dynamic grid generation in maxwell_run will fail.

Example

% Create an instance of PointSrc.
src =  RectSrc(Axis.y, -2000, [0 10; 20 180], Axis.x);  % y = -2000 should not be primary grid point
% Use the constructed src in maxwell_run().
[E, H] = maxwell_run({INITIAL ARGUMENTS}, 'SRC', src);

See Also

PlaneSrc, maxwell_run