source: PSPA/madxPSPA/doc/usrguide/Introduction/elm_edit.html @ 430

Last change on this file since 430 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 1.2 KB
Line 
1<head>
2<title>Editing Element Definitions</title>
3<!-- Changed by: Chris ISELIN, 24-Jan-1997 -->
4<!-- Changed by: Hans Grote, 25-Sep-2002 -->
5</head>
6
7<body bgcolor="#ffffff">
8
9<h1>Editing Element Definitions</h1>
10
11An element definition can be changed in two ways:
12<ul>
13<li> <b>Entering a new definition:</b>
14The element will be replaced in the main beam line expansion.
15<li> <b>Entering the element name together with new attributes:</b>
16The element will be updated in place,
17and the new attribute values will replace the old ones.
18</ul>
19This example shows two ways to change the strength of a quadrupole:
20<pre>
21QF: QUADRUPOLE,L=1,K1=0.01;     ! Original definition of QF
22QF: QUADRUPOLE,L=1,K1=0.02;     ! Replace whole definition of QF
23QF,K1=0.02;                     ! Replace value of K1
24</pre>
25When the type of the element remains the same,
26replacement of an attribute is the more efficient way.
27<p>
28Element definitions can be edited freely.
29The changes do not affect already defined objects which belong to
30its <a href="elm_class.html">element class</a>.
31<p>
32<address>
33<a href="http://www.cern.ch/Hans.Grote/hansg_sign.html">hansg</a>,
34January 24, 1997
35</address>
36
37</body>
Note: See TracBrowser for help on using the repository browser.