DyLab_3D_MOT/FINAL_Coil/FINAL_COIL_configuration.py
Joschka Schöner d25b3cb5d8 Save
2022-05-04 11:30:48 +02:00

56 lines
1.3 KiB
Python

import matplotlib.pyplot as plt
import numpy as np
import matplotlib
#matplotlib.use('Qt5Agg')
from src import coil_class as BC
HH_Coil = BC.BCoil(HH = 1, distance = 54, radius = 48, layers = 8, windings = 8, wire_height = 0.5,
wire_width = 0.5, insulation_thickness = (0.546-0.5)/2, is_round = True,
winding_scheme= 2)
HH_Coil.set_R_inner(45.6)
HH_Coil.set_d_min(2*24.075)
HH_Coil.print_info()
print(f"inductivity = {HH_Coil.induct_perry()*2} H")
AHH_Coil = BC.BCoil(HH = -1, distance = 54, radius = 48, layers = HH_Coil.get_layers, windings=2 * HH_Coil.get_windings,
wire_height = 0.5, wire_width=0.5, insulation_thickness=(0.546-0.5)/2,
is_round = True, winding_scheme= 2)
AHH_Coil.set_R_inner(45.6)
AHH_Coil.set_d_min(HH_Coil.get_zmax()*2 * 1e3 + 4)
AHH_Coil.print_info()
R = HH_Coil.resistance(25)
I = 5
AHH_Coil.cooling(I, 30)
AHH_Coil.max_gradient(I)
AHH_Coil.B_quick_plot(I)
HH_Coil.print_info()
AHH_Coil.print_info()
print(f"inductivity AHH: {AHH_Coil.induct_perry()*2*1e3} mH" )
print(f"inductivity HH: {HH_Coil.induct_perry() * 2*1e3} mH" )
print(f"resistance AHH: {2*AHH_Coil.resistance(22)} Ω")
print(f"resistance HH: {2*HH_Coil.resistance(22)} Ω")
# %%
I = 1.3
AHH_Coil.cooling(I,22)
AHH_Coil.max_gradient(I)
I_HH = 1.4
HH_Coil.cooling(I,1.2)
HH_Coil.max_field(I)