modelCSBR

Volume of fixed size, closed to the ambient, with inlet/outlet ports

Extends from Tanks.PartialTank (Volume of fixed size, closed to the ambient, with inlet/outlet ports), Tanks.PartialLumpedVessel (Lumped volume with a vector of fluid ports and replaceable heat transfer model), Tanks.PartialCSBR.

Parameters

TypeNameDefaultDescription
SI.VolumeV (from PartialTank)Volume
SI.ReynoldsNumberRe_turbulent (from PartialLumpedVessel)100cf. suddenExpansion
Assumptions › Dynamics
Types.DynamicsenergyDynamics (from PartialLumpedVolume)system.energyDynamicsFormulation of energy balance
Types.DynamicsmassDynamics (from PartialLumpedVolume)system.massDynamicsFormulation of mass balance
Types.DynamicssubstanceDynamics (from PartialLumpedVolume)massDynamicsFormulation of substance balance
Types.DynamicstraceDynamics (from PartialLumpedVolume)massDynamicsFormulation of trace substance balance
Initialization
Medium.AbsolutePressurep_start (from PartialLumpedVolume)system.p_startStart value of pressure
Booleanuse_T_start (from PartialLumpedVolume)true= true, use T_start, otherwise h_start
Medium.TemperatureT_start (from PartialLumpedVolume)if use_T_start then system.T_start else Medium.temperature_phX(p_start, h_start, X_start)Start value of temperature
Medium.SpecificEnthalpyh_start (from PartialLumpedVolume)if use_T_start then Medium.specificEnthalpy_pTX(p_start, T_start, X_start) else Medium.h_defaultStart value of specific enthalpy
Medium.MassFraction[Medium.nX]X_start (from PartialLumpedVolume)Medium.X_defaultStart value of mass fractions m_i/m
Medium.ExtraProperty[Medium.nC]C_start (from PartialLumpedVolume)Medium.C_defaultStart value of trace substances
Medium.ExtraProperty[Medium.nC_S]C_S_film_start (from PartialCSBR)system.C_S_film_startStart value of solubles in film
Medium.ExtraProperty[Medium.nC_X]C_X_film_start (from PartialCSBR)if nitrifying then system.C_X_film_start_nitri else system.C_X_film_startStart value of particulates in film
General › Ports
IntegernPorts (from PartialLumpedVessel)0Number of ports
Booleanuse_portsData (from PartialLumpedVessel)true= false to neglect pressure loss and kinetic energy
Modelica.Fluid.Vessels.BaseClasses.VesselPortsDataportsData (from PartialLumpedVessel)Data of inlet/outlet ports
Advanced › Port properties
Medium.MassFlowRatem_flow_nominal (from PartialLumpedVessel)if system.use_eps_Re then system.m_flow_nominal else 1e2*system.m_flow_smallNominal value for mass flow rates in ports
SI.MassFlowRatem_flow_small (from PartialLumpedVessel)if system.use_eps_Re then system.eps_m_flow*m_flow_nominal else system.m_flow_smallRegularization range at zero mass flow rate
Booleanuse_Re (from PartialLumpedVessel)system.use_eps_Re= true, if turbulent region is defined by Re, otherwise by m_flow_small
Assumptions › Heat transfer
Booleanuse_HeatTransfer (from PartialLumpedVessel)false= true to use the HeatTransfer model
General › CSBR
SI.ThicknessL_start (from PartialCSBR)1.0e-4Initial biofilm thickness
SI.Temp_CT_bio (from PartialCSBR)SI.Conversions.to_degC(system.T_start)Biofilm parameter evaluation temperature
Realcarrier_packing (from PartialCSBR)0.70Biocarrier packing
Realcarrier_displacement (from PartialCSBR)0.18Biocarrier displacement
SI.AreaA (from PartialCSBR)V*carrier_packing*system.AsBiocarrier surface
SI.VolumeVw (from PartialCSBR)V*(1 - carrier_displacement*carrier_packing)Available water volume w/o biofilm
Booleannitrifying (from PartialCSBR)falseBiofilm is nitrifying

Connectors

TypeNameDefaultDescription
Interfaces.VesselWasteFluidPorts_b[nPorts]ports (from PartialLumpedVessel)Fluid inlets and outlets
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheatPort (from PartialLumpedVessel)

Components

TypeNameDefaultDescription
Modelica.Fluid.Systemsystem (from PartialLumpedVolume)System properties
SI.VolumefluidVolume (from PartialLumpedVolume)Volume
Medium.BasePropertiesmedium (from PartialLumpedVolume)
SI.EnergyU (from PartialLumpedVolume)Internal energy of fluid
SI.Massm (from PartialLumpedVolume)Mass of fluid
SI.MassmXi (from PartialLumpedVolume)Masses of independent components in the fluid
SI.MassmC (from PartialLumpedVolume)Masses of trace substances in the fluid
Medium.ExtraProperty[Medium.nC]C (from PartialLumpedVolume)Trace substance mixture content
SI.MassFlowRatemb_flow (from PartialLumpedVolume)Mass flows across boundaries
SI.MassFlowRatembXi_flow (from PartialLumpedVolume)Substance mass flows across boundaries
Medium.ExtraPropertyFlowRatembC_flow (from PartialLumpedVolume)Trace substance mass flows across boundaries
SI.EnthalpyFlowRateHb_flow (from PartialLumpedVolume)Enthalpy flow across boundaries or energy source/sink
SI.HeatFlowRateQb_flow (from PartialLumpedVolume)Heat flow across boundaries or energy source/sink
SI.PowerWb_flow (from PartialLumpedVolume)Work flow across boundaries or source term
Medium.EnthalpyFlowRate[nPorts]ports_H_flow (from PartialLumpedVessel)
Medium.MassFlowRate[nPorts,Medium.nXi]ports_mXi_flow (from PartialLumpedVessel)
Medium.MassFlowRatesum_ports_mXi_flow (from PartialLumpedVessel)Substance mass flows through ports
Medium.ExtraPropertyFlowRate[nPorts,Medium.nC]ports_mC_flow (from PartialLumpedVessel)
Medium.ExtraPropertyFlowRatesum_ports_mC_flow (from PartialLumpedVessel)Trace substance mass flows through ports
HeatTransferheatTransfer (from PartialLumpedVessel)
Medium.DensityportInDensities (from PartialLumpedVessel)densities of the fluid at the device boundary
SI.VelocityportVelocities (from PartialLumpedVessel)velocities of fluid flow at device boundary
SI.EnergyFlowRateports_E_flow (from PartialLumpedVessel)flow of kinetic and potential energy at device boundary
Reals (from PartialLumpedVessel)curve parameters for port flows vs. port pressures; for further details see, Modelica Tutorial: Ideal switching devices
Realports_penetration (from PartialLumpedVessel)penetration of port with fluid, depending on fluid level and port diameter
SI.AreaportAreas (from PartialLumpedVessel){Modelica.Constants.pi/4*portsData_diameter[i]^2 for i in 1:nPorts}
Medium.AbsolutePressurevessel_ps_static (from PartialLumpedVessel)static pressures inside the vessel at the height of the corresponding ports, zero flow velocity
SI.MassFlowRatem_flow_turbulent (from PartialLumpedVessel)
Medium.ExtraPropertyFlowRateJ_S (from PartialCSBR)Dissolved substance diffusion rate
Medium.ExtraPropertyC_S_film (from PartialCSBR)Film dissolved substance concentration
Medium.ExtraPropertyFlowRateJ_X (from PartialCSBR)Particulate substance diffusion rate
Medium.ExtraPropertyC_X_film (from PartialCSBR)Film particulate substance concentration
RealheterotrophDominance (from PartialCSBR)Dominance of heterotrophic bacteria. 1 = No autotrophs, 0 = no heterotrophs
RealK_d (from PartialCSBR)Variable detachment coefficient
RealfilmPorosity (from PartialCSBR)Variable biofilm porosity
Types.ProcessData.ProcessMatrixbioparam (from PartialCSBR)
SI.ThicknessL (from PartialCSBR)
RealnitrificationRate_Apparent (from PartialCSBR)-R_S[6]/A
RealnitrificationRate_AO (from PartialCSBR)-(P_film[4])*bioparam.SoluteReactions[S.NH, 4]*L
RealnitrificationRate_NO (from PartialCSBR)-(P_film[5])*bioparam.SoluteReactions[S.NO2, 5]*L
RealdenitrificationRate (from PartialCSBR)-L*sum(P_film[2:3]*bioparam.SoluteReactions[S.NO2:S.NO3, 2:3])
RealR_S (from PartialCSBR)Vf*reactionRate_S + reactionRate_S_film*L*AGeneration/consumption of species
RealR_X (from PartialCSBR)Vf*reactionRate_X + reactionRate_X_film*L*AGeneration/consumption of species
Realr_S_total (from PartialCSBR)R_S/VGeneration/consumption of species per unit reactor volume
Realr_X_total (from PartialCSBR)R_X/VGeneration/consumption of species per unit reactor volume
Realr_S_film (from PartialCSBR)reactionRate_S_film*LGeneration/consumption of species per unit biofilm area
Realr_X_film (from PartialCSBR)reactionRate_X_film*LGeneration/consumption of species per unit biofilm area
RealR_S_film (from PartialCSBR){P_film.*bioparam.SoluteReactions[i, :] for i in S}*LGeneration/consumption of species per unit biofilm area from each process