5 A \keyword{
MULTIPOLET}
is in \opalt a general multipole with extended features. It can represent a
straight or curved
magnet. In the curved
case, the user may choose between constant
or variable radius. This model includes fringe
fields.
12 Physical length of the
magnet (meters), without
end fields. (Default: 1 m)
16 Vertical (non-bend plane) aperture of the
magnet (meters). (Default: 0.5 m)
18 Horizontal (bend plane) aperture of the
magnet (meters). (Default: 0.5 m)
20 Length of the left fringe field (meters). (Default: 0.0 m)
22 Length of the right fringe field (meters). (Default: 0.0 m)
24 A
real vector \seesec{anarray}, containing the multipole coefficients of the field
expansion on the mid-plane in the body of the
magnet: the transverse profile $
T(x) = B_0 + B_1 x + B_2 x^2 + \dots $
is set by
TP={$B_0$, $B_1$, $B_2$} (
units: $ T \cdot m^{-
n}$). The order of highest multipole
component is arbitrary, but all components up
to the maximum must be
given, even
if they are zero.
28 Entrance edge
angle (radians).
30 Rotation of the
magnet about its central axis (radians, counterclockwise). This enables
to obtain skew
fields. (Default 0.0
rad)
32 This
is to be
set TRUE
if the
magnet has variable radius. More precisely, at each point along the
magnet, its radius
is computed such that the reference trajectory always remains in the centre of the magnet. In the body of the magnet the radius
is set from the LENGTH
and ANGLE attributes. It
is then continuously changed
to be proportional
to the dipole field
on the reference trajectory
while entering the
end fields. This attribute
is only
to be
set TRUE
for a non-zero dipole
component. (Default: FALSE)
34 The step size (meters) used in calculating the reference trajectory for VARRARDIUS = TRUE. It specifies how often the radius of curvature
is re-calculated. This has a considerable effect
on tracking time. (Default: 0.1 m)
37 Superposition of many multipole components
is permitted.
39 geometry
and a $(x,s,z)$ Frenet-Serret coordinate
system for curved geometry. In the latter
case, the axis $\
hat{s}$
is the central axis of the
magnet.
42 \ifthenelse{\boolean{ShowMap}}{\seefig{
straight}}{}.
45 of 2 Tesla
and a quadrupole gradient of 0.1 Tesla/m.
52 V = z f_0(x,s) + \frac{z^3}{3!} f_1(x,s) + \frac{z^5}{5!} f_2(x,s) +
\dots
54 Mid-plane symmetry
is assumed
and the vertical
component of the field
on the mid-plane
is given by the user under the form of the transverse profile $T(x)$. The full expression
for the vertical
component is then
56 B_z = f_0 =
T(x) \cdot S(s)
58 where $S(s)$
is the fringe field. This element uses the Tanh model
for the
end fields, having only three
parameters (the centre length $s_0$
and the fringe field lengths $\lambda_{left}$, $\lambda_{right}$):
60 S(s) = \frac{1}{2} \left[ tanh \left( \frac{s + s_0}{\lambda_{left}} \right) -
61 tanh \left( \frac{s - s_0}{\lambda_{right}} \right) \right]
63 Starting from Maxwell
's laws, the functions $f_n$ are computed recursively and finally each component of the magnetic field is obtained from $V$ using the corresponding geometries.
units but all components up to the maximum must be even if they are zero item[MAXFORDER] The order of the maximum function $f_n used in the field expansion(default:5).See the scalar magnetic potential below.This sets for example the maximum power of $z $in the field expansion of vertical component $B_z $to $2\cdot\text
item[EANGLE] Entrance edge angle(radians).\item[ROTATION] Rotation of the magnet about its central axis(radians
we have to be quite careful how things are indexed For example
the intent is to exercise the right to control the distribution of derivative or collective works based on the Program In mere aggregation of another work not based on the Program with the under Section in object code or executable form under the terms of Sections and above provided that you also do one of the following
T rad(T x)
Convert degrees to radians.
clearpage the user may choose between constant or variable radius This model includes fringe fields ANGLE
clearpage the user may choose between constant or variable radius This model includes fringe fields VARRADIUS
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is and will automatically terminate your rights under this License parties who have received or from you under this License will not have their licenses terminated so long as such parties remain in full compliance You are not required to accept this since you have not signed it nothing else grants you permission to modify or distribute the Program or its derivative works These actions are prohibited by law if you do not accept this License by modifying or distributing the you indicate your acceptance of this License to do and all its terms and conditions for distributing or modifying the Program or works based on it Each time you redistribute the the recipient automatically receives a license from the original licensor to distribute or modify the Program subject to these terms and conditions You may not impose any further restrictions on the recipients exercise of the rights granted herein You are not responsible for enforcing compliance by third parties to this License If
item[EANGLE] Entrance edge counterclockwise This enables to obtain skew at each point along the its radius is computed such that the reference trajectory always remains in the centre of the magnet In the body of the magnet the radius is set from the LENGTH and ANGLE attributes It is then continuously changed to be proportional to the dipole field on the reference trajectory while entering the end fields This attribute is only to be set TRUE for a non zero dipole component(Default:FALSE)\item[VARSTEP] The step size(meters) used in calculating the reference trajectory for VARRARDIUS
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
units but all components up to the maximum must be given
clearpage the user may choose between constant or variable radius This model includes fringe fields VAPERT
clearpage the user may choose between constant or variable radius This model includes fringe fields RFRINGE
Interface for general multipole.
clearpage the user may choose between constant or variable radius This model includes fringe fields begin
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that they
Tps< T > tanh(const Tps< T > &x)
Hyperbolic tangent.
clearpage the user may choose between constant or variable radius This model includes fringe fields L
clearpage the user may choose between constant or variable radius This model includes fringe fields TP
item[EANGLE] Entrance edge counterclockwise This enables to obtain skew at each point along the its radius is computed such that the reference trajectory always remains in the centre of the magnet In the body of the magnet the radius is set from the LENGTH and ANGLE attributes It is then continuously changed to be proportional to the dipole field on the reference trajectory while entering the end fields This attribute is only to be set TRUE for a non zero dipole the axis hat
set(_SRCS Action.cpp Attribute.cpp AttributeBase.cpp AttributeHandler.cpp BeamSequence.cpp Definition.cpp Directory.cpp Element.cpp Invalidator.cpp OpalData.cpp Object.cpp ObjectFunction.cpp PlaceRep.cpp RangeRep.cpp Table.cpp TableRowRep.cpp ValueDefinition.cpp) include_directories($
clearpage the user may choose between constant or variable radius This model includes fringe fields LFRINGE
having only three parameters(the centre length $s_0 $and the fringe field lengths $\lambda_{left}$,$\lambda_{right}$)
without end fields(Default:1 m)\item[ANGLE] Physical angle of the magnet(radians).If not specified
without end the magnet is considered to be straight(ANGLE=0.0).This is not the total bending angle since the end fields cause additional bending.The radius of the multipole is set from the LENGTH and ANGLE attributes.\item[VAPERT] Vertical(non-bend plane) aperture of the magnet(meters).(Default
PETE_TTTree< OpWhere, typename Cond_t::PETE_Expr_t, typename True_t::PETE_Expr_t, PETE_Scalar< Vektor< T, Dim > > > where(const PETE_Expr< Cond_t > &c, const PETE_Expr< True_t > &t, const Vektor< T, Dim > &f)
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE See the GNU General Public License for more details IMPORTANT which obligates you to give appropriate credit!If you write a scientific paper describing research that made substantive use of this it is your obligation as a scientist to(a) mention the fashion in which this software was used in the Methods section
b mention the algorithm in the References section The appropriate citation is
clearpage the user may choose between constant or variable radius This model includes fringe fields HAPERT
Tps< T > sec(const Tps< T > &x)
Secant.
this section has the sole purpose of protecting the integrity of the free software distribution system
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The below
FLieGenerator< T, N > real(const FLieGenerator< std::complex< T >, N > &)
Take real part of a complex generator.
MMatrix< double > re(MMatrix< m_complex > mc)
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed on
item[EANGLE] Entrance edge counterclockwise This enables to obtain skew at each point along the magnet