Magnet Geometry

one_of_each_base.gmad

A base file that’s used (include one_of_each_base.gmad) by many examples in this directory. It’s loosely based on the one of each example in layout and contains one of each of the magnetic elements in BDSIM. Each example demonstrates a different geometry possible.

1_cylindrical.gmad

Key code:

magnetGeometryType="cylindrical";

This example uses the sequence of magnets defined in one_of_each_base.gmad and ensures that they have cylindrical geometry. This is a little redundant as the default is cylindrical.

How to run:

bdsim --file=1_cylindrical.gmad
../_images/1_cylindrical.png

2_poles_circular.gmad

Key code:

magnetGeometryType="polescircular";

As above but with poled geometry and a circular yoke.

How to run:

bdsim --file=2_poles_circular.gmad
../_images/2_poles_circular.png

3_poles_square.gmad

Key code:

magnetGeometryType="polessquare";

As above but with poled geometry and a square yoke.

How to run:

bdsim --file=3_poles_square.gmad
../_images/3_poles_square.png

4_poles_face.gmad

Key code:

magnetGeometryType="polesfacet";

As above but with poled geometry and a square yoke rotated by 45 degrees.

How to run:

bdsim --file=4_poles_facet.gmad
../_images/4_poles_facet.png

5_poles_face_crop.gmad

Key code:

magnetGeometryType="polesfacetcrop";

As above but with poled geometry and a square yoke rotated by 45 degrees. Additionally, the corner edges are cropped giving the yoke, \(n x 2\) edges, where \(n\) is the number of poles the magnet has.

How to run:

bdsim --file=5_poles_facet_crop.gmad
../_images/5_poles_facet_crop.png

6_lhcleft.gmad & 7_lhcright.gmad

Key code:

magnetGeometryType="lhcleft";
magnetGeometryType="lhcright";

LHC cyrogenic magnet for dipoles and quadrupoles. Given the two beam nature of the LHC, the magnet is either offset to the right or two the left dictating the ‘active’ beam pipe.

../_images/7_lhcleft.png

8_none.gmad

Key code:

magnetGeometryType="none";

No magnet outer geometry is built around the beam pipe - only the beam pipe exists.

../_images/8_none.png

9_coils.gmad

A test with carefully split and spaced quadrupoles to test the automatic choice to place or not the coils at the end of a magnet.

../_images/9_coils.png

10_size_variation_circ_quad.gmad

An example / test to show the scaling of the circular outer geometry.

../_images/10_size_variation_circ_quad.png

11_size_variation_circ_sext.gmad

An example / test to show the scaling of the circular outer geometry.

../_images/11_size_variation_circ_sext.png

12_size_variation_circ_oct.gmad

An example / test to show the scaling of the circular outer geometry.

../_images/12_size_variation_circ_oct.png

13_size_variation_circ_dec.gmad

An example / test to show the scaling of the circular outer geometry.

../_images/13_size_variation_circ_dec.png

14_size_variation_sq_quad.gmad

An example / test to show the scaling of the square outer geometry.

../_images/14_size_variation_sq_quad.png

15_size_variation_sq_sext.gmad

An example / test to show the scaling of the square outer geometry.

../_images/15_size_variation_sq_sext.png

16_size_variation_sq_oct.gmad

An example / test to show the scaling of the square outer geometry.

../_images/16_size_variation_sq_oct.png

17_size_variation_sq_dec.gmad

An example / test to show the scaling of the square outer geometry.

../_images/17_size_variation_sq_dec.png

18_size_variation_facet_quad.gmad

An example / test to show the scaling of facet outer geometry.

../_images/18_size_variation_facet_quad.png

19_size_variation_facet_sext.gmad

An example / test to show the scaling of facet outer geometry.

../_images/19_size_variation_facet_sext.png

20_size_variation_facet_oct.gmad

An example / test to show the scaling of facet outer geometry.

../_images/20_size_variation_facet_oct.png

21_size_variation_facet_dec.gmad

An example / test to show the scaling of facet outer geometry.

../_images/21_size_variation_facet_dec.png

22_size_variation_facetcrop_quad.gmad

An example / test to show the scaling of facetcrop outer geometry.

../_images/22_size_variation_facetcrop_quad.png

23_size_variation_facetcrop_sext.gmad

An example / test to show the scaling of facetcrop outer geometry.

../_images/23_size_variation_facetcrop_sext.png

24_size_variation_facetcrop_oct.gmad

An example / test to show the scaling of facetcrop outer geometry.

../_images/24_size_variation_facetcrop_oct.png

25_size_variation_facetcrop_dec.gmad

An example / test to show the scaling of facetcrop outer geometry.

../_images/25_size_variation_facetcrop_dec.png

26_size_variation_sbend_c.gmad

An example / test to show the scaling of sector bend outer geometry.

../_images/26_size_variation_sbend_c.png

27_size_variation_rbend_c.gmad

An example / test to show the scaling of rectangular bend outer geometry.

../_images/27_size_variation_rbend_c.png

28_size_variation_hkicker_c.gmad

An example / test to show the scaling of horizontal kicker outer geometry.

../_images/28_size_variation_hkicker_c.png

29_size_variation_vkicker_c.gmad

An example / test to show the scaling of vertical kicker outer geometry.

../_images/29_size_variation_vkicker_c.png

30_dipole_pole_face.gmad

An example / test to show sector bend with pole face rotation outer geometry.

../_images/30_dipole_pole_face.png