This package contains connectors and interfaces (partial models) for the ASM1 secondary clarifier model based on Takacs [1] (double-exponential settling velocity).
Main Author: Gerald Reichl Technische Universitaet Ilmenau Faculty of Informatics and Automation Department Dynamics and Simulation of ecological Systems P.O. Box 10 05 65 98684 Ilmenau Germany email: gerald.reichl@tu-ilmenau.de References: [1] I. Takacs and G.G. Patry and D. Nolasco: A dynamic model of the clarification-thickening process. Water Research. 25 (1991) 10, pp 1263-1271.
Copyright (C) 2000 - 2001, Gerald Reichl
The Modelica package is free software; it can be redistributed and/or modified under the terms of the Modelica license, see the license conditions and the accompanying disclaimer in the documentation of package Modelica in file "Modelica/package.mo".
WasteWater.ASM1.SecClar.Takacs.Interfaces.ratios
partial model for ASM1 ratios of solid components
partial model ratios "partial model for ratios of solid components" // ratios of solid components Real rXi; Real rXs; Real rXbh; Real rXba; Real rXp; Real rXnd; end ratios;
WasteWater.ASM1.SecClar.Takacs.Interfaces.SCParam
partial model providing clarifier parameters
| Name | Default | Description |
|---|---|---|
| zm | height of m-th secondary clarifier layer [m] | |
| Asc | area of secondary clarifier [m2] |
partial model SCParam "partial model providing clarifier parameters" package SI = Modelica.SIunits; parameter SI.Length zm; parameter SI.Area Asc; end SCParam;
WasteWater.ASM1.SecClar.Takacs.Interfaces.SCVar
partial models providing ASM1 variables
partial model SCVar "partial models providing variables" package WWU = WasteWater.WasteWaterUnits; WWU.MassConcentration X "total sludge concentration in m-th layer"; WWU.MassConcentration Xf "total sludge concentration in clarifier feed"; WWU.SedimentationVelocity vS "sink velocity in m-th layer"; WWU.SedimentationFlux Jsm "sedimentation flux m-th layer"; WWU.MassConcentration Si "Soluble inert organic matter"; WWU.MassConcentration Ss "Readily biodegradable substrate"; WWU.MassConcentration So "Dissolved oxygen"; WWU.MassConcentration Sno "Nitrate and nitrite nitrogen"; WWU.MassConcentration Snh "Ammonium nitrogen"; WWU.MassConcentration Snd "Soluble biodegradable organic nitrogen"; WWU.Alkalinity Salk "Alkalinity"; end SCVar;
WasteWater.ASM1.SecClar.Takacs.Interfaces.LowerLayerPin
Connector for ASM1 information and mass exchange between layers below the influent layer (feed_layer).
connector LowerLayerPin "Connector below influent layer" package WWU = WasteWater.WasteWaterUnits; // return and waste sludge flow Qr, Qw flow WWU.VolumeFlowRate Qr; flow WWU.VolumeFlowRate Qw; // sedimentation flux flow WWU.SedimentationFlux SedFlux; // total sludge concentration in m-th layer WWU.MassConcentration X; // total sludge concentration and sink velocity in(m-1)-th layer (dn=down) WWU.MassConcentration X_dn; WWU.SedimentationVelocity vS_dn; // soluble components WWU.MassConcentration Si; WWU.MassConcentration Ss; WWU.MassConcentration So; WWU.MassConcentration Sno; WWU.MassConcentration Snh; WWU.MassConcentration Snd; WWU.Alkalinity Salk; end LowerLayerPin;
WasteWater.ASM1.SecClar.Takacs.Interfaces.UpperLayerPin
Connector for ASM1 information and mass exchange between layers above the influent layer (feed_layer).
connector UpperLayerPin "Connector above influent layer" package WWU = WasteWater.WasteWaterUnits; // effluent flow flow WWU.VolumeFlowRate Qe; // sedimentation flux flow WWU.SedimentationFlux SedFlux; // total sludge concentration and sink velocity in (m-1)-th layer (dn=down) WWU.MassConcentration X_dn; WWU.SedimentationVelocity vS_dn; // soluble components WWU.MassConcentration Si; WWU.MassConcentration Ss; WWU.MassConcentration So; WWU.MassConcentration Sno; WWU.MassConcentration Snh; WWU.MassConcentration Snd; WWU.Alkalinity Salk; end UpperLayerPin;
WasteWater.ASM1.SecClar.Takacs.Interfaces.vSfun
Takacs double-exponential sedimentation velocity function.
| Name | Default | Description |
|---|---|---|
| v0slash | 250.0 | max. settling velocity in m/d |
| v0 | 474.0 | max. Vesilind settl. veloc. in m/d |
| rh | 0.000576 | hindered zone settl. param. in m3/(g SS) |
| rp | 0.00286 | flocculant zone settl. param. in m3/(g SS) |
| fns | 0.00228 | non-settleable fraction |
function vSfun "Sedimentation velocity function"
// total sludge concentration in m-th layer in g/m3 or mg/l
input Real X;
// total sludge concentration in clarifier feed in g/m3 or mg/l
input Real Xf;
// sink velocity in m/d
output Real vS;
parameter Real v0slash=250.0 "max. settling velocity in m/d";
parameter Real v0=474.0 "max. Vesilind settl. veloc. in m/d";
parameter Real rh=0.000576 "hindered zone settl. param. in m3/(g SS)";
parameter Real rp=0.00286 "flocculant zone settl. param. in m3/(g SS)";
parameter Real fns=0.00228 "non-settleable fraction in -";
algorithm
// computation of sink velocity
vS := max(0.0, min(v0slash, v0*(exp(-rh*(X - fns*Xf)) - exp(-rp*(X - fns*Xf))
)));
end vSfun;