Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pykat
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Iterations
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
finesse
pykat
Commits
ca5272c2
Commit
ca5272c2
authored
Feb 27, 2018
by
Daniel Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating knm test case
parent
d44a01aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
examples/knm.py
examples/knm.py
+17
-5
No files found.
examples/knm.py
View file @
ca5272c2
import
pykat
from
pykat.optics.knm
import
*
from
pykat.optics.knm
import
plot_knm_matrix
,
knmHG
,
makeCouplingMatrix
from
pykat.optics.maps
import
*
import
numpy
as
np
q1
=
pykat
.
BeamParam
(
w0
=
5e-2
,
z
=
0
)
q2
=
pykat
.
BeamParam
(
w0
=
5e-2
,
z
=
0
)
C
=
makeCouplingMatrix
(
10
)
R
=
max
(
q1
.
w
,
q2
.
w
)
q1
=
pykat
.
BeamParam
(
w0
=
5e-2
,
z
=
0
)
N
=
500
dx
=
R
*
6
/
N
m
=
surfacemap
(
"empty"
,
"phase both"
,
size
=
(
N
,
N
),
center
=
((
N
+
1
)
/
2
,
(
N
+
1
)
/
2
),
step_size
=
(
dx
,
dx
))
C
=
makeCouplingMatrix
(
2
)
K
=
knmHG
(
C
,
q1
,
q2
,
surface_map
=
m
)
K
=
knmHG
(
C
,
q1
,
q1
,
surface_map
=
m
)
plot_knm_matrix
(
C
,
abs
(
K
))
\ No newline at end of file
plot_knm_matrix
(
C
,
abs
(
K
))
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