# -*- coding: utf8 -*- import numpy as np import matplotlib.pyplot as plt def Luo2(t): return 8.706+(-9.11*(10**-3))*t+(3.992*(10**-6))*(t**2)+(-5.004*(10**-10))*(t**3) x= np.arange(0.0,2500.0,100.0) plt.title(' (/ °) \n (°)') plt.xlabel('t° ') plt.ylabel('$\lambda(t)$ -/ °C') plt.plot(x,Luo2(x), color='b') plt.grid(True) plt.show()
# -*- coding: utf8 -*- import numpy as np from scipy.optimize import * from scipy.integrate import quad import matplotlib.pyplot as plt def Luo2(t):# return 8.706+(-9.11*(10**-3))*t+(3.992*(10**-6))*(t**2)+(-5.004*(10**-10))*(t**3) x= np.arange(0.0,2500.0,100.0) qv=10**9# r1=0.0038# def LLuo2(t1,t2):# if abs(t1-t2)<0.001: z=Luo2(t1) else: z=(1/(t2-t1))*(quad(lambda t: Luo2(t), t1,t2)[0]) return z t1=942.413# t0=round(fsolve(lambda t0:t0-t1-(qv*r1**2)/(4*LLuo2(t1,t0)) ,t1)[0],1) print(' t0 - %s ° '%t0)
# -*- coding: utf8 -*- import numpy as np import matplotlib.pyplot as plt def Lhe(t): return 0.146+3.339*(10**-4)*t-4.219*(10**-8)*t**2 plt.title(' (/ °) \n (°) ') x= np.arange(0.0,2500.0,100.0) plt.xlabel('t° ') plt.ylabel('$\lambda(t)$ -/ °C') plt.plot(x,Lhe(x), color='b') plt.grid(True) plt.show()
# -*- coding: utf8 -*- import numpy as np from scipy.optimize import * from scipy.integrate import quad import matplotlib.pyplot as plt def Luo2(t):# return 8.706+(-9.11*(10**-3))*t+(3.992*(10**-6))*(t**2)+(-5.004*(10**-10))*(t**3) x= np.arange(0.0,2500.0,100.0) qv=10**9# r1=0.0038# def LLuo2(t1,t2):# if abs(t1-t2)<0.001: z=Luo2(t1) else: z=(1/(t2-t1))*(quad(lambda t: Luo2(t), t1,t2)[0]) return z t1=942.413# t0=round(fsolve(lambda t0:t0-t1-(qv*r1**2)/(4*LLuo2(t1,t0)) ,t1)[0],1) print(' t0 ° -%s'%t0) def Lhe(t):# return 0.146+3.339*(10**-4)*t-4.219*(10**-8)*t**2 def LLhe(t1,t2):# if abs(t1-t2)<0.001: z=Lhe(t1) else: z=(1/(t2-t1))*(quad(lambda t: Lhe(t), t1,t2)[0]) return z dzr=0.00065# dhe=0.0001# , r2=r1+dhe# r3=r2+dzr# Lzr=20# tf=300# alf=30000# RL_alf=1/(alf*2*np.pi*r3)# RL_Zr=(1/(2*np.pi*Lzr)*np.log(r3/r2))# def RL_He(t1,t2):# return (1/(2*np.pi*LLhe(t1,t2))*np.log(r2/r1)) ql=qv*np.pi*r1**2# def fun(t1,t2,t3): # z=(t1-tf-ql*(RL_He(t1,t2)+RL_Zr+RL_alf)) return z t3=tf+ql*RL_alf t2=t3+ql*RL_Zr tt0=400# t1 t1=fsolve(lambda t1:fun(t1,t2,t3),tt0)[0]# t1 print(' t1 ::%s °'%round(t1,1)) print(' t2 : %s °'%round(t2,1)) print(' t3 : %s °'%round(t3,1))
# -*- coding: utf8 -*- import numpy as np from scipy.optimize import * from scipy.integrate import quad import matplotlib.pyplot as plt def Luo2(t):# return 8.706+(-9.11*(10**-3))*t+(3.992*(10**-6))*(t**2)+(-5.004*(10**-10))*(t**3) x= np.arange(0.0,2500.0,100.0) qv=10**9# r1=0.0038# def LLuo2(t1,t2):# if abs(t1-t2)<0.001: z=Luo2(t1) else: z=(1/(t2-t1))*(quad(lambda t: Luo2(t), t1,t2)[0]) return z t1=942.413# t0=round(fsolve(lambda t0:t0-t1-(qv*r1**2)/(4*LLuo2(t1,t0)) ,t1)[0],1) print(' t0 : %s °'%t0) def Lhe(t):# return 0.146+3.339*(10**-4)*t-4.219*(10**-8)*t**2 def LLhe(t1,t2):# if abs(t1-t2)<0.001: z=Lhe(t1) else: z=(1/(t2-t1))*(quad(lambda t: Lhe(t), t1,t2)[0]) return z dzr=0.00065# dhe=0.0001# , r2=r1+dhe# r3=r2+dzr# Lzr=20# tf=300# alf=30000# RL_alf=1/(alf*2*np.pi*r3)# RL_Zr=(1/(2*np.pi*Lzr)*np.log(r3/r2))# def RL_He(t1,t2):# return (1/(2*np.pi*LLhe(t1,t2))*np.log(r2/r1)) ql=qv*np.pi*r1**2# def fun(t1,t2,t3): # z=(t1-tf-ql*(RL_He(t1,t2)+RL_Zr+RL_alf)) return z t3=tf+ql*RL_alf t2=t3+ql*RL_Zr tt0=400# t1 t1=fsolve(lambda t1:fun(t1,t2,t3),tt0)[0]# t1 print(' t1 : %s °'%round(t1,1)) print(' t2 : %s °'%round(t2,1)) print(' t3 : %s °'%round(t3,1)) def eq(t,r):# return t0-t-qv*r**2/(4*LLuo2(t,t0)) def t_tuel(r):# return fsolve(lambda t:eq(t,r) ,t0)[0] def t_out(r):# if r2<r<=r3: z=t2+(t3-t2)*np.log(r/r2)/np.log(r3/r2) elif r1<=r<=r2: z=t1+(t2-t1)*np.log(r/r1)/np.log(r2/r1) elif r>r3: z=tf return z tt1=[t_tuel(r) for r in np.arange(0.0,r1+0.0001,0.0001)] rr1=np.arange(0.0,r1+0.0001,0.0001) tt2=[t_out(r) for r in np.arange(r1,r3+0.001,0.0001)] rr2=np.arange(r1,r3+0.001,0.0001) plt.title(' ') plt.plot(rr1,tt1, color='r',linewidth=2, label=' 0<=r<=r1') plt.plot(rr2,tt2, color='b',linewidth=2, label='r1<r<=r3+0.001 ') plt.plot(0,t0,'o',label='t0=%s° '%t0) plt.plot(r1, t_tuel(r1),'o',label='t1=%s °'%round(t_tuel(r1),1)) plt.plot(r2, t_out(r2),'o',label='t2=%s °'%round(t_out(r2),1)) plt.plot(r3, t_out(r3),'o',label='t3=%s °'%round(t_out(r3),1)) plt.plot(r3+0.001, t_out(r3+0.001),'o',label='tf=%s °'%round(t_out(r3+0.001),1)) plt.xlabel("r .") plt.ylabel("t °") plt.grid(True) plt.legend(loc='best') plt.show()
Source: https://habr.com/ru/post/351394/
All Articles