wastewater-optimization
БесплатноБез исполняемых скриптовНе проверенSpecialized skill for biological and physical-chemical wastewater treatment process optimization with activated sludge modeling, nutrient removal, aeration…
от a5c-ai★ 1 947 звёзд на GitHubОб этом скилле
Wastewater Treatment Optimization Skill
Biological and physical-chemical wastewater treatment process optimization for municipal and industrial applications.
Purpose
This skill provides comprehensive capabilities for optimizing wastewater treatment processes, including activated sludge modeling, nutrient removal optimization, aeration efficiency analysis, and energy consumption minimization.
Capabilities
Activated Sludge Process Modeling
- ASM1, ASM2d, ASM3 model implementation
- Stoichiometric and kinetic parameter estimation
- Model calibration with plant data
- Steady-state and dynamic simulation
- Sensitivity analysis for key parameters
BioWin and GPS-X Integration
- Model input file generation
- Simulation scenario configuration
- Results parsing and analysis
- Automated optimization runs
- Comparative scenario analysis
Nutrient Removal Optimization
- Biological Nutrient Removal (BNR) process design
- Enhanced Biological Phosphorus Removal (EBPR) optimization
- Nitrification/denitrification kinetics
- Carbon source requirements
- Recycle ratio optimization
Aeration Efficiency Analysis
- Oxygen transfer efficiency (OTE) calculation
- Alpha and beta factor determination
- Diffuser performance assessment
- Blower energy optimization
- DO control strategy evaluation
Sludge Age and F/M Ratio Optimization
- Solids Retention Time (SRT) optimization
- Food-to-Microorganism (F/M) ratio analysis
- MLSS concentration control
- Sludge yield prediction
- WAS flow optimization
Energy Consumption Minimization
- Energy audit methodology
- Aeration energy optimization
- Pumping efficiency analysis
- Process control optimization
- Energy benchmarking
Chemical Dosing Optimization
- Coagulant dose optimization
- Polymer selection and dosing
- pH adjustment requirements
- Phosphorus precipitation
- Chemical cost minimization
Secondary Clarifier Modeling
- Settling velocity analysis
- Solids flux theory application
- State point analysis
- Clarifier capacity evaluation
- Return sludge optimization
Prerequisites
Installation
pip install numpy scipy pandas matplotlib
Optional Dependencies
# For process simulation
pip install python-control
# For optimization
pip install scipy pymoo
# For data visualization
pip install plotly seaborn
Usage Patterns
Activated Sludge Mass Balance
import numpy as np
from dataclasses import dataclass
from typing import Dict, Optional
@dataclass
class WastewaterCharacteristics:
"""Influent wastewater characteristics"""
flow_mgd: float # Million gallons per day
bod5_mg_l: float # 5-day BOD
tss_mg_l: float # Total suspended solids
tkn_mg_l: float # Total Kjeldahl Nitrogen
tp_mg_l: float # Total phosphorus
temperature_c: float = 20.0
@dataclass
class ActivatedSludgeParameters:
"""Kinetic and stoichiometric parameters"""
Y: float = 0.6 # Yield coefficient (g VSS/g BOD)
kd: float = 0.06 # Endogenous decay rate (1/day)
mu_max: float = 6.0 # Maximum specific growth rate (1/day)
Ks: float = 60.0 # Half-saturation constant (mg/L BOD)
theta_Y: float = 1.0 # Temperature coefficient for Y
theta_kd: float = 1.04 # Temperature coefficient for kd
class ActivatedSludgeModel:
"""Simplified activated sludge process model"""
def __init__(self, influent: WastewaterCharacteristics,
params: ActivatedSludgeParameters):
self.influent = influent
self.params = params
def calculate_srt_for_effluent(self, target_bod_eff: float) -> float:
"""Calculate required SRT for target effluent BOD"""
S = target_bod_eff
S0 = self.influent.bod5_mg_l
Y = self.params.Y
kd = self.params.kd
mu_max = self.params.mu_max
Ks = self.params.Ks
# Specific growth rate at effluent concentration
mu = mu_max * S / (Ks + S)
# Minimum SRT (washout)
srt_min = 1 / (mu - kd)
return srt_min * 1.5 # Safety factor
def calculate_oxygen_requirement(self, srt_days: float, target_bod_eff: float) -> Dict:
"""Calculate oxygen requirements"""
Q = self.influent.flow_mgd * 3.785 # Convert to m3/day * 1000 L/m3
S0 = self.influent.bod5_mg_l
S = target_bod_eff
Y = self.params.Y
kd = self.params.kd
# BOD removal
bod_removed = (S0 - S) * Q / 1000 # kg/day
# Biomass production
Px = Y * bod_removed / (1 + kd * srt_days)
# Oxygen for BOD oxidation
O2_bod = bod_removed - 1.42 * Px
# Oxygen for endogenous respiration
O2_endo = 1.42 * kd * Px * srt_days
return {
'bod_removed_kg_day': bod_removed,
'biomass_produced_kg_day': Px,
'O2_for_bod_kg_day': O2_bod,
'O2_for_endogenous_kg_day': O2_endo,
'total_O2_kg_day': O2_bod + O2_endo
}
def calculate_aeration_basin_
Установить wastewater-optimization в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepWriteBashEditGlobFAQ
Что делает скилл wastewater-optimization?
Specialized skill for biological and physical-chemical wastewater treatment process optimization with activated sludge modeling, nutrient removal, aeration efficiency, and energy minimization.
Как установить скилл wastewater-optimization?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wastewater-optimization запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic