from __future__ import division
%pylab inline
from scipy.interpolate import BSpline
from scipy.optimize import root
from fluids import *
from fluids.constants import g
# Dados do problema em SI
rp=2680;rf=1250;mu=0.6685
dc=2e-3;h=10e-3
# Calculo pelo artigo
ec=500;fc=0.017;gc=0.6;mc=0.98;nc=0.48 # parâmetros da correlação
de=(1./4*pi*dc**2*h/(1./6*pi))**(1./3) # diâmetro equivalente em volume
# De de Heywood é de=sqrt((h*dce)*4./pi) é em área
fi=de**2/(1./2*dc**2+dc*h) # esfericidade
S=pi/4*de**2/(dc*h) # Área projectada da esfera equivalente /
# Área proj. da part. posição de maior estabilidade
d=de*(rf*(rp-rf)*g/mu**2)**(1./3) # Diâmetro adimensional
C=ec/(d**3*fi**mc*S**nc)*(1+fc*d**3)**gc # Força de atrito segundo Song & Xu
u=(4*d/3/C)**0.5 # Velocidade adimensional
uc=u/(rf**2/(g*mu*(rp-rf)))**(1./3) # Velocidade terminal da particula
print("A velocidade é de u_m=%.4f m/s;"%uc)

em que as setas vermelhas são os dados para o problema acima.
print("Tendos-se previsto um valor Dp=%.2f"%d)
print("Teria uma velocidade terminal de %.3f m/s"%v_terminal(D=de,rhop=rp,rho=rf,mu=mu))
de=sqrt(h*dc*4./pi)
print("Teria uma velocidade terminal de %.3f m/s"%v_terminal(D=de,rhop=rp,rho=rf,mu=mu))
${\large ^*}$Song, Xianzhi, Zhengming Xu, Gensheng Li, Zhaoyu Pang, and Zhaopeng Zhu. "A New Model for Predicting Drag Coefficient and Settling Velocity of Spherical and Non-Spherical Particle in Newtonian Fluid." Powder Technology 321 (November 2017): 242-50. doi:10.1016/j.powtec.2017.08.017.
Tecnologia Química, Vol. II, Operações Unitárias, J. M. Coulson e J. F. Richardson, Tradução C. Ramalho Carlos, Fundação Calouste Gulbenkian, Lisboa, 2 Edição, 1987.
Operações em Sistemas Multifásicos, Apontamentos das aulas, Sebastião Alves, IST 2015
Caleb Bell (2016). thermo: Chemical properties component of Chemical Engineering Design Library (ChEDL) https://github.com/CalebBell/thermo.
Caleb Bell (2016-2018). fluids: Fluid dynamics component of Chemical Engineering Design Library (ChEDL) https://github.com/CalebBell/fluids.
Benyahia, F., and K. E. O’Neill. "Enhanced Voidage Correlations for Packed Beds of Various Particle Shapes and Sizes." Particulate Science and Technology 23, no. 2 (April 1, 2005): 169-77. doi:10.1080/02726350590922242.
Timmerman, Peter, and Jacobus P. van der Weele. "On the Rise and Fall of a Ball with Linear or Quadratic Drag." American Journal of Physics 67, no. 6 (June 1999): 538-46. doi.org/10.1119/1.19320.