Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
S src
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • src
  • Issues
  • #162

Closed
Open
Created Sep 04, 2017 by Valeria Rizzoglio@rizzoglio_v

K0 attribute in RBend

It seems that the attribute K0 (to set the magnetic field) is not working in the RBend element. In the regression test, if I am not wrong, only the Angle attribute is tested.

From a simple RBend test:

1- if ANGLE attribute is used

RBend [2]> 1DPROFILE1-DEFAULT (1D Profile type 1)
RBend [2]> BEND using file 1DPROFILE1-DEFAULT (1D Profile type 1)
RBend [2]> 
RBend [2]> Start of field map:      0.146472 m (in s coordinates)
RBend [2]> End of field map:        0.484418 m (in s coordinates)
RBend [2]> Entrance edge of magnet: 0.25 m (in s coordinates)
RBend [2]> 
RBend [2]> Reference Trajectory Properties
RBend [2]> ===============================
RBend [2]> 
RBend [2]> Bend angle magnitude:    0.523599 rad (30 degrees)
RBend [2]> Entrance edge angle:     0.261799 rad (15 degrees)
RBend [2]> Exit edge angle:         0.261799 rad (15 degrees)
RBend [2]> Bend design radius:      0.249982 m
RBend [2]> Bend design energy:      7e+06 eV
RBend [2]> 
RBend [2]> Bend Field and Rotation Properties
RBend [2]> ==================================
RBend [2]> 
RBend [2]> Field amplitude:         1.53217 T
RBend [2]> Field index:  0
RBend [2]> Rotation about x axis:   0 rad (0 degrees)
RBend [2]> Rotation about y axis:   0 rad (0 degrees)
RBend [2]> Rotation about z axis:   0 rad (0 degrees)
RBend [2]> 
RBend [2]> Reference Trajectory Properties Through Bend Magnet with Fringe Fields
RBend [2]> ======================================================================
RBend [2]> 
RBend [2]> Reference particle is bent: 0.523599 rad (30 degrees) in x plane
RBend [2]> Reference particle is bent: 0 rad (0 degrees) in y plane
RBend [2]> 

2- if K0 attribute is used:

RBend [2]> 1DPROFILE1-DEFAULT (1D Profile type 1)
RBend [2]> BEND using file 1DPROFILE1-DEFAULT (1D Profile type 1)
RBend [2]> 
RBend [2]> Start of field map:      0.146472 m (in s coordinates)
RBend [2]> End of field map:        -nan m (in s coordinates)
RBend [2]> Entrance edge of magnet: 0.25 m (in s coordinates)
RBend [2]> 
RBend [2]> Reference Trajectory Properties
RBend [2]> ===============================
RBend [2]> 
RBend [2]> Bend angle magnitude:    -nan rad (-nan degrees)
RBend [2]> Entrance edge angle:     0.261799 rad (15 degrees)
RBend [2]> Exit edge angle:         -0.261799 rad (-15 degrees)
RBend [2]> Bend design radius:      0.25001 m
RBend [2]> Bend design energy:      7e+06 eV
RBend [2]> 
RBend [2]> Bend Field and Rotation Properties
RBend [2]> ==================================
RBend [2]> 
RBend [2]> Field amplitude:         1.532 T
RBend [2]> Field index:  0
RBend [2]> Rotation about x axis:   0 rad (0 degrees)
RBend [2]> Rotation about y axis:   0 rad (0 degrees)
RBend [2]> Rotation about z axis:   0 rad (0 degrees)
RBend [2]> 
RBend [2]> Reference Trajectory Properties Through Bend Magnet with Fringe Fields
RBend [2]> ======================================================================
RBend [2]> 
RBend [2]> Reference particle is bent: -0 rad (-0 degrees) in x plane
RBend [2]> Reference particle is bent: 0 rad (0 degrees) in y plane
RBend [2]> 

Could, please, someone check?

Assignee
Assign to
OPAL 2.0.0
Milestone
OPAL 2.0.0
Assign milestone
Time tracking