src issueshttps://gitlab.psi.ch/OPAL/src/-/issues2017-12-18T18:21:19+01:00https://gitlab.psi.ch/OPAL/src/-/issues/25SBEND3D - Local and Global Frame: different particle trajectories2017-12-18T18:21:19+01:00Valeria RizzoglioSBEND3D - Local and Global Frame: different particle trajectoriesThe tracking of the particles in the **LOCAL frame** reveals different behavior with respect to the **GLOBAL frame**
**Field Map**
* 120° Combined Function Magnet
* Reference energy: 230 MeV
**Beam distribution**
* From file...The tracking of the particles in the **LOCAL frame** reveals different behavior with respect to the **GLOBAL frame**
**Field Map**
* 120° Combined Function Magnet
* Reference energy: 230 MeV
**Beam distribution**
* From file: 10000 protons
* First 12 particles are:
```
#ID0: Reference particle
#ID1: Reference particle
#ID2 - #ID9: Particles with defined position and divergence offsets
#ID10: Off-momemtum particle (-11.5 % ) -> py = -0.08531
#ID11: Off-momemtum particle (+13.5 %) -> py = 0.1001511
#ID12: Dispersion function (1 %) -> py = 0.0074186
```
**Tracking** for particles #ID1 (reference), #ID10 and #ID11 (with momentum shift)
* **Global Frame**
![GlobalFrame](/uploads/3ade8aaf8db834db004c57cf8d1e49fa/GlobalFrame.png)
* **Local Frame**
![LocalFrame](/uploads/f079b9a5ee7e43b0918223b3d415f4ba/LocalFrame.png)
**Conclusion**
The particle trajectories in the **LOCAL frame**:
* show a "jump" at 3.8 m, where the field map ends.
* cross the reference trajectory, while in the **GLOBAL frame** the trajectory are separatedOPAL 1.5.2ext-rogers_cext-rogers_chttps://gitlab.psi.ch/OPAL/src/-/issues/33compilation of branch OPAL-1.6 fails if DKS is enabled2020-04-02T09:16:08+02:00gsellcompilation of branch OPAL-1.6 fails if DKS is enabledIf DKS is enables compilation fails on the OPAL-1.6 branch:
```
/opt/tmp/gsell/src/OPAL-1.5.1-20170210/src/Classic/Solvers/CollimatorPhysics.cpp: In member function ‘void CollimatorPhysics::setupCollimatorDKS(PartBunch&, Degrader*, size_...If DKS is enables compilation fails on the OPAL-1.6 branch:
```
/opt/tmp/gsell/src/OPAL-1.5.1-20170210/src/Classic/Solvers/CollimatorPhysics.cpp: In member function ‘void CollimatorPhysics::setupCollimatorDKS(PartBunch&, Degrader*, size_t)’:
/opt/tmp/gsell/src/OPAL-1.5.1-20170210/src/Classic/Solvers/CollimatorPhysics.cpp:1081:47: error: ‘class Degrader’ has no member named ‘getZSize’
double params[numpar] = {zBegin, deg->getZSize(), rho_m, Z_m,
```
Without DKS it compiles without problems.OPAL 1.5.2https://gitlab.psi.ch/OPAL/src/-/issues/12Implement ENABLEDKS as command line option2017-02-03T17:31:32+01:00gsellImplement ENABLEDKS as command line optionThe option ENABLEDKS must be removed from the OPAL input file and implemented as command line switch '--use-dks'The option ENABLEDKS must be removed from the OPAL input file and implemented as command line switch '--use-dks'OPAL 1.5.2