fluids-0.1.78/ 0000755 0001750 0001750 00000000000 13632560624 011640 5 ustar kurt kurt fluids-0.1.78/bench/ 0000755 0001750 0001750 00000000000 13632560624 012717 5 ustar kurt kurt fluids-0.1.78/bench/fluids benchmark.ipynb 0000644 0001750 0001750 00000021452 13632560624 017167 0 ustar kurt kurt {
"cells": [
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from fluids import *\n",
"import matplotlib.pyplot as plt\n",
"from math import *\n",
"% matplotlib inline\n",
"import numpy as np\n",
"from scipy.interpolate import *\n",
"from scipy.constants import *"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 7.24 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"100000 loops, best of 3: 14.6 µs per loop\n",
"100000 loops, best of 3: 10 µs per loop\n",
"100000 loops, best of 3: 8.97 µs per loop\n"
]
}
],
"source": [
"%timeit size_control_valve_l(rho=965.4, Psat=70.1E3, Pc=22120E3, mu=3.1472E-4,P1=680E3, P2=220E3, Q=0.1, D1=0.1, D2=0.09, d=0.08, FL=0.9, Fd=0.46)\n",
"%timeit size_control_valve_l(rho=965.4, Psat=70.1E3, Pc=22120E3, mu=3.1472E-4, P1=680E3, P2=220E3, Q=0.1, D1=0.1, D2=0.1, d=0.95, FL=0.6, Fd=0.98)\n",
"%timeit size_control_valve_l(rho=965.4, Psat=70.1E3, Pc=22120E3, mu=3.1472E-2, P1=680E3, P2=220E3, Q=0.001, D1=0.01, D2=0.01, d=0.01, FL=0.6, Fd=0.98)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 5.17 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"10000 loops, best of 3: 18.6 µs per loop\n",
"100000 loops, best of 3: 9.61 µs per loop\n"
]
}
],
"source": [
"%timeit size_control_valve_g(T=433., MW=44.01, mu=1.4665E-4, gamma=1.30, Z=0.988, P1=680E3, P2=310E3, Q=38/36., D1=0.08, D2=0.1, d=0.05, FL=0.85, Fd=0.42, xT=0.60)\n",
"%timeit size_control_valve_g(T=320., MW=39.95, mu=5.625E-5, gamma=1.67, Z=1.0, P1=2.8E5, P2=1.3E5, Q=0.46/3600., D1=0.015, D2=0.015, d=0.015, FL=0.98, Fd=0.07, xT=0.8)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 48.59 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"1000000 loops, best of 3: 824 ns per loop\n"
]
}
],
"source": [
"%timeit gravity(55, 1E4)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"General\n",
"The slowest run took 13.76 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"1000000 loops, best of 3: 1.25 µs per loop\n",
"The slowest run took 8.43 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"1000000 loops, best of 3: 820 ns per loop\n",
"The slowest run took 7.09 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"100000 loops, best of 3: 2.25 µs per loop\n",
"The slowest run took 13.90 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"1000000 loops, best of 3: 1.8 µs per loop\n",
"10000 loops, best of 3: 30.9 µs per loop\n",
"Darby\n",
"The slowest run took 16.22 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"1000000 loops, best of 3: 691 ns per loop\n",
"The slowest run took 14.48 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"1000000 loops, best of 3: 560 ns per loop\n",
"Hooper\n",
"The slowest run took 10.39 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"1000000 loops, best of 3: 574 ns per loop\n"
]
}
],
"source": [
"print 'General'\n",
"%timeit entrance_rounded(Di=0.1, rc=0.0235)\n",
"%timeit spiral(Di=0.01, rmax=.1, rmin=.02, pitch=.01, fd=0.0185)\n",
"%timeit contraction_conical(Di1=0.1, Di2=0.04, l=0.04, fd=0.0185)\n",
"%timeit diffuser_conical(Di1=2/3., Di2=1, angle=120, fd=0.0185)\n",
"%timeit diffuser_conical_staged(Di1=1., Di2=10., DEs=[2,3,4,5,6,7,8,9], ls=[1,1,1,1,1,1,1,1,1], fd=0.01)\n",
"print 'Darby'\n",
"%timeit Darby3K(NPS=2., Re=10000., name='Valve, Angle valve, 45°, full line size, β = 1')\n",
"%timeit Darby3K(NPS=12., Re=10000., K1=950, Ki=0.25, Kd=4)\n",
"print 'Hooper'\n",
"%timeit Hooper2K(Di=2., Re=10000., name='Valve, Globe, Standard')"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 8.49 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"100000 loops, best of 3: 7.66 µs per loop\n",
"100000 loops, best of 3: 9.66 µs per loop\n",
"1000 loops, best of 3: 233 µs per loop\n",
"1000 loops, best of 3: 1.11 ms per loop\n"
]
}
],
"source": [
"%timeit TANK(D=1.2, L=4, horizontal=False).V_total\n",
"%timeit TANK(D=1.2, L=4, horizontal=False).V_from_h(.5)\n",
"%timeit TANK(V=10, L_over_D=0.7, sideB='conical', sideB_a=0.5)\n",
"%timeit TANK(D=8., L=10., horizontal=False, sideA='torispherical', sideB='torispherical', sideA_a=1.3547, sideB_a=1.3547, sideA_f=1., sideA_k=0.06, sideB_f=1., sideB_k=0.06).h_from_V(.5)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 7.81 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"100000 loops, best of 3: 6.41 µs per loop\n",
"100000 loops, best of 3: 7.27 µs per loop\n"
]
}
],
"source": [
"%timeit dP_packed_bed(dp=8E-4, voidage=0.4, vs=1E-3, rho=1E3, mu=1E-3)\n",
"%timeit dP_packed_bed(dp=8E-4, voidage=0.4, vs=1E-3, rho=1E3, mu=1E-3, Dt=0.01)"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 4.14 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"100000 loops, best of 3: 4.55 µs per loop\n",
"The slowest run took 6.74 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"100000 loops, best of 3: 2.8 µs per loop\n"
]
}
],
"source": [
"%timeit nearest_pipe(Do=.273, schedule='5S')\n",
"%timeit gauge_from_t(.5, False, 'BWG'), gauge_from_t(0.005588, True)"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 4.86 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"10000 loops, best of 3: 31.7 µs per loop\n",
"10000 loops, best of 3: 31.3 µs per loop\n"
]
}
],
"source": [
"%timeit VFD_efficiency(100*hp, load=0.5)\n",
"%timeit CSA_motor_efficiency(100*hp, closed=True, poles=6, high_efficiency=True)\n",
"# TODO FIX THIS"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 5.30 times longer than the fastest. This could mean that an intermediate result is being cached \n",
"10000 loops, best of 3: 38.1 µs per loop\n"
]
}
],
"source": [
"from fluids.safety_valve import API520_SH\n",
"%timeit API520_SH(593+273.15, 1066.325E3)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.9"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
fluids-0.1.78/bench/example.ipynb 0000644 0001750 0001750 00000001717 13632560624 015423 0 ustar kurt kurt {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from fluids import *"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"0.011668155513485807"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"friction_factor(Re=1E6, eD=1E-6)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.13"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
fluids-0.1.78/bench/benchmark compressible.ipynb 0000644 0001750 0001750 00000016720 13632560624 020372 0 ustar kurt kurt {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from fluids import *"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 10.82 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"100000 loops, best of 3: 1.74 µs per loop\n"
]
}
],
"source": [
"%timeit Panhandle_A(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 13.02 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"100000 loops, best of 3: 1.69 µs per loop\n"
]
}
],
"source": [
"%timeit Panhandle_B(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 14.36 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 1.46 µs per loop\n"
]
}
],
"source": [
"%timeit Weymouth(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 10.67 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"100000 loops, best of 3: 2.06 µs per loop\n"
]
}
],
"source": [
"%timeit Spitzglass_high(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 14.37 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"100000 loops, best of 3: 2.02 µs per loop\n"
]
}
],
"source": [
"%timeit Spitzglass_low(D=0.154051, P1=6720.3199, P2=0, L=54.864, SG=0.6, Tavg=288.7)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 10.78 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"100000 loops, best of 3: 1.95 µs per loop\n"
]
}
],
"source": [
"%timeit Oliphant(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 12.73 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"100000 loops, best of 3: 1.65 µs per loop\n"
]
}
],
"source": [
"%timeit Fritzsche(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 10.48 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"100000 loops, best of 3: 1.82 µs per loop\n"
]
}
],
"source": [
"%timeit Muller(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, mu=1E-5, Tavg=277.15)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 11.92 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 1.76 µs per loop\n"
]
}
],
"source": [
"%timeit IGT(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, mu=1E-5, Tavg=277.15)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 10.76 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"10000 loops, best of 3: 12.5 µs per loop\n"
]
}
],
"source": [
"%timeit isothermal_gas(11.3, 0.00185, P1=1E6, P2=9E5, L=1000, D=0.5)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Compressors"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 24.86 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 403 ns per loop\n"
]
}
],
"source": [
"%timeit isothermal_work_compression(1E5, 1E6, 300)"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 31.71 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 346 ns per loop\n"
]
}
],
"source": [
"%timeit polytropic_exponent(1.4, eta_p=0.78)"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 19.87 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 1.1 µs per loop\n"
]
}
],
"source": [
"%timeit isentropic_work_compression(P1=1E5, P2=1E6, T1=300, k=1.4, eta=0.78)"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 18.17 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 814 ns per loop\n"
]
}
],
"source": [
"%timeit isentropic_efficiency(1E5, 1E6, 1.4, eta_p=0.78)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.9"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
fluids-0.1.78/bench/benchmark atmosphere.ipynb 0000644 0001750 0001750 00000012110 13632560624 020037 0 ustar kurt kurt {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from fluids import *"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"ATMOSPHERE_1976"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 10.39 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"100000 loops, best of 3: 5.87 µs per loop\n",
"100000 loops, best of 3: 5.87 µs per loop\n",
"100000 loops, best of 3: 4.73 µs per loop\n"
]
}
],
"source": [
"%timeit ATMOSPHERE_1976(5000)\n",
"%timeit ATMOSPHERE_1976(500000)\n",
"%timeit ATMOSPHERE_1976(0, 4)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 32.26 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 185 ns per loop\n"
]
}
],
"source": [
"%timeit ATMOSPHERE_1976.density(300, 1E5)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 32.80 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 334 ns per loop\n"
]
}
],
"source": [
"%timeit ATMOSPHERE_1976.gravity(5000)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 37.69 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 266 ns per loop\n"
]
}
],
"source": [
"%timeit ATMOSPHERE_1976.sonic_velocity(300)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 23.51 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 588 ns per loop\n"
]
}
],
"source": [
"%timeit ATMOSPHERE_1976.thermal_conductivity(300)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 34.50 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"1000000 loops, best of 3: 408 ns per loop\n"
]
}
],
"source": [
"%timeit ATMOSPHERE_1976.viscosity(300)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"ATMOSPHERE_NRLMSISE00"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1000 loops, best of 3: 1.25 ms per loop\n"
]
}
],
"source": [
"%timeit ATMOSPHERE_NRLMSISE00(1E3, 45, 45, 150)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"hwm93"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 9.16 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"100000 loops, best of 3: 6.32 µs per loop\n"
]
}
],
"source": [
"%timeit hwm93(5E5, 45, 50, 365)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"hwm14"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The slowest run took 6.08 times longer than the fastest. This could mean that an intermediate result is being cached.\n",
"100000 loops, best of 3: 10.7 µs per loop\n"
]
}
],
"source": [
"%timeit hwm14(5E5, 45, 50, 365)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.9"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
fluids-0.1.78/README.rst 0000644 0001750 0001750 00000007040 13632560624 013330 0 ustar kurt kurt ======
fluids
======
.. image:: http://img.shields.io/pypi/v/fluids.svg?style=flat
:target: https://pypi.python.org/pypi/fluids
:alt: Version_status
.. image:: http://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat
:target: https://fluids.readthedocs.io/
:alt: Documentation
.. image:: http://img.shields.io/travis/CalebBell/fluids/master.svg?style=flat
:target: https://travis-ci.org/CalebBell/fluids
:alt: Build_status
.. image:: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
:target: https://github.com/CalebBell/fluids/blob/master/LICENSE.txt
:alt: license
.. image:: https://img.shields.io/coveralls/CalebBell/fluids.svg?
:target: https://coveralls.io/github/CalebBell/fluids
:alt: Coverage
.. image:: https://img.shields.io/pypi/pyversions/fluids.svg?
:target: https://pypi.python.org/pypi/fluids
:alt: Supported_versions
.. image:: http://img.shields.io/appveyor/ci/calebbell/fluids.svg?
:target: https://ci.appveyor.com/project/calebbell/fluids/branch/master
:alt: Build_status
.. image:: https://zenodo.org/badge/48924523.svg?
:alt: Zendo
:target: https://zenodo.org/badge/latestdoi/48924523
.. contents::
What is Fluids?
---------------
Fluids is open-source software for engineers and technicians working in the
fields of chemical, mechanical, or civil engineering. It includes modules
for piping, fittings, pumps, tanks, compressible flow, open-channel flow,
and more.
The fluids library depends on the SciPy library to provide numerical constants,
interpolation, integration, and numerical solving functionality. fluids runs on
all operating systems which support Python, is quick to install, and is free
of charge. fluids is designed to be easy to use while still providing powerful
functionality. If you need to perform some fluid dynamics calculations, give
fluids a try.
Installation
------------
Get the latest version of fluids from
https://pypi.python.org/pypi/fluids/
If you have an installation of Python with pip, simple install it with:
$ pip install fluids
Alternatively, if you are using `conda `_ as your package management, you can simply
install fluids in your environment from `conda-forge `_ channel with:
$ conda install -c conda-forge fluids
To get the git version, run:
$ git clone git://github.com/CalebBell/fluids.git
Documentation
-------------
fluids's documentation is available on the web:
http://fluids.readthedocs.io/
Latest source code
------------------
The latest development version of fluids's sources can be obtained at
https://github.com/CalebBell/fluids
Bug reports
-----------
To report bugs, please use the fluids's Bug Tracker at:
https://github.com/CalebBell/fluids/issues
If you have further questions about the usage of the library, feel free
to contact the author at Caleb.Andrew.Bell@gmail.com.
License information
-------------------
Fluids is MIT licensed. See ``LICENSE.txt`` for full information
on the terms & conditions for usage of this software, and a
DISCLAIMER OF ALL WARRANTIES.
Although not required by the fluids license, if it is convenient for you,
please cite fluids if used in your work. Please also consider contributing
any changes you make back, such that they may be incorporated into the
main library and all of us will benefit from them.
Citation
--------
To cite fluids in publications use::
Caleb Bell (2016-2018). fluids: Fluid dynamics component of Chemical Engineering Design Library (ChEDL)
https://github.com/CalebBell/fluids.
fluids-0.1.78/docs/ 0000755 0001750 0001750 00000000000 13632560624 012570 5 ustar kurt kurt fluids-0.1.78/docs/fluids.drag.rst 0000644 0001750 0001750 00000000250 13632560624 015521 0 ustar kurt kurt Drag and terminal velocity (fluids.drag)
========================================
.. automodule:: fluids.drag
:members:
:undoc-members:
:show-inheritance:
fluids-0.1.78/docs/fluids.fittings.rst 0000644 0001750 0001750 00000000254 13632560624 016437 0 ustar kurt kurt Fittings pressure drop (fluids.fittings)
========================================
.. automodule:: fluids.fittings
:members:
:undoc-members:
:show-inheritance:
fluids-0.1.78/docs/fluids.safety_valve.rst 0000644 0001750 0001750 00000000300 13632560624 017270 0 ustar kurt kurt Safety/relief valve sizing (fluids.safety_valve)
================================================
.. automodule:: fluids.safety_valve
:members:
:undoc-members:
:show-inheritance:
fluids-0.1.78/docs/fluids.particle_size_distribution.rst 0000644 0001750 0001750 00000000263 13632560624 022244 0 ustar kurt kurt Particle Size Distributions (fluids.particle_size_distribution)
===============================================================
.. automodule:: fluids.particle_size_distribution
fluids-0.1.78/docs/_static/ 0000755 0001750 0001750 00000000000 13632560624 014216 5 ustar kurt kurt fluids-0.1.78/docs/_static/copybutton.js 0000644 0001750 0001750 00000005321 13632560624 016763 0 ustar kurt kurt $(document).ready(function() {
/* Add a [>>>] button on the top-right corner of code samples to hide
* the >>> and ... prompts and the output and thus make the code
* copyable. */
var div = $('.highlight-python .highlight,' +
'.highlight-default .highlight,' +
'.highlight-python3 .highlight')
var pre = div.find('pre');
// get the styles from the current theme
pre.parent().parent().css('position', 'relative');
var hide_text = 'Hide the prompts and output';
var show_text = 'Show the prompts and output';
var border_width = pre.css('border-top-width');
var border_style = pre.css('border-top-style');
var border_color = pre.css('border-top-color');
var button_styles = {
'cursor':'pointer', 'position': 'absolute', 'top': '0', 'right': '0',
'border-color': border_color, 'border-style': border_style,
'border-width': border_width, 'color': border_color, 'text-size': '75%',
'font-family': 'monospace', 'padding-left': '0.2em', 'padding-right': '0.2em',
'border-radius': '0 3px 0 0'
}
// create and add the button to all the code blocks that contain >>>
div.each(function(index) {
var jthis = $(this);
if (jthis.find('.gp').length > 0) {
var button = $('>>>');
button.css(button_styles)
button.attr('title', hide_text);
button.data('hidden', 'false');
jthis.prepend(button);
}
// tracebacks (.gt) contain bare text elements that need to be
// wrapped in a span to work with .nextUntil() (see later)
jthis.find('pre:has(.gt)').contents().filter(function() {
return ((this.nodeType == 3) && (this.data.trim().length > 0));
}).wrap('');
});
// define the behavior of the button when it's clicked
$('.copybutton').click(function(e){
e.preventDefault();
var button = $(this);
if (button.data('hidden') === 'false') {
// hide the code output
button.parent().find('.go, .gp, .gt').hide();
button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'hidden');
button.css('text-decoration', 'line-through');
button.attr('title', show_text);
button.data('hidden', 'true');
} else {
// show the code output
button.parent().find('.go, .gp, .gt').show();
button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'visible');
button.css('text-decoration', 'none');
button.attr('title', hide_text);
button.data('hidden', 'false');
}
});
});
fluids-0.1.78/docs/_templates/ 0000755 0001750 0001750 00000000000 13632560624 014725 5 ustar kurt kurt fluids-0.1.78/docs/_templates/layout.html 0000644 0001750 0001750 00000000314 13632560624 017126 0 ustar kurt kurt {% extends "!layout.html" %}
{% block extrahead %}
{% if not embedded %}{% endif %}
{{ super() }}
{% endblock %}
fluids-0.1.78/docs/fluids.two_phase_voidage.rst 0000644 0001750 0001750 00000000307 13632560624 020276 0 ustar kurt kurt Two-phase flow voidage (fluids.two_phase_voidage)
=================================================
.. automodule:: fluids.two_phase_voidage
:members:
:undoc-members:
:show-inheritance:
fluids-0.1.78/docs/fluids.filters.rst 0000644 0001750 0001750 00000000245 13632560624 016260 0 ustar kurt kurt Filter pressure drop (fluids.filters)
=====================================
.. automodule:: fluids.filters
:members:
:undoc-members:
:show-inheritance:
fluids-0.1.78/docs/fluids.core.rst 0000644 0001750 0001750 00000000236 13632560624 015540 0 ustar kurt kurt Dimensionless numbers (fluids.core)
===================================
.. automodule:: fluids.core
:members:
:undoc-members:
:show-inheritance:
fluids-0.1.78/docs/fittings/ 0000755 0001750 0001750 00000000000 13632560624 014417 5 ustar kurt kurt fluids-0.1.78/docs/fittings/flush_mounted_beveled_orifice_entrance.png 0000644 0001750 0001750 00000035234 13632560624 025055 0 ustar kurt kurt PNG
IHDR wB sBIT|d IDATxwxTUϤ&H(RKH KYqW(?W*@*Ez
,O)N_ϓǙ3w|Gcs0n8*VD* p8v F xn#| > @ o |m 7>6 p
F xn#| > @ o |m 7>6 p
F x X 0> f> ,