DyLab_3D_MOT/Cooling/05_POWER_estimation_water_cooling.py

57 lines
1.1 KiB
Python
Raw Normal View History

2021-11-04 19:23:34 +01:00
"""
Created on 3.11.21
@author: Joschka
"""
import numpy as np
2021-11-12 16:38:25 +01:00
import matplotlib.pyplot as plt
2021-11-04 19:23:34 +01:00
from src import coil_class as BC
2021-11-12 16:38:25 +01:00
from src import physical_constants as cs
2021-11-04 19:23:34 +01:00
2021-11-12 16:38:25 +01:00
def Q_heat(flow,d_T):
V_t = 4.8 * 3.2 * 1e-6 * flow
m = cs.water_dens * V_t
Q = m * cs.water_c_p * d_T
return Q
2021-11-04 19:23:34 +01:00
def main():
2022-09-02 13:30:37 +02:00
d_T = 2
2021-11-12 16:38:25 +01:00
2022-09-02 13:30:37 +02:00
flow = 1#/5 #m/s
2021-11-04 19:23:34 +01:00
#flow *=2
print(f"flow = {flow}m/s")
2022-09-02 13:30:37 +02:00
V_t = 4.7 * 3.2 * 1e-6 * flow
2021-11-04 19:23:34 +01:00
print(f"Volume rate = {V_t * 1e6} mL/s")
2021-11-12 16:38:25 +01:00
m = cs.water_dens * V_t
Q = m * cs.water_c_p * d_T
2021-11-04 19:23:34 +01:00
print(f"Q = {Q} J/s")
2021-11-12 16:38:25 +01:00
#flow = np.linspace(0,5,100)
#plt.plot(flow,Q_heat(flow,3))
#plt.show()
HH_Coil = BC.BCoil(HH=1, distance=51.694, radius=47.9263, layers=8, windings=16, wire_height=0.5,
2021-11-04 19:23:34 +01:00
wire_width=0.5, insulation_thickness=0.034, is_round=True,
winding_scheme=2)
2021-11-12 16:38:25 +01:00
for I in np.arange(1,20,0.001):
2021-11-04 19:23:34 +01:00
P = HH_Coil.power(I, 23)
if P > Q:
break
print(f"Power = {P} W @ {I} A")
B_max = HH_Coil.max_field(I)
print(f"max field = {B_max} G")
2021-11-12 16:38:25 +01:00
print(HH_Coil.cooling(I, 25))
2021-11-04 19:23:34 +01:00
if __name__ == '__main__':
main()