RF Cavity can produce overlaps
Issue #215
new
The RF cavity with SRF geometry can produce overlaps. The following produce geometry that overlaps:
rf1 : rfcavity, l=0.1*m, gradient = 0.1 * MV / m, outerDiameter=0.3*mm, material = "Copper", cavityModel = "Tesla9Cell", frequency = 8*MHz;
Tesla9Cell: cavitymodel,
type="elliptical",
irisRadius = 35*mm,
equatorRadius = 103.3*mm,
! halfCellLength = 57.7*mm,
equatorHorizontalAxis = 40*mm,
equatorVerticalAxis = 42*mm,
irisHorizontalAxis = 12*mm,
irisVerticalAxis = 19*mm,
tangentLineAngle = 13.3*pi/180,
thickness = 1*mm,
numberOfPoints = 24,
numberOfCells = 1;
The code to create this geometry should warn that the chosen length of the object is incompatible with the cavity specifications.
Also, if a length longer than the cavity cell is provided, it should pad it with a straight section with the same aperture. Currently, the iris curves are placed at the edges and the cavity curves are central resulting in a straight angled section if the length is even slightly too long.