Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMVale committed Oct 25, 2024
1 parent dde8df8 commit f250d01
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/polykin/transport/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ def terminal_velocity_sphere(D: float,
Examples
--------
Calculate the terminal velocity of a 2 cm polystyrene sphere in air.
Calculate the terminal velocity of a 1 mm styrene droplet in air.
>>> from polykin.transport.flow import terminal_velocity_sphere
>>> vt = terminal_velocity_sphere(2e-2, 1e3, 1.2, 1.6e-5)
>>> print(f"vt = {vt:.1e} m/s")
vt = 2.2e+01 m/s
>>> vt = terminal_velocity_sphere(1e-3, 910., 1.2, 1.6e-5)
>>> print(f"vt = {vt:.1f} m/s")
vt = 3.8 m/s
"""

def fnc(vt):
Expand Down Expand Up @@ -499,6 +499,14 @@ def DP_packed_bed(G: float,
-------
float
Pressure drop (Pa).
Examples
--------
Calculate the pressure drop in a packed bed reactor.
>>> from polykin.transport.flow import DP_packed_bed
>>> DP = DP_packed_bed(G=50., L=2., Dp=1e-2, eps=0.45, rho=800., mu=0.01)
>>> print(f"DP = {DP:.1e} Pa")
DP = 1.4e+04 Pa
"""
Rep = Dp*G/(mu*(1 - eps))
fp = 150/Rep + 4.2/Rep**(1/6)
Expand Down

0 comments on commit f250d01

Please sign in to comment.