BIO_eckenfelder_area(): Trickling filter area with Eckenfelder equation

About:
Calculate the area of a trickling filter according the Eckenfelder equation in $(m^2)$.

Trickling filter scheme (Source: Wikipedia)

\begin{equation} Se = \left( \frac{Sf + r \times Se}{1+ r} \right)\times e^{-\left(\frac{h \times k \times 1.035^{\left( T - 20\right)}}{\left(\frac{Q \times 60}{A}\right)^n} \right)} \end{equation} Writing the Eckenfelder equation on A \begin{equation} A = \frac{Q \times 60.0}{\left( \frac{ h \times k \times 1.035^\left(T-20 \right)}{\ln{\left( \frac{Se}{\frac{Sf + r \times Se}{ 1 + r }}\right)}}\right)^{\frac{1}{n}}} \end{equation}

More information about trickling filters please see Wikipedia.

Module: Bioreactor


Function: BIO_eckenfelder_area(sf,se,r, k, t, n, q, h)
Definition of variables:
  • sfupstream concentration of BOD in the waste-water - mg/l; - m3/s
  • se, end concentration of BOD treated waste-water - mg/l;
  • r, recirculation factor;
  • k, factor (domestic watewater ~ 0.02);
  • t, temperature of water - oC;
  • n, factor (domestic wastewater ~ 0.5);
  • qflow - m3/s;
  • h, heigh of the trickling filter, m.
Sample code:
from Bioreactor import *

sf = 338 #(mg/l)
se = 34 #(mg/l)
q= 600.0 # (m3/day)
h= 2.5 #(m)
r= 3.0
k= 0.02
t= 15. #(oC)
n= 0.5
q = q/86400
area = BIO_eckenfelder_area(sf,se,r, k, t, n, q, h)
print ("area", area,"m2")
Result:
area: 324.09856032 m2