Page 1 of 1

Correctly implementing a conical aperture

Posted: Mon 16 Nov 2026 23:49
by jyosk001
Hi Didier,

I'm having trouble figuring out how to correctly implement a conical aperture in TraceWin.

As an example, I made an aperture map called conicalaperture.ouv, representing a conical aperture with initial & final radii of 25 mm and 12 mm respectively over a longitudinal length of 400 mm. When I try to implement this, I get an error saying "Inconsistent range (Max,min) defined in the geometry field map file."

I've attached example project files. What am I doing wrong?

Thanks,

Josh

Re: Correctly implementing a conical aperture

Posted: Tue 17 Nov 2026 10:17
by Didier
Dear Josh,

You are confusing two ways to define an opening in FIELD_MAP.
The first method, corresponding to the "Ka" flag in FIELD_MAP, involves adding a file with the .ouv extension to the descriptions of the magnetic or electric fields in FIELD_MAP.
https://dacm-codes.fr/Softwares/TraceWi ... erture_map
This is apparently what you wanted to do, but it must necessarily be associated with a magnetic or electric field map files.

The second method involves defining a 3D map that precisely describes the element’s geometry (3D format described here:https://dacm-codes.fr/Softwares/TraceWi ... r_electric ). This map must indeed have the “geom” parameter in FIELD_MAP set to “10000.”

So in your case, I suggest creating a 1D magnetic field map file named “conicalaperture.bsz” with zero field value set to 0, so that you can use the “Ka” flag
The syntax would be “FIELD_MAP 010 400 0 100 0 0 0 1 conicalaperture”

I realize that all of this isn't necessarily very clear, but as we keep adding multiple and varied requests, the tool becomes much more complex.

Regards,

Didier

Re: Correctly implementing a conical aperture

Posted: Tue 17 Nov 2026 16:52
by jyosk001
Hi Didier,

Thanks! I got it to work. Just as future reference for other users who might be interested, I was able to accomplish this by creating two files of the same name but with different extensions: conicalaperture.ouv containing the aperture geometry (z, Xmax, Ymax) and conicalaperture.bsz containing a short 1D magnetic field map with zero field strength. I then used the line:

FIELD_MAP 010 400 0 100 0 0 0 1 conicalaperture

Though the two files have different amounts of data and apparently different zmax's, it still was able to create the conical aperture with the correct initial/final radii and length. Not sure if this was the correct and/or simplest way to do this, but it seems to work.

Thanks,

Josh

Re: Correctly implementing a conical aperture

Posted: Tue 17 Nov 2026 17:03
by Didier
Dear Josh,

Actually, that's not a problem, but why didn't you just put the correct length in your bsz file?

Regards,

Didier

Re: Correctly implementing a conical aperture

Posted: Sat 21 Nov 2026 17:20
by gwhitlock71
Didier wrote:Actually, that's not a problem, but why didn't you just put the correct length in your bsz file?
Didier, what length did you actually put in the bsz file then, out of curiosity?