EllipticCylinder
Concrete subclass of GenericCylinder representing a cylinder with an elliptical cross section.
Contents
Description
EllipticCylinder represents the shape of an ellicptic cylinder. The major and minor axes of the ellipse as well as the axis of the cylinder should be aligned with the axes of the Cartesian coordinate system.
Construction
shape = EllipticCylinder(normal_axis, height, center, semiaxes) shape = EllipticCylinder(normal_axis, height, center, semiaxes, dl_max)
Input Arguments
- normal_axis: axis of the cylinder. It should be one of Axis.x, Axis.y, Axis.z.
- height: size of the cylinder along its axis.
- center: center of the cylinder in the format of [x y z].
- semiaxes: semiaxes of the ellipse in the format of [a b]. If normal_axis == Axis.y, a is the semiaxis in the z-axis and b is the semiaxis in the x-axis.
- dl_max: maximum grid size allowed in the cylinder. It can be either [dx dy dz] or a single real number dl for dx = dy = dz. If unassigned, dl_max = Inf is used.
Example
% Create an instance of EllipticCylinder.
shape = EllipticCylinder(Axis.z, 100, [0 0 50], [100 50]);
% Use the constructed shape in maxwell_run(). [E, H] = maxwell_run({INITIAL ARGUMENTS}, 'OBJ', {'vacuum', 'none', 1.0}, shape, {REMAINING ARGUMENTS});
See Also
CircularCylinder, SectoralCylinder, PolygonalCylinder, Shape, maxwell_run