... | ... | @@ -41,6 +41,13 @@ components = [ |
|
|
# Notice: It is always a good idea to provide names for systems, elements and components.
|
|
|
# There is also a convenience function for rotationally symmetric systems `build_rotationally_symmetric_system`.
|
|
|
|
|
|
tiltx_s2 = s.elements["stdelem"].surfaces["s2"].rootcoordinatesystem.tiltx
|
|
|
tiltx_s3 = s.elements["stdelem"].surfaces["s3"].rootcoordinatesystem.tiltx
|
|
|
tiltx_s3.changetype("pickup", function=(lambda x: -x), args=(tiltx_s2,))
|
|
|
s.rootcoordinatesystem.update()
|
|
|
# Setting tiltx of s3 as -tiltx of s2 via pickup and update coordinate systems afterwards.
|
|
|
|
|
|
|
|
|
pyrateoptics.listOptimizableVariables(s, maxcol=30)
|
|
|
# Lists optimizable variables (the identifiers are keys to a dict which collects them all).
|
|
|
|
... | ... | |