Changeset 32 in TRACY3 for trunk/tracy/tracy/inc/tracy_global.h


Ignore:
Timestamp:
Apr 9, 2014, 3:50:11 PM (10 years ago)
Author:
zhangj
Message:

active the transport of the twiss functions and orbits of the transfer line.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tracy/tracy/inc/tracy_global.h

    r11 r32  
    33
    44typedef struct globvalrec {
    5   double        dPcommon,       // dp for numerical differentiation 
     5  double        dPcommon,       // dp for numerical differentiation; defined in lattice
    66                dPparticle;     // energy deviation
    77  double        delta_RF;       // RF acceptance
     
    99  double        Omega,
    1010                U0,             // energy lost per turn in keV
    11                 Alphac;         // alphap
     11                Alphac;         // momentum compaction factor
    1212  Vector2       Chrom;          // chromaticities
    13   double        Energy;         // ring energy
    14   long          Cell_nLoc,      // number of elements in a cell
     13  double        Energy;         // ring energy; defined in lattice
     14  long          Cell_nLoc,      // number of elements in a cell (For example, a lattice can have several same cells)
    1515                Elem_nFam,      // number of families
    1616                CODimax;        /* maximum number of cod search before
    1717                                   failing */
    18   double        CODeps;         // precision for closed orbit finder
     18  double        CODeps;         // precision for closed orbit finder; defined in the lattice
    1919  Vector        CODvect;        // closed orbit; beam position at the first element of lattice
    2020 
     
    3535                Vi;             // imaginal par of the eigenvectors
    3636
    37   bool          MatMeth,        // matrix method
     37  bool          MatMeth,        // matrix method or symplectic tracking?
    3838                Cavity_on,      // if true, cavity turned on
    3939                radiation,      // if true, radiation turned on
    40                 emittance,
    41                 quad_fringe,    /* dipole- and quadrupole hard-edge
     40                emittance,       // calculate emittance?
     41                quad_fringe,    /* dipole- and quadrupole hard-edge?
    4242                                   fringe fields. */
    43                 H_exact,        // "small ring" Hamiltonian.
     43                H_exact,        // "small ring" or approximation Hamiltonian?
    4444                pathlength,     // absolute path length
    4545                stable,
     
    105105  mpolArray   PBrnd;     // random scale factor of rms error PBrms gradient, bn and an
    106106  mpolArray   PB;        // total field strength(design,sys,rms) gradient, bn and an
     107  //basic parameters
    107108  int         Porder;    // The highest order in PB
    108109  int         n_design;  // multipole order (design, All = 0, Dip = 1, Quad = 2, Sext = 3, Oct = 4, Dec = 5, Dodec = 6)
    109110  pthicktype  Pthick;    // thick element
    110   // Bending Angles
     111  // dipole type
    111112  double PTx1;           // horizontal entrance angle [deg]
    112113  double PTx2;           // horizontal exit angle [deg]
    113114  double PH1;            // bending curvature of the entrance pole face of dipole, see P116 SAC-75.
    114115  double PH2;            // bending curvature of the exit pole face of dipole, see P116 SAC-75.
    115   double Pgap;           // total magnet gap [m]
    116   double Pirho;          // angle([radian], but in lattice definition, angle is with unit degree)/length of the dipole, 1/rho [1/m]
     116  double Pgap;           // total dipole gap [m]
     117  double Pirho;          // curvature of the dipoles. 1/rho [1/m]
    117118  double Pc0, Pc1, Ps1;  // corrections for roll error of bend
    118119  Matrix AU55,           // Upstream 5x5 matrix
     
    285286                                         maxampl[X_][0] < x < maxampl[X_][1]
    286287                                         maxampl[Y_][0] < y < maxampl[Y_][1] */
    287 };
     288
     289   Vector        CODvect;        //orbit at the end of the lattice element  Added by Jianfeng Zhang @ LAL, 01/04/2014.
     290};
Note: See TracChangeset for help on using the changeset viewer.