Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
BeamDynamics
MatlabOperation
Commits
2a2505ff
Commit
2a2505ff
authored
Jun 27, 2019
by
Simone Liuzzo
Browse files
minitial tune taken in account
parent
f627a6bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
esrf_matlab/movetune.m
View file @
2a2505ff
...
...
@@ -102,11 +102,18 @@ allq_unsort = [iq;iq8;idq];
% get order of quadrupoles components in lattice
[
allq
,
iqa
]
=
sort
(
allq_unsort
);
% get lattice with initial tunes
latinitunes
=
ebs
.
model
(
latmodel
);
%,'reduce',true);
latinitunes
.
settune
(
Q0
,
tunemode
);
% get lattice with final tunes
latnewtunes
=
ebs
.
model
(
latmodel
);
%,'reduce',true);
latnewtunes
.
settune
(
Q1
,
tunemode
);
DGL_
=
latnewtunes
.
get
(
1
,
'qp'
)
-
latmodel
.
get
(
1
,
'qp'
);
D8GL
=
latnewtunes
.
get
(
1
,
'qf8d'
)
-
latmodel
.
get
(
1
,
'qf8d'
);
DqGL
=
latnewtunes
.
get
(
1
,
'dq'
)
-
latmodel
.
get
(
1
,
'dq'
);
% compute difference in gradients
DGL_
=
latnewtunes
.
get
(
1
,
'qp'
)
-
latinitunes
.
get
(
1
,
'qp'
);
D8GL
=
latnewtunes
.
get
(
1
,
'qf8d'
)
-
latinitunes
.
get
(
1
,
'qf8d'
);
DqGL
=
latnewtunes
.
get
(
1
,
'dq'
)
-
latinitunes
.
get
(
1
,
'dq'
);
DGL
=
[
DGL_
;
D8GL
;
DqGL
];
q_group
=
NaN
(
size
(
allq
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment