Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dt
exercises
pyat
Commits
1b7072b1
Commit
1b7072b1
authored
1 year ago
by
Claudio Scafuri
Browse files
Options
Downloads
Patches
Plain Diff
add comprehensive ringparametes calc. and display
parent
f944d6dd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
elettra2test.py
+6
-0
6 additions, 0 deletions
elettra2test.py
elettratest.py
+5
-0
5 additions, 0 deletions
elettratest.py
with
11 additions
and
0 deletions
elettra2test.py
+
6
−
0
View file @
1b7072b1
...
...
@@ -65,3 +65,9 @@ iq = ring.uint32_refpts('QD_S05_02')[0] # use also pattern matching idf needed
TM
=
at
.
find_elem_m66
(
ring
[
iq
])
# get 6x6 transport materix
# get global ring parameters
ring
.
radiation_on
()
ringparams
=
ring
.
radiation_parameters
()
ringparams
=
ring
.
envelope_parameters
(
params
=
ringparams
)
print
(
ringparams
)
This diff is collapsed.
Click to expand it.
elettratest.py
+
5
−
0
View file @
1b7072b1
...
...
@@ -55,3 +55,8 @@ mp.show()
print
(
'
tune H:
'
,
tuneH
,
'
tune V:
'
,
tuneV
)
print
(
'
chrom H:
'
,
chromH
,
'
chromV:
'
,
chromV
)
print
(
'
E:
'
,
e_eV
/
1e9
,
'
GeV
'
)
ring
.
radiation_on
()
ringparams
=
ring
.
radiation_parameters
()
ringparams
=
ring
.
envelope_parameters
(
params
=
ringparams
)
print
(
ringparams
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment