Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
O OPALManualWiki
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • 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
  • snuverink_j
  • OPALManualWiki
  • Wiki
  • lines

Last edited by Jochem Snuverink Sep 12, 2017
Page history

lines

Table of Contents
  • 1. Beam Lines
    • 1.1. Simple Beam Lines
    • 1.2. Sub-lines

1. Beam Lines

The accelerator to be studied is known to OPAL as a sequence of physical elements called a beam line. A beam line is built from simpler beam lines whose definitions can be nested to any level. A powerful syntax allows to repeat or to reflect pieces of beam lines. Formally a beam line is defined by a LINE command:

label:LINE=(member,...,member);

label see Section [label] gives a name to the beam line for later reference.

Each member may be one of the following:

  • An element label,

  • A beam line label,

  • A sub-line, enclosed in parentheses,

Beam lines can be nested to any level.

1.1. Simple Beam Lines

The simplest beam line consists of single elements:

label:LINE=(member,...,member);

Example:

L:LINE=(A,B,C,D,A,D);
ORIGIN

Position vector of the origin of the line. All elements in this line that are placed using ELEMEDGE use this position as reference.

ORIENTATION

Vector of Tait-Bryan angles [bib:tait-bryan] of the orientation of the line at the origin.

1.2. Sub-lines

Instead of referring to an element, a beam line member can refer to another beam line defined in a separate command. This provides a shorthand notation for sub-lines which occur several times in a beam line. Lines and sub-lines can be entered in any order, but when a line is used, all its sub-lines must be known.

Example:

L:LINE=(A,B,S,B,A,S,A,B);
S:LINE=(C,D,E);

This example produces the following expansion steps:

  1. Replace sub-line S:

    (A,B,(C,D,E),B,A,(C,D,E),A,B)
  2. Omit parentheses:

    A,B,C,D,E,B,A,C,D,E,A,B

valuated to constants immediately.

Clone repository
  • autophase
  • beam command
  • benchmarks
  • control
  • conventions
  • distribution
  • elements
  • fieldmaps
  • fieldsolvers
  • format
  • geometry
  • Home
  • introduction
  • lines
  • opal madx
View All Pages