I need to introduce a series of rectangular apertures into a sequence of superposed field maps.
To my understanding there are two ways of doing this:
1) Using FIELD_MAP with the geometry parameter of a 3D aperture map (10000).
2) Setting the aperture flag (Ka) of the first FIELD_MAP to Ka = 1.
I have some questions about both of these strategies. I attach a minimal reproducible example.
1) Using FIELD_MAP as 3D aperture map.
Even though this is a minor issue: the apertures are not plotted. Is there a way in TraceWin to obtain a file with the apertures of the whole beamline? E.g., section in x and y.
On the same line (even though this is not related to FIELD_MAP or the apertures), is there a way to obtain a file with the z (or rather s) positions of all the beamline components, except from drifts? This would be very convenient to crosscheck that the beamline skeleton agrees with the typical 2D CAD files provided by engineering teams. Maybe this "feature" is already available, but I could not find it.
2. Using aperture flag Ka = 1 of first FIELD_MAP.
a) The behaviour of TraceWin seems to depend on the calculation step. In the test example provided in the attachment, for instance, when selecting 100 steps per meter the third aperture seems to be ignored. But when selecting 100 steps per βλ, the third aperture is included but the second seems to be ignored. Am I doing something wrong?
b) As stated in the documentation, the aperture file only accepts circular or elliptical apertures. Is there any possibility to include rectangular apertures using the apreture flag Ka=1 in FIELD_MAP? This would be very convenient. Otherwise, the only alternative that I can think of is to include the aperture as a 3D aperture map with FIELD_MAP, which for a long sequence of superposed FIELD_MAP elements results in a rather large file.
System specifications:
- OS: Windows 10
- TraceWin version: 2.24.2.9
Many thanks in advance for your support and best regards,
Pau