Skip to content

Commit

Permalink
Merge pull request #176 from lnls-sirius/update-ts-cvs
Browse files Browse the repository at this point in the history
Update TS CVs limits
  • Loading branch information
xresende authored Jun 23, 2020
2 parents b2746b5 + 6734f90 commit 7676bf4
Show file tree
Hide file tree
Showing 12 changed files with 269 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.6.0
85 changes: 85 additions & 0 deletions magnet/excitation-data/ts-corrector-cv-hlim.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# HEADER
# ======
# label ts-correctors-cv-hlim
# harmonics 0 1 2 3 4 5 6 7 8 9 10 11
# main_harmonic 0 skew
# rescaling_factor 1.0
# units Ampere T*m T*m T T T/m T/m T/m^2 T/m^2 T/m^3 T/m^3 T/m^4 T/m^4 T/m^5 T/m^5 T/m^6 T/m^6 T/m^7 T/m^7 T/m^8 T/m^8 T/m^9 T/m^9 T/m^10 T/m^10

# EXCITATION DATA
# ===============
-12.0000 -7.0394e-06 +3.9847e-03 -1.2799e-04 -1.5743e-04 -7.0540e-04 -4.4969e-02 -3.7887e-01 +1.3923e-02 +1.2091e+01 -9.7713e+01 +1.3063e+03 +2.7855e+02 +4.1019e+04 +5.5856e+05 +2.2115e+06 +3.1175e+06 +5.0361e+07 -2.0316e+08 -1.5022e+10 -2.5424e+09 -9.9624e+10 -9.5160e+10 +3.4049e+13 +4.9565e+13
-10.0000 -6.3454e-06 +3.3313e-03 -1.5701e-04 -1.6067e-04 -1.3510e-03 -3.9737e-02 -1.9521e-01 -6.9199e-02 +5.7287e+00 -7.5805e+01 +8.5960e+02 +6.1195e+02 +4.5649e+04 +4.6640e+05 +1.0300e+06 +8.2068e+05 -4.1502e+06 -5.3642e+07 -6.9884e+09 -1.4953e+09 +5.4172e+10 -6.4654e+11 +4.8996e+12 +1.1464e+13
-09.0000 -5.9984e-06 +3.0046e-03 -1.7152e-04 -1.6229e-04 -1.6738e-03 -3.7121e-02 -1.0338e-01 -1.1076e-01 +2.5475e+00 -6.4851e+01 +6.3623e+02 +7.7865e+02 +4.7964e+04 +4.2032e+05 +4.3923e+05 -3.2774e+05 -3.1406e+07 +2.1116e+07 -2.9714e+09 -9.7173e+08 +1.3107e+11 -9.2223e+11 -9.6751e+12 -7.5865e+12
-07.0000 -5.8720e-06 +2.3451e-03 -2.0455e-04 -1.3128e-04 -8.0163e-04 -2.9761e-02 -8.3611e-02 -1.1102e-01 -4.5752e+00 -5.1434e+01 +8.0317e+02 +1.2191e+02 +1.5018e+04 +3.1670e+05 -7.7539e+05 +6.6740e+05 +7.6235e+07 +1.9177e+07 -3.8512e+09 -1.8806e+09 -1.9907e+11 -5.5866e+11 -4.6883e+12 +8.9981e+12
-05.0000 -5.5509e-06 +1.6829e-03 -2.1476e-04 -1.2325e-04 -2.5148e-03 -2.2965e-02 -2.1322e-01 -6.5922e-02 +3.5920e+00 -3.9366e+01 +4.8709e+02 +4.9152e+02 +9.9697e+03 +2.5270e+05 +3.7998e+05 -2.7622e+05 +5.6754e+07 -8.2591e+05 -1.8544e+09 +1.6261e+09 -7.6297e+10 -4.8898e+11 +1.1230e+12 -4.5530e+12
-03.0000 -4.9583e-06 +1.0181e-03 -2.5667e-04 -1.2904e-04 -2.2030e-03 -1.5041e-02 -6.5669e-02 -6.0562e-02 -1.1588e+00 -2.4650e+01 +2.3139e+02 +5.5761e+01 +6.6406e+03 +1.4830e+05 +1.1199e+05 +6.6710e+05 +1.5292e+07 +2.8650e+06 -1.2413e+09 -4.3212e+08 +2.9578e+10 -1.9037e+11 -3.2561e+11 +1.5516e+12
-01.0000 -4.7769e-06 +3.5187e-04 -2.9625e-04 -1.1471e-04 -2.5664e-03 -7.3780e-03 -4.8995e-02 -4.2538e-02 -2.1721e+00 -8.1360e+00 +3.4651e+01 +6.5659e+01 +3.6966e+03 +5.3010e+04 +3.1856e+04 +1.7465e+05 +1.2534e+06 -4.0060e+06 -4.5945e+08 -1.6483e+08 +1.8169e+10 -5.6110e+10 +1.1160e+12 +1.1153e+12
+00.0000 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00
+01.0000 -4.5206e-06 -3.2900e-04 -3.1460e-04 -9.9896e-05 -2.0803e-03 +9.9181e-04 -3.7930e-02 -6.3427e-02 -4.4696e+00 +6.1921e+00 -1.7384e+02 +9.1883e+00 -5.1695e+03 -4.4905e+04 -1.7215e+04 +6.8595e+04 -1.5302e+07 +8.4848e+06 +4.5477e+08 +1.7981e+08 +2.1314e+10 +7.3756e+10 +1.0109e+12 +4.2933e+11
+03.0000 -4.3583e-06 -9.9115e-04 -3.4141e-04 -8.8182e-05 -2.1455e-03 +7.7918e-03 +4.2734e-03 -4.6721e-02 -6.0191e+00 +2.2799e+01 -3.6905e+02 -1.4779e+02 -1.3125e+04 -1.4011e+05 -1.9928e+05 +1.3131e+04 +2.8389e+06 +9.0402e+06 +5.6451e+08 -2.1788e+08 +4.7364e+10 +1.9503e+11 +3.0564e+12 +8.7182e+11
+05.0000 -4.0785e-06 -1.6573e-03 -3.7343e-04 -7.9640e-05 -1.9855e-03 +1.6063e-02 -6.6648e-03 -2.5240e-02 -7.4599e+00 +3.6812e+01 -5.7098e+02 -1.8430e+02 -2.4646e+04 -2.3754e+05 -1.5877e+05 +3.2168e+04 -8.2969e+06 +2.2105e+07 +1.7717e+09 +7.6178e+08 +6.5139e+09 +3.2476e+11 +1.7463e+12 +1.4484e+12
+07.0000 -4.0239e-06 -2.3258e-03 -3.9883e-04 -5.9668e-05 -6.7952e-04 +2.4206e-02 +8.7375e-02 -3.5275e-02 -9.4051e+00 +4.9105e+01 -9.5549e+02 -1.9682e+02 -3.6338e+04 -3.1905e+05 -6.8184e+05 +1.9864e+05 -3.9740e+06 +1.8368e+07 +4.5588e+09 +1.3881e+09 -2.8154e+10 +4.1669e+11 -3.7967e+12 -3.2687e+12
+09.0000 -3.5253e-06 -2.9955e-03 -4.2844e-04 -5.8612e-05 -2.1795e-03 +3.2066e-02 +3.7100e-02 +4.6485e-02 -1.0081e+01 +6.8831e+01 -6.6323e+02 -5.2557e+02 -3.5887e+04 -4.3783e+05 -9.7014e+05 -2.5716e+05 -3.8946e+07 -4.3286e+06 +3.3605e+09 +2.7596e+09 +4.7639e+10 +6.9951e+11 +3.6438e+11 -2.8990e+12
+10.0000 -3.3724e-06 -3.3302e-03 -4.2446e-04 -4.5361e-05 -2.1691e-03 +3.4143e-02 +8.7949e-02 -3.2585e-03 -1.1711e+01 +7.6123e+01 -1.4125e+03 -5.4089e+02 -5.6408e+04 -4.7627e+05 +2.7895e+05 +3.1826e+05 -2.6693e+07 +2.2257e+07 +1.0875e+09 -1.1298e+09 +2.5563e+11 +6.9972e+11 +3.5130e+12 +6.8131e+12
+12.0000 -3.0666e-06 -3.9996e-03 -4.1650e-04 -1.8859e-05 -2.1483e-03 +3.8297e-02 +1.8965e-01 -1.0275e-01 -1.4971e+01 +9.0707e+01 -2.9110e+03 -5.7153e+02 -9.7450e+04 -5.5315e+05 +2.7771e+06 +1.4691e+06 -2.1870e+06 +7.5428e+07 -3.4585e+09 -8.9086e+09 +6.7161e+11 +7.0014e+11 +9.8102e+12 +2.6237e+13

# COMMENTS
# ========
# 1. copied from ts-corrector-cv.txt. Points -12A and 12A were added by linearly extrapolating data using nearest two points.
# 2. data taken from rotcoil measurements
# 3. average excitation curves for magnets:
# BC-004 BC-007 BC-006 BC-002
#

# POLARITY TABLE
# ==============
#
# Magnet function | IntStrength(1) | IntField(2) | ConvSign(3) | Current(4)
# ------------------------|----------------|-------------|-------------|-----------
# dipole | Angle > 0 | BYL < 0 | -1.0 | I > 0
# corrector-horizontal | HKick > 0 | BYL > 0 | +1.0 | I > 0
# corrector-vertical | VKick > 0 | BXL < 0 | -1.0 | I > 0
# quadrupole (focusing) | KL > 0 | D1NL < 0 | -1.0 | I > 0
# quadrupole (defocusing) | KL < 0 | D1NL > 0 | -1.0 | I > 0
# quadrupole (skew) | KL < 0 | D1SL > 0 | -1.0 | I > 0
# sextupole (focusing) | SL > 0 | D2NL < 0 | -1.0 | I > 0
# sextupole (defocusing) | SL < 0 | D2NL > 0 | -1.0 | I > 0
#
# Defs:
# ----
# BYL := \int{dz By|_{x=y=0}}.
# BXL := \int{dz Bx|_{x=y=0}}.
# D1NL := \int{dz \frac{dBy}{dx}_{x=y=0}}
# D2NL := (1/2!) \int{dz \frac{d^2By}{dx^2}_{x=y=0}}
# D1SL := \int{dz \frac{dBx}{dx}_{x=y=0}}
# Brho := magnetic rigidity.
# Angle := ConvSign * BYL / abs(Brho)
# HKick := ConvSign * BYL / abs(Brho)
# VKick := ConvSign * BXL / abs(Brho)
# KL := ConvSign * D1NL / abs(Brho)
# KL := ConvSign * D1SL / abs(Brho)
# SL := ConvSign * D2NL / abs(Brho)
#
# Obs:
# ---
# (1) Parameter definition.
# IntStrength values correspond to integrated PolynomA and PolynomB parameters
# of usual beam tracking codes, with the exception that VKick has its sign
# reversed with respecto to its corresponding value in PolynomA.
# (2) Sirius coordinate system and Lorentz force.
# (3) Conversion sign for IntField <-> IntStrength
# (4) Convention of magnet excitation polarity, so that when I > 0 the strength
# of the magnet has the expected conventional sign.

# STATIC DATA FILE FORMAT
# =======================
#
# These static data files should comply with the following formatting rules:
# 1. If the first alphanumeric character of the line is not the pound sign
# then the lines is a comment.
# 2. If the first alphanumeric character is "#" then if
# a) it is followed by "[<parameter>] <value>" a parameter names <parameter>
# is define with value <value>. if the string <value> has spaces in it
# it is split as a list of strings.
# b) otherwise the line is ignored as a comment line.
84 changes: 84 additions & 0 deletions magnet/excitation-data/ts-corrector-cv-strong-hlim.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# HEADER
# ======
# label ts-correctors-cv-strong-hlim
# harmonics 0 1 2 3 4 5 6 7 8 9 10 11
# main_harmonic 0 skew
# rescaling_factor 1.0
# units Ampere T*m T*m T T T/m T/m T/m^2 T/m^2 T/m^3 T/m^3 T/m^4 T/m^4 T/m^5 T/m^5 T/m^6 T/m^6 T/m^7 T/m^7 T/m^8 T/m^8 T/m^9 T/m^9 T/m^10 T/m^10

# EXCITATION DATA
# ===============
-12.0000 -6.7666e-06 +4.0601e-03 -2.6919e-05 -1.2174e-04 -1.8624e-03 -3.0888e-02 -2.5836e-01 -1.4794e-01 +4.9083e+00 -9.4365e+01 +1.4545e+03 +5.7185e+02 +2.1919e+04 +5.7101e+05 +1.5119e+06 +5.4871e+05 +3.8394e+07 +5.0198e+06 -2.5410e+09 +1.2502e+09 +1.2861e+11 -9.8738e+11 +5.4653e+11 +1.0518e+12
-10.0000 -6.7644e-06 +3.3953e-03 -4.6191e-05 -1.0972e-04 -1.8600e-03 -2.7392e-02 -1.6084e-01 -7.5962e-02 +2.8095e+00 -7.8919e+01 +1.2477e+03 +1.9214e+02 +1.6107e+04 +4.7639e+05 +4.4734e+05 +3.6841e+05 +1.0663e+07 -8.0213e+05 -3.4918e+09 +2.2113e+08 +6.4714e+10 -6.9718e+11 -3.1169e+11 +2.0414e+12
-09.0000 -6.7633e-06 +3.0629e-03 -5.5827e-05 -1.0371e-04 -1.8588e-03 -2.5644e-02 -1.1208e-01 -3.9971e-02 +1.7601e+00 -7.1196e+01 +1.1443e+03 +2.2833e+00 +1.3201e+04 +4.2908e+05 -8.4928e+04 +2.7826e+05 -3.2023e+06 -3.7131e+06 -3.9672e+09 -2.9340e+08 +3.2764e+10 -5.5208e+11 -7.4080e+11 +2.5362e+12
-07.0000 -6.3586e-06 +2.3910e-03 -8.1627e-05 -9.2195e-05 -2.3796e-03 -2.0520e-02 -1.2479e-01 -3.5255e-02 +1.8955e+00 -5.6435e+01 +9.5948e+02 +3.0630e+01 +1.2499e+04 +3.4174e+05 +7.0971e+04 +3.9596e+05 +9.6127e+06 -6.8509e+06 -2.4349e+09 +1.9055e+08 -4.5450e+10 -4.5095e+11 +1.0733e+12 +1.0479e+12
-05.0000 -6.1493e-06 +1.7155e-03 -1.1356e-04 -9.3542e-05 -2.0167e-03 -1.5726e-02 -1.2295e-01 -7.0718e-02 +1.6842e+00 -4.0847e+01 +6.3071e+02 +9.5468e+01 +8.6921e+03 +2.4049e+05 +6.4118e+04 +5.3443e+05 +1.8222e+06 -7.8166e+06 -2.0620e+09 -7.8645e+08 -5.4154e+08 -3.4894e+11 +1.2036e+12 +2.6909e+11
-03.0000 -5.6921e-06 +1.0379e-03 -1.2259e-04 -7.2480e-05 -1.7615e-03 -1.0369e-02 -8.0410e-02 -3.6523e-02 -8.1382e-01 -2.5324e+01 +3.8580e+02 +5.1750e+01 +1.6861e+03 +1.4552e+05 +1.4882e+05 +2.0099e+05 -2.2477e+06 -2.3415e+06 -1.3317e+09 -2.8962e+08 +1.3452e+10 -2.1400e+11 -5.3653e+11 +1.2523e+12
-01.0000 -5.3111e-06 +3.5919e-04 -1.5319e-04 -6.0555e-05 -1.9734e-03 -4.8995e-03 -8.0442e-02 -4.8195e-02 -1.4012e+00 -8.8265e+00 +6.1735e+01 -7.2649e+01 +1.4485e+03 +5.4414e+04 +2.9735e+05 +3.3321e+05 -2.8720e+06 +1.0226e+07 -1.1940e+08 +4.5130e+08 -4.9552e+09 -6.4713e+10 -1.4692e+12 +9.7386e+11
+00.0000 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00 +0.0000e+00
+01.0000 -5.3161e-06 -3.3243e-04 -1.7394e-04 -4.9503e-05 -1.4169e-03 +9.0104e-04 -2.4986e-02 -4.0158e-02 -1.6592e+00 +8.5958e+00 -1.9207e+02 +2.4827e+01 -1.1972e+03 -4.4830e+04 +3.6571e+04 +6.5015e+04 -8.0631e+06 +2.3132e+06 +5.1797e+08 +7.5641e+08 -4.7576e+08 +4.7969e+10 +4.5062e+11 +1.1617e+12
+03.0000 -5.0406e-06 -1.0074e-03 -1.8305e-04 -4.4396e-05 -1.9020e-03 +5.8333e-03 -9.3425e-03 -4.7076e-03 -3.9737e+00 +2.4354e+01 -5.1813e+02 +6.8000e+00 -5.4081e+03 -1.4106e+05 +2.2082e+04 -1.2404e+05 -1.5684e+07 +1.7245e+07 +8.9295e+08 +3.7296e+08 -3.1951e+09 +1.7920e+11 -4.2084e+11 -8.2998e+11
+05.0000 -4.6590e-06 -1.6864e-03 -2.2040e-04 -3.2091e-05 -1.4794e-03 +1.1243e-02 +2.2462e-02 -1.6436e-02 -4.8281e+00 +3.9138e+01 -7.7586e+02 -1.1844e+02 -1.2690e+04 -2.3700e+05 -8.9230e+03 +1.1503e+05 -5.0954e+06 +1.8532e+07 +1.9615e+09 -1.1620e+08 +2.9404e+10 +3.4077e+11 +3.8058e+11 +1.1488e+11
+07.0000 -4.2110e-06 -2.3676e-03 -2.4455e-04 -3.1199e-05 -1.3350e-03 +1.6704e-02 +4.3038e-02 -1.5864e-02 -3.5086e+00 +5.4314e+01 -1.0640e+03 -3.5485e+01 -1.6550e+04 -3.3378e+05 -1.5716e+05 -7.6237e+03 +4.0061e+06 +8.8098e+06 +2.2111e+09 -3.8903e+08 +1.3849e+10 +4.9359e+11 +1.8392e+12 +1.0808e+12
+09.0000 -4.0495e-06 -3.0502e-03 -2.6734e-04 -1.3876e-05 -1.9915e-03 +2.1989e-02 +7.8787e-02 -1.8943e-02 -4.9539e+00 +7.1178e+01 -1.1834e+03 -1.1900e+02 -1.7025e+04 -4.2568e+05 -9.2578e+04 +3.0315e+05 -7.8135e+06 +8.7321e+06 +2.4645e+09 +5.9892e+08 -1.2489e+10 +5.8943e+11 +2.8015e+12 +4.5015e+11
+10.0000 -4.3490e-06 -3.3928e-03 -2.6926e-04 +5.8537e-06 -6.5927e-04 +2.4524e-02 +9.2784e-02 -2.8244e-02 -5.8468e+00 +7.8178e+01 -1.4274e+03 -1.5897e+02 -1.7414e+04 -4.7808e+05 -4.8590e+05 +4.3518e+05 +9.5683e+06 +4.3630e+07 +4.6950e+09 -3.3963e+08 -1.7426e+10 +5.6023e+11 +1.1914e+13 +2.1916e+12
+12.0000 -4.9480e-06 -4.0780e-03 -2.7310e-04 +4.5313e-05 +2.0052e-03 +2.9594e-02 +1.2078e-01 -4.6846e-02 -7.6326e+00 +9.2178e+01 -1.9154e+03 -2.3891e+02 -1.8192e+04 -5.8288e+05 -1.2725e+06 +6.9924e+05 +4.4332e+07 +1.1343e+08 +9.1560e+09 -2.2167e+09 -2.7300e+10 +5.0183e+11 +3.0139e+13 +5.6745e+12

# COMMENTS
# ========
# 1. copied from ts-corrector-cv-strong.txt. Points -12A and 12A were added by linearly extrapolating data using nearest two points.
# 2. data taken from rotcoil measurements
# 3. average excitation curves for magnets:
# BC-030 BC-064

# POLARITY TABLE
# ==============
#
# Magnet function | IntStrength(1) | IntField(2) | ConvSign(3) | Current(4)
# ------------------------|----------------|-------------|-------------|-----------
# dipole | Angle > 0 | BYL < 0 | -1.0 | I > 0
# corrector-horizontal | HKick > 0 | BYL > 0 | +1.0 | I > 0
# corrector-vertical | VKick > 0 | BXL < 0 | -1.0 | I > 0
# quadrupole (focusing) | KL > 0 | D1NL < 0 | -1.0 | I > 0
# quadrupole (defocusing) | KL < 0 | D1NL > 0 | -1.0 | I > 0
# quadrupole (skew) | KL < 0 | D1SL > 0 | -1.0 | I > 0
# sextupole (focusing) | SL > 0 | D2NL < 0 | -1.0 | I > 0
# sextupole (defocusing) | SL < 0 | D2NL > 0 | -1.0 | I > 0
#
# Defs:
# ----
# BYL := \int{dz By|_{x=y=0}}.
# BXL := \int{dz Bx|_{x=y=0}}.
# D1NL := \int{dz \frac{dBy}{dx}_{x=y=0}}
# D2NL := (1/2!) \int{dz \frac{d^2By}{dx^2}_{x=y=0}}
# D1SL := \int{dz \frac{dBx}{dx}_{x=y=0}}
# Brho := magnetic rigidity.
# Angle := ConvSign * BYL / abs(Brho)
# HKick := ConvSign * BYL / abs(Brho)
# VKick := ConvSign * BXL / abs(Brho)
# KL := ConvSign * D1NL / abs(Brho)
# KL := ConvSign * D1SL / abs(Brho)
# SL := ConvSign * D2NL / abs(Brho)
#
# Obs:
# ---
# (1) Parameter definition.
# IntStrength values correspond to integrated PolynomA and PolynomB parameters
# of usual beam tracking codes, with the exception that VKick has its sign
# reversed with respecto to its corresponding value in PolynomA.
# (2) Sirius coordinate system and Lorentz force.
# (3) Conversion sign for IntField <-> IntStrength
# (4) Convention of magnet excitation polarity, so that when I > 0 the strength
# of the magnet has the expected conventional sign.

# STATIC DATA FILE FORMAT
# =======================
#
# These static data files should comply with the following formatting rules:
# 1. If the first alphanumeric character of the line is not the pound sign
# then the lines is a comment.
# 2. If the first alphanumeric character is "#" then if
# a) it is followed by "[<parameter>] <value>" a parameter names <parameter>
# is define with value <value>. if the string <value> has spaces in it
# it is split as a list of strings.
# b) otherwise the line is ignored as a comment line.
72 changes: 72 additions & 0 deletions magnet/excitation-data/ts-quadrupole-q14-cv-hlim.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# HEADER
# ======
# label ts-quadrupole-q14-cv-hlim.txt
# harmonics 0
# main_harmonic 0 normal
# rescaling_factor 1.0
# units Ampere T*m T*m

# EXCITATION DATA
# ===============
-012.0000 +0.0000e+00 +3.6000e-03
-010.0000 +0.0000e+00 +3.0000e-03
+010.0000 +0.0000e+00 -3.0000e-03
+012.0000 +0.0000e+00 -3.6000e-03

# COMMENTS
# ========
# 1. arbitrary excitation curve. pending model results. Points -12A and 12A were added by linearly extrapolating data using nearest two points.
# 2. copied from ts-quadrupole-q14-cv.txt
# 3. !!! THIS FILE MUST BE UPDATED WITH MEASUREMENTS !!!

# POLARITY TABLE
# ==============
#
# Magnet function | IntStrength(1) | IntField(2) | ConvSign(3) | Current(4)
# ------------------------|----------------|-------------|-------------|-----------
# dipole | Angle > 0 | BYL < 0 | -1.0 | I > 0
# corrector-horizontal | HKick > 0 | BYL > 0 | +1.0 | I > 0
# corrector-vertical | VKick > 0 | BXL < 0 | -1.0 | I > 0
# quadrupole (focusing) | KL > 0 | D1NL < 0 | -1.0 | I > 0
# quadrupole (defocusing) | KL < 0 | D1NL > 0 | -1.0 | I > 0
# quadrupole (skew) | KL < 0 | D1SL > 0 | -1.0 | I > 0
# sextupole (focusing) | SL > 0 | D2NL < 0 | -1.0 | I > 0
# sextupole (defocusing) | SL < 0 | D2NL > 0 | -1.0 | I > 0
#
# Defs:
# ----
# BYL := \int{dz By|_{x=y=0}}.
# BXL := \int{dz Bx|_{x=y=0}}.
# D1NL := \int{dz \frac{dBy}{dx}_{x=y=0}}
# D2NL := (1/2!) \int{dz \frac{d^2By}{dx^2}_{x=y=0}}
# D1SL := \int{dz \frac{dBx}{dx}_{x=y=0}}
# Brho := magnetic rigidity.
# Angle := ConvSign * BYL / abs(Brho)
# HKick := ConvSign * BYL / abs(Brho)
# VKick := ConvSign * BXL / abs(Brho)
# KL := ConvSign * D1NL / abs(Brho)
# KL := ConvSign * D1SL / abs(Brho)
# SL := ConvSign * D2NL / abs(Brho)
#
# Obs:
# ---
# (1) Parameter definition.
# IntStrength values correspond to integrated PolynomA and PolynomB parameters
# of usual beam tracking codes, with the exception that VKick has its sign
# reversed with respecto to its corresponding value in PolynomA.
# (2) Sirius coordinate system and Lorentz force.
# (3) Conversion sign for IntField <-> IntStrength
# (4) Convention of magnet excitation polarity, so that when I > 0 the strength
# of the magnet has the expected conventional sign.

# STATIC DATA FILE FORMAT
# =======================
#
# These static data files should comply with the following formatting rules:
# 1. If the first alphanumeric character of the line is not the pound sign
# then the lines is a comment.
# 2. If the first alphanumeric character is "#" then if
# a) it is followed by "[<parameter>] <value>" a parameter names <parameter>
# is define with value <value>. if the string <value> has spaces in it
# it is split as a list of strings.
# b) otherwise the line is ignored as a comment line.
6 changes: 6 additions & 0 deletions pwrsupply/pstypes-data/ts-corrector-cv-hlim.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# List of power supplies of type ts-corrector-cv-hlim
# ===================================================

# number of power supplies: 1

TS-04:PS-CV-2
6 changes: 6 additions & 0 deletions pwrsupply/pstypes-data/ts-corrector-cv-strong-hlim.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# List of power supplies of type ts-corrector-cv-strong-hlim
# ==========================================================

# number of power supplies: 1

TS-04:PS-CV-1
3 changes: 1 addition & 2 deletions pwrsupply/pstypes-data/ts-corrector-cv-strong.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# List of power supplies of type ts-corrector-cv-strong
# =====================================================

# number of power supplies: 2
# number of power supplies: 1

TS-01:PS-CV-1
TS-04:PS-CV-1
3 changes: 1 addition & 2 deletions pwrsupply/pstypes-data/ts-corrector-cv.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# List of power supplies of type ts-corrector-cv
# ==============================================

# number of power supplies: 4
# number of power supplies: 3

TS-01:PS-CV-2
TS-02:PS-CV
TS-03:PS-CV
TS-04:PS-CV-2
6 changes: 6 additions & 0 deletions pwrsupply/pstypes-data/ts-quadrupole-q14-cv-hlim.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# List of power supplies of type ts-quadrupole-q14-cv-hlim
# ========================================================

# number of power supplies: 1

TS-04:PS-CV-1E2
3 changes: 1 addition & 2 deletions pwrsupply/pstypes-data/ts-quadrupole-q14-cv.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# List of power supplies of type ts-quadrupole-q14-cv
# ===================================================

# number of power supplies: 4
# number of power supplies: 3

TS-01:PS-CV-1E2
TS-02:PS-CV-0
TS-04:PS-CV-0
TS-04:PS-CV-1E2
Loading

0 comments on commit 7676bf4

Please sign in to comment.