Skip to content

simulation

This script will run the plant in an open loop simulation (no control) with dynamic input data together with the energy management system.

  • BSM2 base: Primary clarifier, 5 asm1 reactors, a second clarifier, sludge thickener, adm1 fermenter, sludge dewatering and wastewater storage in dynamic simulation without any controllers.

  • BSM2 energy management: Biogas compressor, biogas storage, 2 CHP units, boiler, flare, heat network, cooler and a module for economic evaluation.

This script requires that the packages from requirements.txt are installed within the Python environment you are running this script.

The parameters 'tempmodel' and 'activate' can be set to 'True' if you want to activate them.

timestep

timestep = 15 / 24 / 60

15 minutes in fraction of a day [d⁻¹].

endtime

endtime = 50

Endtime [d⁻¹].

total_steps

total_steps = int(endtime / timestep)

Total simulation steps [-].