GETTING STARTED


Bioreactor-model is a Python package for bioreactor and biomass growth calculations

1. Install bioreactor-model by typing in terminal:

pip install bioreactor-model

2. Compute biomass molecular composition and biomass molecular weight with dry weights and ash fraction:

from bioreactor_model import calc
expt = calc.CellComposition(values={'C':47,'H':4.15,'N':10,'O':31,'ash_fraction':7.85}, dry_weights=True)
print(expt.biomass_composition)		# biomass composition
print(expt.biomass_molar_weight)	# molecular weight = 25.545

3. Compute biomass equation with above biomass composition and gaseous inlet-outlet exchange values:

be = calc.BiomassEquation(expt.biomass_composition)
be.set_gas_io_values(79,21,10,83,7)
be.solve_biomass_equation()
print(be.biomass_equation_solution['string'])			# biomass equation string 
print(be.biomass_equation_solution['molar_coeff'])		# molar coefficients of biomass equation
print(be.biomass_equation_solution['biomass_composition'])	# biomass composition
print(be.biomass_equation_solution['rq'])			# respiratory quotient = 0.664

4: See tutorials








BACK TO DOCS