<jupyter_start><jupyter_text>Parameters for KAGRA optical layout  Import modules<jupyter_code>from gtrace.unit import *<jupyter_output><empty_output><jupyter_text>Wedge Angles<jupyter_code>BSWedge = -deg2rad(0.08)
ITMXWedge = -deg2rad(0.025)

ITMYWedge = ITMXWedge

ETMXWedge = deg2rad(0.05)
ETMYWedge = -deg2rad(0.05)

PRWedge = deg2rad(2.0)
SRWedge = deg2rad(2.0)
PRMWedge = deg2rad(2.0)
SRMWedge = deg2rad(2.0)<jupyter_output><empty_output><jupyter_text>Mirror dimensions<jupyter_code>BS_BeamSize = 3.5*cm
ITM_DIA = 22*cm
ETM_DIA = 22*cm
BS_Thickness = 8*cm<jupyter_output><empty_output><jupyter_text>Length<jupyter_code>#Basic lengths
Larm = 3000.
Lprc = 66.591327988354962
Las = 3.329850847567223
Lsrc = 66.591327988354962
L_MIavg = 25.0
Lmc = 26.638806780537788

#PRC

#Distance between the PRM and PR3 required by Vacuum
D_PRM_PR3 = 2.7+1.0

#Distance between the BS and PR2 required by Vacuum
D_BS_PR2 = 2.7+2.0

#In the folding part, beams pass by the sides of the folding mirrors
#The separation between the beams and the mirrors should be
#large enough to avoid clipping.
#(Mirror Dia.)/2+4*sigma

#Distance between the PR3 edge and the beam from PRM to PR2
BeamDist1 = 25./2*cm+20*5*mm

#Distance between the PR2 edge and the beam from PR3 to BS
BeamDist2 = 25./2*cm+4*BS_BeamSize

#Length of the folding part
Lfld = (Lprc - L_MIavg - D_BS_PR2 - D_PRM_PR3)/3

#Folding angle (the incident angle to the folding mirror)
foldingAngle1 = np.arctan(BeamDist1/Lfld)/2  #For PR2/SR2
foldingAngle2 = np.arctan(BeamDist2/Lfld)/2  #For PR3/SR3


L_PR3_BS = Lfld + D_BS_PR2
L_PR2_PR3 = Lfld/np.cos(2*foldingAngle1)
L_PRM_PR2 = Lprc - L_MIavg - L_PR2_PR3 - L_PR3_BS

#MICH
L_BS_ITMX = L_MIavg + Las/2
L_BS_ITMY = L_MIavg - Las/2

L_PRC_X = L_PRM_PR2 + L_PR2_PR3 + L_PR3_BS + L_BS_ITMX
L_PRC_Y = L_PRM_PR2 + L_PR2_PR3 + L_PR3_BS + L_BS_ITMY

#SRC
L_SR3_BS = Lfld + D_BS_PR2
L_SR2_SR3 = Lfld/np.cos(2*foldingAngle1)
L_SRM_SR2 = Lsrc - L_MIavg - L_SR2_SR3 - L_SR3_BS<jupyter_output><empty_output><jupyter_text>ROC<jupyter_code>ITM_ROC = 1900*m
ETM_ROC = 1900*m

#These ROCs are not final values. Just starting points for optimization.
PRM_ROC = 460*m
PR2_ROC = -3.0
PR3_ROC = 25.0
SRM_ROC = 460*m
SR2_ROC = -3.0
SR3_ROC = 25.0<jupyter_output><empty_output><jupyter_text>Index of refraction<jupyter_code>nsilica = 1.44967
nsilica_green = 1.46071
nsaph = 1.754
#nsaph = 1.747
nsaph_green = 1.7717
n_BK7 = 1.507<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10225872689938398, 'fraction_numerical': 0.09897330595482547, 'mean_word_length': 5.214285714285714, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '617040', 'license': 'BSD-2-Clause', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1147, 'n_words': 234, 'path': 'Parameters.ipynb', 'repo_name': 'asoy01/KAGRA-Optical-Layout', 'size': '2435'}