Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mbtrack2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PA
Collective Effects
mbtrack2
Commits
2e4f4023
Commit
2e4f4023
authored
1 year ago
by
Naoto Yamamoto
Browse files
Options
Downloads
Patches
Plain Diff
[add] adding DFB_ig_phasor to monitor item
parent
3d3d9d05
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mbtrack2/tracking/monitors/monitors.py
+9
-0
9 additions, 0 deletions
mbtrack2/tracking/monitors/monitors.py
mbtrack2/tracking/rf.py
+8
-0
8 additions, 0 deletions
mbtrack2/tracking/rf.py
with
17 additions
and
0 deletions
mbtrack2/tracking/monitors/monitors.py
+
9
−
0
View file @
2e4f4023
...
...
@@ -1567,6 +1567,10 @@ class CavityMonitor(Monitor):
ring.h,
buffer_size,
),
"
DFB_ig_phasor
"
:(
ring.h,
buffer_size,
),
"
detune
"
: (buffer_size, ),
"
psi
"
: (buffer_size, ),
"
Vg
"
: (buffer_size, ),
...
...
@@ -1595,6 +1599,10 @@ class CavityMonitor(Monitor):
ring.h,
total_size,
),
"
DFB_ig_phasor
"
:(
ring.h,
total_size,
),
"
detune
"
: (total_size, ),
"
psi
"
: (total_size, ),
"
Vg
"
: (total_size, ),
...
...
@@ -1611,6 +1619,7 @@ class CavityMonitor(Monitor):
"
beam_phasor_record
"
: complex,
"
generator_phasor_record
"
: complex,
"
ig_phasor_record
"
: complex,
"
DFB_ig_phasor
"
:complex,
"
detune
"
: float,
"
psi
"
: float,
"
Vg
"
: float,
...
...
This diff is collapsed.
Click to expand it.
mbtrack2/tracking/rf.py
+
8
−
0
View file @
2e4f4023
...
...
@@ -579,6 +579,14 @@ class CavityResonator():
if
isinstance
(
FB
,
(
ProportionalIntegralLoop
,
DirectFeedback
)):
return
FB
.
ig_phasor_record
return
np
.
zeros
(
self
.
ring
.
h
)
@property
def
DFB_ig_phasor
(
self
):
"""
Last current generator phasor of each bunch in [A]
"""
for
FB
in
self
.
feedback
:
if
isinstance
(
FB
,
(
ProportionalIntegralLoop
,
DirectFeedback
)):
return
FB
.
DFB_ig_phasor
return
np
.
zeros
(
self
.
ring
.
h
)
@property
def
cavity_voltage
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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