This package just provides a very simple ASM2d secondary clarifier model with no sludge storage, no sludge sedimentation and no use of layers. The model consists of one tank removing all particulate substances.
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
Copyright (C) 2000 - 2003, 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".
Copyright (C) 2003, Gerald Reichl
WasteWater.ASM2d.SecClar.Simple.SimpleSecClarMod
This component models very simple the secondary clarification process by just using a single fully mixed tank which removes all particulate substances from the effluent and returns the sludge. No sedimentation and compression, etc. is considered (for ASM2d).
| Name | Default | Description |
|---|---|---|
| hsc | 4.0 | height of secondary clarifier [m] |
| Asc | 1500.0 | area of secondary clarifier [m2] |
model SimpleSecClarMod "Simple ASM2d Secondary Clarifier Model" extends WasteWater.Icons.SecClarSimple; extends WasteWater.ASM2d.SecClar.Takacs.Interfaces.ratios; package SI = Modelica.SIunits; package WI = WasteWater.ASM2d.Interfaces; package WWU = WasteWater.WasteWaterUnits; parameter SI.Length hsc=4.0 "height of secondary clarifier"; parameter SI.Area Asc=1500.0 "area of secondary clarifier"; WWU.MassConcentration Xf "total sludge concentration in clarifier feed"; WWU.MassConcentration X "total sludge concentration"; WWU.MassConcentration So "Dissolved oxygen"; WWU.MassConcentration Sf "Readily biodegradable substrate"; WWU.MassConcentration Sa "Fermentation products"; WWU.MassConcentration Snh "Ammonium"; WWU.MassConcentration Sno "Nitrate (plus nitrite)"; WWU.MassConcentration Spo "Phosphate"; WWU.MassConcentration Si "Inert, non biodegradable organics"; WWU.Alkalinity Salk "Bicarbonate alkalinity"; WWU.MassConcentration Sn2 "Dinitrogen"; WI.WWFlowAsm2din Feed; WI.WWFlowAsm2dout Effluent; WI.WWFlowAsm2dout Return; WI.WWFlowAsm2dout Waste; equation // total sludge concentration in clarifier feed Xf = Feed.Xtss; // ratios of solid components rXi = Feed.Xi/Xf; rXs = Feed.Xs/Xf; rXh = Feed.Xh/Xf; rXpao = Feed.Xpao/Xf; rXpp = Feed.Xpp/Xf; rXpha = Feed.Xpha/Xf; rXa = Feed.Xa/Xf; rXmeoh = Feed.Xmeoh/Xf; rXmep = Feed.Xmep/Xf; // ODEof sludge concentration der(X) = (Feed.Q*Xf - (-(Waste.Q + Return.Q))*X)/(Asc*hsc); // ODE of soluble components der(So) = (Feed.Q*Feed.So - (-Effluent.Q)*So - (-(Waste.Q + Return.Q))*So)/(Asc*hsc); der(Sf) = (Feed.Q*Feed.Sf - (-Effluent.Q)*Sf - (-(Waste.Q + Return.Q))*Sf)/(Asc*hsc); der(Sa) = (Feed.Q*Feed.Sa - (-Effluent.Q)*Sa - (-(Waste.Q + Return.Q))*Sa)/(Asc*hsc); der(Snh) = (Feed.Q*Feed.Snh - (-Effluent.Q)*Snh - (-(Waste.Q + Return.Q))*Snh)/(Asc*hsc); der(Sno) = (Feed.Q*Feed.Sno - (-Effluent.Q)*Sno - (-(Waste.Q + Return.Q))*Sno)/(Asc*hsc); der(Spo) = (Feed.Q*Feed.Spo - (-Effluent.Q)*Spo - (-(Waste.Q + Return.Q))*Spo)/(Asc*hsc); der(Si) = (Feed.Q*Feed.Si - (-Effluent.Q)*Si - (-(Waste.Q + Return.Q))*Si)/(Asc*hsc); der(Salk) = (Feed.Q*Feed.Salk - (-Effluent.Q)*Salk - (-(Waste.Q + Return.Q))*Salk)/(Asc*hsc); der(Sn2) = (Feed.Q*Feed.Sn2 - (-Effluent.Q)*Sn2 - (-(Waste.Q + Return.Q))*Sn2)/(Asc*hsc); // volume flow rates Feed.Q + Effluent.Q + Return.Q + Waste.Q = 0; // effluent, solid and soluble components (ASM2d) Effluent.So = So; Effluent.Sf = Sf; Effluent.Sa = Sa; Effluent.Snh = Snh; Effluent.Sno = Sno; Effluent.Spo = Spo; Effluent.Si = Si; Effluent.Salk = Salk; Effluent.Sn2 = Sn2; Effluent.Xi = 0.0*X; Effluent.Xs = 0.0*X; Effluent.Xh = 0.0*X; Effluent.Xpao = 0.0*X; Effluent.Xpp = 0.0*X; Effluent.Xpha = 0.0*X; Effluent.Xa = 0.0*X; Effluent.Xmeoh = 0.0*X; Effluent.Xmep = 0.0*X; Effluent.Xtss = 0.0*X; // return sludge flow, solid and soluble components (ASM2d) Return.So = So; Return.Sf = Sf; Return.Sa = Sa; Return.Snh = Snh; Return.Sno = Sno; Return.Spo = Spo; Return.Si = Si; Return.Salk = Salk; Return.Sn2 = Sn2; Return.Xi = rXi*X; Return.Xs = rXs*X; Return.Xh = rXh*X; Return.Xpao = rXpao*X; Return.Xpp = rXpp*X; Return.Xpha = rXpha*X; Return.Xa = rXa*X; Return.Xmeoh = rXmeoh*X; Return.Xmep = rXmep*X; Return.Xtss = X; // waste sludge flow, solid and soluble components (ASM2d) Waste.So = So; Waste.Sf = Sf; Waste.Sa = Sa; Waste.Snh = Snh; Waste.Sno = Sno; Waste.Spo = Spo; Waste.Si = Si; Waste.Salk = Salk; Waste.Sn2 = Sn2; Waste.Xi = rXi*X; Waste.Xs = rXs*X; Waste.Xh = rXh*X; Waste.Xpao = rXpao*X; Waste.Xpp = rXpp*X; Waste.Xpha = rXpha*X; Waste.Xa = rXa*X; Waste.Xmeoh = rXmeoh*X; Waste.Xmep = rXmep*X; Waste.Xtss = X; end SimpleSecClarMod;