Skip to content

Commit

Permalink
format equation
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMVale committed Dec 7, 2024
1 parent ad14588 commit 26f2700
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/polykin/transport/diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ def uptake_convection_sheet(Fo: float, Bi: float) -> float:
N = 4 # Number of terms in series expansion (optimal value)
x = roots_xtanx(Bi, N)
b2 = x**2
S = sum(exp(-b2[n]*Fo)/(b2[n]*(b2[n]+Bi*(Bi+1))) for n in range(0, N))
S = sum(exp(-b2[n]*Fo)/(b2[n]*(b2[n] + Bi*(Bi + 1)))
for n in range(0, N))
return 1 - (2*Bi**2)*S
else:
return 0
Expand Down Expand Up @@ -483,7 +484,8 @@ def uptake_convection_sphere(Fo: float, Bi: float) -> float:
N = 4 # Number of terms in series expansion (optimal value)
x = roots_xcotx(Bi, N)
b2 = x**2
S = sum(exp(-b2[n]*Fo)/(b2[n]*(b2[n]+Bi*(Bi-1))) for n in range(0, N))
S = sum(exp(-b2[n]*Fo)/(b2[n]*(b2[n] + Bi*(Bi - 1)))
for n in range(0, N))
return 1 - (6*Bi**2)*S
else:
return 0
Expand Down

0 comments on commit 26f2700

Please sign in to comment.