This function calculates the inhibition coefficients for the adm1 model. It considers inhibtion due to an unfavorable pH-value, an excessive concentration of hydrogen or ammonia and an insufficient nitrogen concentration.
(Description)
(Description)
(none)
(no elements)
(no equations)
(none)
(no validation or testing necessary)
(none)
Model created by Philipp Jahneke (philipp.koziol@tuhh.de), August 2018
function ADM1_Inhibition_BSM2 extends TransiEnt.Basics.Icons.Function; input Real pH "pH-Value"; input Modelica.Units.SI.Concentration S_IN "Concentration of Inorganic Nitrogen"; input TransiEnt.Producer.Gas.BiogasPlant.Base.ADM1.ADM1_Units.ConcentrationCOD S_h2 "Concentration of Hydrogen in solution"; input Modelica.Units.SI.Concentration NH3 "Concentration of free Ammonia in solution"; input String operationMode "mesophilic or thermophilic conditions"; output Real[7] I "Inhibition Coefficients"; replaceable Records.ADM1_parameters_BSM2 parameters annotation( Dialog(group = "Replaceable Components"), choicesAllMatching = true, Placement(transformation(extent = {{-10, -10}, {10, 10}}))); final parameter ADM1_Units.ConcentrationCOD K_I_H2_c4 = if operationMode == "thermophilic" then parameters.K_I_H2_c4_therm else parameters.K_I_H2_c4_meso "Inhibition Constant due to high Hydrogen Concentration affecting Valerate and Butyrate Degraders"; final parameter ADM1_Units.ConcentrationCOD K_I_H2_pro = if operationMode == "thermophilic" then parameters.K_I_H2_pro_therm else parameters.K_I_H2_pro_meso "Inhibition Constant due to high Hydrogen Concentration affecting Propionate Degraders"; final parameter Modelica.Units.SI.Concentration K_I_NH3 = if operationMode == "thermophilic" then parameters.K_I_NH3_therm else parameters.K_I_NH3_meso "Inhibition Constant due to high Ammonia Concentration affecting Acetate Degraders"; end ADM1_Inhibition_BSM2;