WasteWater.ASM3.SecClar.Haertel.Interfaces

Connectors and partial models for ASM3 Secondary Clarifier Model by Haertel

WasteWater.ASM3.SecClar.Haertel.Interfaces.UpperLayerPin WasteWater.ASM3.SecClar.Haertel.Interfaces.LowerLayerPin WasteWater.ASM3.SecClar.Haertel.Interfaces.SCParam WasteWater.ASM3.SecClar.Haertel.Interfaces.SCVar WasteWater.ASM3.SecClar.Haertel.Interfaces.ratios WasteWater.ASM3.SecClar.Haertel.Interfaces.vSfun WasteWater.ASM3.SecClar.Haertel.Interfaces.omega

Information

This package contains connectors and interfaces (partial models) for the ASM3 secondary
clarifier model based on Haertel [1] (settling velocity and omega correction function).
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]  L. Haertel: Modellansaetze zur dynamischen Simulation des Belebtschlammverfahrens.
      TH Darmstadt, Dissertation, 1990.
Copyright (C) 2002 - 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".


WasteWater.ASM3.SecClar.Haertel.Interfaces.ratios WasteWater.ASM3.SecClar.Haertel.Interfaces.ratios

partial model for ratios of solid components

Information

partial model for ASM3 ratios of solid components

Modelica definition

partial model ratios "partial model for ratios of solid components" 
  // ratios of solid components
  Real rXi;
  Real rXs;
  Real rXh;
  Real rXsto;
  Real rXa;
end ratios;

WasteWater.ASM3.SecClar.Haertel.Interfaces.SCParam WasteWater.ASM3.SecClar.Haertel.Interfaces.SCParam

partial model providing clarifier parameters

Information

partial model providing clarifier parameters

Parameters

NameDefaultDescription
zm height of secondary clarifier [m]
Asc area of secondary clarifier [m2]
ISV Sludge Volume Index [ml/g]

Modelica definition

partial model SCParam "partial model providing clarifier parameters" 
  package SI = Modelica.SIunits;
  package WWU = WasteWater.WasteWaterUnits;
  parameter SI.Length zm;
  parameter SI.Area Asc;
  parameter WWU.SludgeVolumeIndex ISV;
  
end SCParam;

WasteWater.ASM3.SecClar.Haertel.Interfaces.SCVar WasteWater.ASM3.SecClar.Haertel.Interfaces.SCVar

partial models providing variables

Information

partial models providing variables

Modelica definition

partial model SCVar "partial models providing variables" 
  package WWU = WasteWater.WasteWaterUnits;
  WWU.MassConcentration X "total sludge concentration in m-th layer";
  WWU.SedimentationVelocity vS "sink velocity in m-th layer";
  WWU.SedimentationFlux Jsm "sedimentation flux m-th layer";
  
  WWU.MassConcentration So "Dissolved oxygen";
  WWU.MassConcentration Si "Soluble inert organics";
  WWU.MassConcentration Ss "Readily biodegradable substrates";
  WWU.MassConcentration Snh "Ammonium";
  WWU.MassConcentration Sn2 "Dinitrogen, released by nitrification";
  WWU.MassConcentration Snox "Nitrite plus nitrate";
  WWU.Alkalinity Salk "Alkalinity, bicarbonate";
  
end SCVar;

WasteWater.ASM3.SecClar.Haertel.Interfaces.LowerLayerPin WasteWater.ASM3.SecClar.Haertel.Interfaces.LowerLayerPin

Connector below influent layer

Information

Connector for ASM3 information and mass exchange between 
layers below the influent layer (feed_layer).

Modelica definition

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 So;
  WWU.MassConcentration Si;
  WWU.MassConcentration Ss;
  WWU.MassConcentration Snh;
  WWU.MassConcentration Sn2;
  WWU.MassConcentration Snox;
  WWU.Alkalinity Salk;
end LowerLayerPin;

WasteWater.ASM3.SecClar.Haertel.Interfaces.UpperLayerPin WasteWater.ASM3.SecClar.Haertel.Interfaces.UpperLayerPin

Connector above influent layer

Information

Connector for ASM3 information and mass exchange 
between layers above the influent layer (feed_layer).

Modelica definition

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 in (m-1)-th layer (dn=down)
  WWU.MassConcentration X_dn;
  
  // soluble components
  WWU.MassConcentration So;
  WWU.MassConcentration Si;
  WWU.MassConcentration Ss;
  WWU.MassConcentration Snh;
  WWU.MassConcentration Sn2;
  WWU.MassConcentration Snox;
  WWU.Alkalinity Salk;
  
end UpperLayerPin;

WasteWater.ASM3.SecClar.Haertel.Interfaces.vSfun WasteWater.ASM3.SecClar.Haertel.Interfaces.vSfun

Sedimentation velocity function

Information

Sedimentation velocity function

Modelica definition

function vSfun "Sedimentation velocity function" 
  // sink velocity in m/d
  
  // total sludge concentration in m-th layer in g/m3 or mg/l
  input Real X;
  //Sludge Volume Index
  input Real ISV;
  
  output Real vS;
protected 
  Real v0 "maximum settling velocity";
  Real nv "exponent as part of the Vesilind equation";
algorithm 
  v0 := (17.4*(exp(-0.0113*ISV)) + 3.931)*24;
  //[m/d]
  nv := (-0.9834*(exp(-0.00581*ISV)) + 1.043);
  //[l/g]
  vS := v0*exp(-nv*X/1000);
end vSfun;

WasteWater.ASM3.SecClar.Haertel.Interfaces.omega WasteWater.ASM3.SecClar.Haertel.Interfaces.omega

Omega correction function by Haertel

Information

This is Haertel's omega correction function for the settling process.

Modelica definition

function omega "Omega correction function by Haertel" 
  input Real z;
  //vertical coordinate, bottom: z=0
  input Real Xf;
  // total sludge concentration in clarifier feed
  input Real hsc;
  //height of secondary clarifier
  input Real zm;
  //height of m-th secondary clarifier layer
  input Real ISV;
  //Sludge Volume Index
  input Integer i;
  //number of layers above feed layer
  
  // correction function omega by Haertel based on [g/l]
  output Real omega;
  
protected 
  Real Xc "solids concentration at compression point";
  Real nv "exponent as part of the Vesilind equation";
  Real ht "height of transition point";
  Real hc "height of compressing point";
  Real B3;
  Real B4;
  
algorithm 
  
  Xc := 480/ISV;
  nv := 1.043 - 0.9834*exp(-0.00581*ISV);
  hc := (Xf/1000)*(hsc - zm*(i + 0.5))/Xc*(1.0 - 1.0/(Xc*nv));
  // unit change
  ht := min(2.0*hc, hsc - zm*(i + 0.5));
  
  B4 := 1.0 + 2.0*ISV/(100.0 + ISV);
  B3 := -((2*ISV + 100.0)/ISV)*hc^B4;
  
  omega := (1.0 - B3*ht^(-B4))/(1.0 - B3*z^(-B4));
  omega := min(1.0, omega);
end omega;

HTML-documentation generated by Dymola Mon Aug 18 11:16:16 2003 .