Reactor: Advanced Hydraulic Tank & Biological Process Simulator

A comprehensive reactor class for wastewater treatment simulation featuring non-ideal plug flow hydraulics and ASM3 biological modeling.

How to use this Node

Set Node Properties

  • Set reactor type: Continuously Stirred Tank Reactor (CSTR) or Plug Flow Reactor (PFR)
  • Configure reactor sizing: Set reactor volume [ m^3 ] and (for PFRs) set the reactor length [ m ]
  • (For PFRs) set reactor spatial resolution: A value of 10 or 20 is good. A higher resolution means more accurate simulation, at higher computational expense. Note that connected reactors must have similar Δx values.
  • Set initial state of reactor: set the intial concentrations of all relevant reaction species.
  • (Optional) set k_L a to calculate OTR internally, rather than providing it explicitly, using simple mass transfer model.

Accepted Node inputs

  • { topic: clock, payload: <timestamp [ ms ]> } - required clock signal to make reactor update state.
  • { topic: Fluent, payload: { F: <flow rate [ m^3 d^{-1} ]>, C: <array with concentrations> } } - sets inflow composition and flow rate.
  • { topic: Dispersion, payload: <dispersion coefficient in [ m d^{-2} ]> } - sets PFR dispersion coefficient.
  • { topic: OTR, payload: <oxygen transfer rate [ g d^{-1} m^{-3} ]> } - sets current oxygen transfer rate.

Troubleshooting

Check for possible numerical warnings. These tell you which simulation parameters to change. If solutions appear to be oscillate, try reducing the time step. If solutions appear to be too dispersive, try increasing the reactor resolution.

Description
Reactor: Advanced Hydraulic Tank & Biological Process Simulator A comprehensive reactor class for wastewater treatment simulation featuring plug flow hydraulics, ASM1-ASM3 biological modeling, and multi-sectional concentration tracking. Implements hydraulic retention time calculations, dispersion modeling, and real-time biological reaction kinetics for accurate process simulation. Key Features: Plug Flow Hydraulics: Multi-section reactor with configurable sectioning factor and dispersion modeling ASM1 Integration: Complete biological nutrient removal modeling with 13 state variables (COD, nitrogen, phosphorus) Dynamic Volume Control: Automatic section management with overflow handling and retention time calculations Oxygen Transfer: Saturation-limited O2 transfer with Fick's law slowdown effects and solubility curves Real-time Kinetics: Continuous biological reaction rate calculations with configurable time acceleration Weighted Averaging: Volume-based concentration mixing for accurate mass balance calculations Child Registration: Integration with diffuser systems and upstream/downstream reactor networks Supports complex biological treatment train modeling with temperature compensation, sludge calculations, and comprehensive process monitoring for wastewater treatment plant optimization and regulatory compliance.
Readme EUPL-1.2 405 KiB
Languages
JavaScript 82.8%
HTML 17.2%