powerflux_patch
Calculate the power flux through a rectangular patch.
Contents
Syntax
power = powerflux_patch(E_cell, H_cell, normal_axis, intercept) power = powerflux_patch(E_cell, H_cell, normal_axis, intercept, rect)
Parameters
Input
- E_cell: E-field in the format of [Ex, Ey, Ez], where each Ew is an instance of Scalar3d.
- H_cell: H-field in the format of [Hx, Hy, Hz], where each Hw is an instance of Scalar3d.
- normal_axis: axis normal to a rectangular patch. It should be one of Axis.x, Axis.y, Axis.z.
- intercept: location of the rectangular patch in the normal_axis direction.
- rect: bounds of the rectangle in the plane. For normal_axis = Axis.y, it is in the format of [zmin zmax; xmin xmax]. If unassigned, the entire cross section normal to normal_axis is used.
Output
- power: calculated power flux through the rectangular patch.
Example
[E, H] = maxwell_run({ARGUMENTS}); power = powerflux_patch(E, H, Axis.z, 0, [0 200; 0 100]);