diff --git a/biosteam/units/design_tools/batch.py b/biosteam/units/design_tools/batch.py index 71409ae6..3a726303 100644 --- a/biosteam/units/design_tools/batch.py +++ b/biosteam/units/design_tools/batch.py @@ -173,15 +173,15 @@ def f(tau_loading): N_reactors = ceil(F_vol * (tau_reaction + tau_cleaning + tau_loading) / (V_max * V_wf)) V_T = F_vol * (tau_reaction + tau_cleaning + tau_loading) V_i = V_T / N_reactors - - # Total volume of all reactors, assuming no downtime - V_T = F_vol * (tau_reaction + tau_cleaning) / (1 - 1 / N_reactors) - - # Volume of an individual reactor - V_i = V_T / N_reactors - - # Time required to load a reactor - tau_loading = V_i / F_vol + + # Total volume of all reactors, assuming no downtime + V_T = F_vol * (tau_reaction + tau_cleaning) / (1 - 1 / N_reactors) + + # Volume of an individual reactor + V_i = V_T / N_reactors + + # Time required to load a reactor + tau_loading = V_i / F_vol else: tau_loading = loading_time