SegmentalCylinder
Concrete subclass of GenericCylinder representing a cylinder with a cross section of a circular segment.
Contents
Description
SegmentalCylinder represents the shape of a segmental cylinder. Its cross section is a circular segment (region surrounded by an arc and the chord connecting its end points). The axis of the cylinder should be aligned with one of the axes of the Cartesian coordinate system.
Construction
shape = SegmentalCylinder(normal_axis, height, center, radius, theta, d_theta) shape = SegmentalCylinder(normal_axis, height, center, radius, theta, d_theta, 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]. For normal_axis = Axis.z, (x, y) is the coordinate of the center of the circle.
- radius: radius of the circle
- theta: beginning angle of the segment in radian
- d_theta: angular width of the segment in radian between -2*pi and 2*pi.
- 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 SegmentalCylinder.
shape = SegmentalCylinder(Axis.z, 100, [0 0 50], 50, pi/6, pi/3);
% Use the constructed shape in maxwell_run(). [E, H] = maxwell_run({INITIAL ARGUMENTS}, 'OBJ', {'vacuum', 'none', 1.0}, shape, {REMAINING ARGUMENTS});
See Also
CircularCylinder, CircularCylinder, CircularShellCylinder, EllipticCylinder, PolygonalCylinder, Shape, maxwell_run