A Compartmentalized Operational Model for Wastewater Treatment Plants