In [1]:
from fluids import *

In [2]:
%timeit Panhandle_A(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)


The slowest run took 10.82 times longer than the fastest. This could mean that an intermediate result is being cached.
100000 loops, best of 3: 1.74 µs per loop

In [3]:
%timeit Panhandle_B(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)


The slowest run took 13.02 times longer than the fastest. This could mean that an intermediate result is being cached.
100000 loops, best of 3: 1.69 µs per loop

In [4]:
%timeit Weymouth(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)


The slowest run took 14.36 times longer than the fastest. This could mean that an intermediate result is being cached.
1000000 loops, best of 3: 1.46 µs per loop

In [5]:
%timeit Spitzglass_high(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)


The slowest run took 10.67 times longer than the fastest. This could mean that an intermediate result is being cached.
100000 loops, best of 3: 2.06 µs per loop

In [6]:
%timeit Spitzglass_low(D=0.154051, P1=6720.3199, P2=0, L=54.864, SG=0.6, Tavg=288.7)


The slowest run took 14.37 times longer than the fastest. This could mean that an intermediate result is being cached.
100000 loops, best of 3: 2.02 µs per loop

In [7]:
%timeit Oliphant(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)


The slowest run took 10.78 times longer than the fastest. This could mean that an intermediate result is being cached.
100000 loops, best of 3: 1.95 µs per loop

In [8]:
%timeit Fritzsche(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, Tavg=277.15)


The slowest run took 12.73 times longer than the fastest. This could mean that an intermediate result is being cached.
100000 loops, best of 3: 1.65 µs per loop

In [9]:
%timeit Muller(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, mu=1E-5, Tavg=277.15)


The slowest run took 10.48 times longer than the fastest. This could mean that an intermediate result is being cached.
100000 loops, best of 3: 1.82 µs per loop

In [10]:
%timeit IGT(D=0.340, P1=90E5, P2=20E5, L=160E3, SG=0.693, mu=1E-5, Tavg=277.15)


The slowest run took 11.92 times longer than the fastest. This could mean that an intermediate result is being cached.
1000000 loops, best of 3: 1.76 µs per loop

In [11]:
%timeit isothermal_gas(11.3, 0.00185, P1=1E6, P2=9E5, L=1000, D=0.5)


The slowest run took 10.76 times longer than the fastest. This could mean that an intermediate result is being cached.
10000 loops, best of 3: 12.5 µs per loop

Compressors


In [12]:
%timeit isothermal_work_compression(1E5, 1E6, 300)


The slowest run took 24.86 times longer than the fastest. This could mean that an intermediate result is being cached.
1000000 loops, best of 3: 403 ns per loop

In [13]:
%timeit polytropic_exponent(1.4, eta_p=0.78)


The slowest run took 31.71 times longer than the fastest. This could mean that an intermediate result is being cached.
1000000 loops, best of 3: 346 ns per loop

In [14]:
%timeit isentropic_work_compression(P1=1E5, P2=1E6, T1=300, k=1.4, eta=0.78)


The slowest run took 19.87 times longer than the fastest. This could mean that an intermediate result is being cached.
1000000 loops, best of 3: 1.1 µs per loop

In [15]:
%timeit isentropic_efficiency(1E5, 1E6, 1.4, eta_p=0.78)


The slowest run took 18.17 times longer than the fastest. This could mean that an intermediate result is being cached.
1000000 loops, best of 3: 814 ns per loop