In [1]:
#problema 1
import math

In [2]:
def T_f(m_agua=0.1, t_agua=298.0, m_cobre=1, t_cobre=423.0, c_cobre=390.0, c_agua=4190.0):
    x = (m_agua * c_agua * t_agua) + (m_cobre * c_cobre * t_cobre)
    x = x/(m_agua * c_agua + m_cobre * c_cobre)
    return x-273.0

In [3]:
print(T_f(m_cobre=2.0), T_f(m_cobre=2.5), T_f(m_cobre=1.0))


106.31776480400333 112.42826398852225 85.25957972805935

In [4]:
def x_vap(m_agua=0.1, t_agua=298.0, m_cobre=1, t_cobre=423.0, c_cobre=390.0, c_agua=4190.0, L_vap=2.2E5):
    x = (-m_cobre * c_cobre *(373.0 - t_cobre) - m_agua * c_agua *(373.0-t_agua))
    x = x/(m_agua * L_vap)
    return x

In [5]:
print(x_vap(m_cobre= 2.0), x_vap(m_cobre=2.5))


0.3443181818181818 0.7875

In [6]:
def heat_ratio(a=1.0, T_f=2.0, T_1=1.0):
    x = a*3.0/(5.0) * (T_f - T_1)/(T_f - T_1/a)
    return x

In [7]:
print(heat_ratio(a=2.0,T_1=127+273.0, T_f=627+273.0))
print(heat_ratio(a=3.0, T_1=227+273, T_f=627+273))
print(heat_ratio(a=1.0, T_1=27+273, T_f=327+273))


0.8571428571428571
0.9818181818181818
0.6

In [8]:
def entropy(m=1.0, c=4190, t_1=80, t_2=20):
    t_a = t_1 + 273.0
    t_b = t_2 + 273.0
    x = (0.5*(t_a+t_b))**2/(t_a * t_b)
    x = math.log(x)
    x = m*c*x
    return x

In [9]:
print(entropy(t_1=80, t_2=20), entropy(t_1=50.0, t_2=30.0), entropy(t_1=80, t_2=20))


36.302078273835924 4.279047339295969 36.302078273835924

In [10]:
def carga(l=1.0, m=1.0, theta=1.0, g=10.0, k=9E9):
    t = theta * math.pi / 180.0
    x = 4 * l * l
    x = x *math.sin(t) * math.sin(t) * math.tan(t)
    x = x *m * g/k
    x = math.sqrt(x)
    return x

In [11]:
print(carga(l=10, m=1.0, theta=45), carga(l=5, m=2, theta=30), carga(l=5, m=2,theta=60))


0.0004714045207910316 0.00017909498863725697 0.0005372849659117708

In [ ]:


In [ ]: