modelADM1_CSTR
Extends from TransiEnt.Basics.Icons.ADM1 (Icon for ADM1 model).
Information
1. Purpose of model
This model contains different equatios for modeling the processes of anaerobic digestion. It can be chosen between the parameters of Bulkowska et al. and the bsm2 parameters.
2. Level of detail, physical effects considered, and physical insight
(Description)
3. Limits of validity
(Description)
4. Interfaces
(none)
5. Nomenclature
(no elements)
6. Governing Equations
(no equations)
7. Remarks for Usage
It is important to check if the parameters of the record and inflow parameters of the adm1 model fit to each other so that only bsm2 parameters or only bulkowska parameters are used.
8. Validation
This model has been validated as part of the master thesis of Philip Jahneke and it was tested in the check model "TestADM1" (look there for further information about the validation). Only the mesophilic operation mode has been validated.
9. References
[1] Bułkowska, K., et al. (2015). .ADM1-based modeling of anaerobic codigestion of maize silage and cattle manure – a feedstock characterisation for model implementation (part I)
[2] Rosén, C., & Jeppsson, U. (2006). Aspects on ADM1 Implementation within the BSM2 Framework
10. Version History
Model created by Philipp Jahneke (philipp.koziol@tuhhl.de), Sept 2018
Model adapted for TransiEnt by Jan Westphal (j.westphal@tuhh.de) in May 2020
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | PM | PetersenMatrix.PM | |
| Real | MIN | Modelica.Constants.eps | very small number used to avoid numerical instability of the acidbase equations, (biggest number so that 1.0+eps = 1.0) |
| Real | Y_pro | if operationMode == "thermophilic" then PetersenMatrix.Parameters.Y_pro_therm else PetersenMatrix.Parameters.Y_pro_meso | |
| ADM1_Units.KineticRateConstant | k_dec | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_dec_therm else PetersenMatrix.Parameters.k_dec_meso | rate constant of microbial decay |
| ADM1_Units.KineticRateConstant | k_dec_ac | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_dec_therm else PetersenMatrix.Parameters.k_dec_ac_meso | decay rate constant of acetate degraders |
| ADM1_Units.KineticRateConstant | k_dis | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_dis_therm else PetersenMatrix.Parameters.k_dis_meso | disintegration rate constant |
| ADM1_Units.KineticRateConstant | k_hyd_ch | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_hyd_ch_therm else PetersenMatrix.Parameters.k_hyd_ch_meso | hydrolysis rate constant of carbohydrates |
| ADM1_Units.KineticRateConstant | k_hyd_pr | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_hyd_pr_therm else PetersenMatrix.Parameters.k_hyd_pr_meso | hydrolysis rate constant of proteins |
| ADM1_Units.KineticRateConstant | k_hyd_li | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_hyd_li_therm else PetersenMatrix.Parameters.k_hyd_li_meso | hydrolysis rate constant of lipids |
| ADM1_Units.KineticRateConstant | k_m_su | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_m_su_therm else PetersenMatrix.Parameters.k_m_su_meso | Monod maximum uptake rate constant for sugar degraders |
| ADM1_Units.KineticRateConstant | k_m_aa | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_m_aa_therm else PetersenMatrix.Parameters.k_m_aa_meso | Monod maximum uptake rate constant for amino-acid degraders |
| ADM1_Units.KineticRateConstant | k_m_fa | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_m_fa_therm else PetersenMatrix.Parameters.k_m_fa_meso | Monod maximum uptake rate constant for LCFA degraders |
| ADM1_Units.KineticRateConstant | k_m_c4 | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_m_c4_therm else PetersenMatrix.Parameters.k_m_c4_meso | Monod maximum uptake rate constant for valerate and butyrate degraders |
| ADM1_Units.KineticRateConstant | k_m_pro | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_m_pro_therm else PetersenMatrix.Parameters.k_m_pro_meso | Monod maximum uptake rate constant for propionate degraders |
| ADM1_Units.KineticRateConstant | k_m_ac | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_m_ac_therm else PetersenMatrix.Parameters.k_m_ac_meso | Monod maximum uptake rate for acetate degraders |
| ADM1_Units.KineticRateConstant | k_m_h2 | if operationMode == "thermophilic" then PetersenMatrix.Parameters.k_m_h2_therm else PetersenMatrix.Parameters.k_m_h2_meso | Monod maximum uptake rate constant for hydrogen degraders |
| ADM1_Units.ConcentrationCOD | K_S_su | if operationMode == "thermophilic" then PetersenMatrix.Parameters.K_S_su_therm else PetersenMatrix.Parameters.K_S_su_meso | sugar concentration below which uptake is reduced to less than half of maximum uptake |
| ADM1_Units.ConcentrationCOD | K_S_aa | if operationMode == "thermophilic" then PetersenMatrix.Parameters.K_S_aa_therm else PetersenMatrix.Parameters.K_S_aa_meso | amino acid concentration below which uptake is reduced to less than half of maximum uptake |
| ADM1_Units.ConcentrationCOD | K_S_fa | if operationMode == "thermophilic" then PetersenMatrix.Parameters.K_S_fa_therm else PetersenMatrix.Parameters.K_S_fa_meso | LCFA concentration below which uptake is reduced to less than half of maximum uptake |
| ADM1_Units.ConcentrationCOD | K_S_c4 | if operationMode == "thermophilic" then PetersenMatrix.Parameters.K_S_c4_therm else PetersenMatrix.Parameters.K_S_c4_meso | Valerate/Butyrate concentration below which uptake is reduced to less than half of maximum uptake |
| ADM1_Units.ConcentrationCOD | K_S_pro | if operationMode == "thermophilic" then PetersenMatrix.Parameters.K_S_pro_therm else PetersenMatrix.Parameters.K_S_pro_meso | Propionate concentration below which uptake is reduced to less than half of maximum uptake |
| ADM1_Units.ConcentrationCOD | K_S_ac | if operationMode == "thermophilic" then PetersenMatrix.Parameters.K_S_ac_therm else PetersenMatrix.Parameters.K_S_ac_meso | Acetate concentration below which uptake is reduced to less than half of maximum uptake |
| ADM1_Units.ConcentrationCOD | K_S_h2 | if operationMode == "thermophilic" then PetersenMatrix.Parameters.K_S_h2_therm else PetersenMatrix.Parameters.K_S_h2_meso | Hydrogen concentration below which uptake is reduced to less than half of maximum uptake |
| ADM1_Units.KineticRateConstant | k_m | {k_m_su, k_m_aa, k_m_fa, k_m_c4, k_m_pro, k_m_ac, k_m_h2} | vector of Monod maximum uptake rates |
| Real | Component_in | {S_su_in, S_aa_in, S_fa_in, S_va_in, S_bu_in, S_pro_in, S_ac_in, S_h2_in, S_ch4_in, S_IC_in, S_IN_in, S_I_in, X_c_in, X_ch_in, X_pr_in, X_li_in, X_su_in, X_aa_in, X_fa_in, X_c4_in, X_pro_in, X_ac_in, X_h2_in, X_I_in} | vector of Inflow Concentrations |
| SI.Volume | V_liquid | geometryCSTR.V_fluid | Volume of Substrate in CSTR |
| SI.Volume | V_gas | geometryCSTR.V_gas | Gas Volume inside CSTR |
| SI.Time | t_res | 20*86400 | mean residence time of substrate |
| Boolean | ComponentInput | false | =true, if Input Concentration is defined by input |
| Boolean | useBSM2 | true | true if BSM2 parameters shall be used |
| String | operationMode | "mesophilic" | |
| SI.Concentration | Cat | 40 | |
| SI.Concentration | An | 20 | Concentration of Cations and Anions of strong acids or base, whose equilibrium is assumed not to be affected by pH-Value |
| SI.MassConcentration | S_su_in | 0.01 | Concentration of Monosaccharides in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | S_aa_in | 0.001 | Concentration of Amino Acids in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | S_fa_in | 0.001 | Concentration of Long Chain Fatty Acids in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | S_va_in | 0.001 | Concentration of total Valerate in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | S_bu_in | 0.001 | Concentration of total Butyrate in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | S_pro_in | 0.001 | Concentration of total Propionate in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | S_ac_in | 0.001 | Concentration of total Acetate in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | S_h2_in | 1e-8 | Concentration of dissolved Hydrogen gas in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | S_ch4_in | 1e-5 | Concentration of dissolved Methane gas in inflowing substrate in kgCOD/m^3 |
| SI.Concentration | S_IC_in | 40 | Concentration of Inorganic Carbon in inflowing substrate in mol/m^3 |
| SI.Concentration | S_IN_in | 10 | Concentration of Inorganic Nitrogen in inflowing substrate in mol/m^3 |
| SI.MassConcentration | S_I_in | 0.02 | Concentration of Soluble Inerts in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_c_in | 2 | Concentration of Composites in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_ch_in | 5 | Concentration of Carbohydrates in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_pr_in | 20 | Concentration of Proteins in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_li_in | 5 | Concentration of Lipids in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_su_in | 0.00 | Concentration of Sugar degraders in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_aa_in | 0.01 | Concentration of Amino Acid degraders in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_fa_in | 0.01 | Concentration of LCFA degraders in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_c4_in | 0.01 | Concentration of Valerate and Butyrate degraders in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_pro_in | 0.01 | Concentration of Propionate degraders in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_ac_in | 0.01 | Concentration of Acetate degraders in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_h2_in | 0.01 | Concentration of Hydrogen degraders in inflowing substrate in kgCOD/m^3 |
| SI.MassConcentration | X_I_in | 25 | Concentration of Particulate Inerts in inflowing substrate in kgCOD/m^3 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput[24] | Components | {S_su, S_aa, S_fa, S_va, S_bu, S_pro, S_ac, S_h2, S_ch4, S_IC, S_IN, S_I, X_c, X_ch, X_pr, X_li, X_su, X_aa, X_fa, X_c4, X_pro, X_ac, X_h2, X_I} | output composition of outflow which equals composition in CSTR |
| Modelica.Blocks.Interfaces.RealInput[24] | Components_In | input composition if set from outside or taken outflow composition of other CSTR as input |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Producer.Gas.BiogasPlant.Base.GeometryCSTR | geometryCSTR | ||
| SI.Pressure | p_atm | 101300 | pressure of gas after leaving the CSTR through port |
| SI.Temperature | T | Temperatur inside reactor | |
| SI.Density | rho | Density of substrate | |
| SI.VolumeFlowRate | q_gas | gas volume flow at inside pressure | |
| SI.VolumeFlowRate | q_gas_out | q_gas*p/p_atm | gas volume flow at nominal pressure |
| SI.VolumeFlowRate | q_liquid_in | V_liquid/t_res | Substrate Volume flow flowing into the CSTR |
| SI.VolumeFlowRate | q_liquid_out | V_liquid/t_res | Substrate Volume flow leaving the CSTR |
| Boolean | gasValveOpen | ||
| SI.MassConcentration | S_su | Concentration of Monosaccharides in kgCOD/m^3 | |
| SI.MassConcentration | S_aa | Concentration of Amino Acids in kgCOD/m^3 | |
| SI.MassConcentration | S_fa | Concentration of Long Chain Fatty Acids in kgCOD/m^3 | |
| SI.MassConcentration | S_va | Concentration of total Valerate in kgCOD/m^3 | |
| SI.MassConcentration | S_bu | Concentration of total Butyrate in kgCOD/m^3 | |
| SI.MassConcentration | S_pro | Concentration of total Propionate in kgCOD/m^3 | |
| SI.MassConcentration | S_ac | Concentration of total Acetate in kgCOD/m^3 | |
| SI.MassConcentration | S_h2 | Concentration of dissolved Hydrogen gas in kgCOD/m^3 | |
| SI.MassConcentration | S_ch4 | Concentration of dissolved Methane gas in kgCOD/m^3 | |
| SI.Concentration | S_IC | Concentration of Inorganic Carbon in mol/m^3 | |
| SI.Concentration | S_IN | Concentration of Inorganic Nitrogen in mol/m^3 | |
| SI.MassConcentration | S_I | Concentration of Soluble Inerts in kgCOD/m^3 | |
| SI.MassConcentration | X_c | Concentration of Composites in kgCOD/m^3 | |
| SI.MassConcentration | X_ch | Concentration of Carbohydrates in kgCOD/m^3 | |
| SI.MassConcentration | X_pr | Concentration of Proteins in kgCOD/m^3 | |
| SI.MassConcentration | X_li | Concentration of Lipids in kgCOD/m^3 | |
| SI.MassConcentration | X_su | Concentration of Sugar degraders in kgCOD/m^3 | |
| SI.MassConcentration | X_aa | Concentration of Amino Acid degraders in kgCOD/m^3 | |
| SI.MassConcentration | X_fa | Concentration of LCFA degraders in kgCOD/m^3 | |
| SI.MassConcentration | X_c4 | Concentration of Valerate and Butyrate degraders in kgCOD/m^3 | |
| SI.MassConcentration | X_pro | Concentration of Propionate degraders in kgCOD/m^3 | |
| SI.MassConcentration | X_ac | Concentration of Acetate degraders in kgCOD/m^3 | |
| SI.MassConcentration | X_h2 | Concentration of Hydrogen degraders in kgCOD/m^3 | |
| SI.MassConcentration | X_I | Concentration of Particulate Inerts in kgCOD/m^3 | |
| SI.MassConcentration | S_gas_h2 | Concentration of Hydrogen in Gas-Phase in kgCOD/m^3 | |
| SI.MassConcentration | S_gas_ch4 | Concentration of Methane in Gas-Phase in kgCOD/m^3 | |
| SI.Concentration | S_gas_co2 | Concentration of Carbondioxide in Gas-Phase in mol/m^3 | |
| SI.PartialPressure | p_h2 | Partial Pressure of Hydrogen in gas phase | |
| SI.PartialPressure | p_ch4 | Partial Pressure of Methane in gas phase | |
| SI.PartialPressure | p_co2 | Partial Pressure of Carbondioxide in gas phase | |
| SI.PartialPressure | p_h2o | Partial Pressure of Water Vapor in gas phase | |
| SI.Pressure | p | Absolute pressure of gas inside Reactor | |
| SI.Concentration | S_cat_p | Concentration of additional Cations not related to ADM1 components in solution | |
| SI.Concentration | S_an_n | Concentration of additional Anions not relted to ADM1 components in solution | |
| SI.Concentration | S_Va_n | Concentration of Valerate Anions in solution | |
| SI.Concentration | S_Bu_n | Concentration of Butyrate Anions in solution | |
| SI.Concentration | S_Pro_n | Concentration of Propionate Anions in solution | |
| SI.Concentration | S_Ac_n | Concentration of Acetate Anions in solution | |
| SI.Concentration | S_HCO3_n | Concentration of Hydrogencarbonate Anions in solution | |
| SI.Concentration | S_NH3_aq | Concentration of Ammonia in solution | |
| SI.Concentration | S_NH4_p | Concentration of Ammonium Cations in solution | |
| SI.Concentration | S_CO2_aq | Concentration of Carbondioxide in solution | |
| SI.Concentration | S_H_p | Concentration of Protons in solution | |
| SI.Concentration | PHI | Charge Balance without Protons and Hydroxide Anions | |
| Real | pH | 3 - log10(S_H_p) | pH Wert if using mol per cubic meter instead of mol per litre |
| Real | Kw | TransiEnt.Producer.Gas.BiogasPlant.Base.ADM1.ADM1_Functions.VantHoffEquation(PetersenMatrix.Parameters.Kw_ref, PetersenMatrix.Parameters.deltH0_w, T) | Autoprotolysis Constant of Water |
| SI.Concentration | Ka_CO2 | TransiEnt.Producer.Gas.BiogasPlant.Base.ADM1.ADM1_Functions.VantHoffEquation(PetersenMatrix.Parameters.Ka_CO2_ref, PetersenMatrix.Parameters.deltH0_CO2, T) | Acid dissociation constant of CO2 in water |
| SI.Concentration | Ka_NH4 | TransiEnt.Producer.Gas.BiogasPlant.Base.ADM1.ADM1_Functions.VantHoffEquation(PetersenMatrix.Parameters.Ka_NH4_ref, PetersenMatrix.Parameters.deltH0_NH4, T) | Acid dissociation constant of Ammonium Ions |
| SI.Concentration | Ka_HVa | PetersenMatrix.Parameters.Ka_HVa_ref | Acid dissociation constant of Valyric Acid |
| SI.Concentration | Ka_HBu | PetersenMatrix.Parameters.Ka_HBu_ref | Acid dissociation constant of Butyric Acid |
| SI.Concentration | Ka_HPro | PetersenMatrix.Parameters.Ka_HPro_ref | Acid dissociation constant of Propionic Acid |
| SI.Concentration | Ka_HAc | PetersenMatrix.Parameters.Ka_HAc_ref | Acid dissociation constant of Acetic Acid |
| Real | KH_h2 | TransiEnt.Producer.Gas.BiogasPlant.Base.ADM1.ADM1_Functions.VantHoffEquation(PetersenMatrix.Parameters.KH_h2_ref, PetersenMatrix.Parameters.deltH0_H_h2, T) | Henry Coefficient for liquid gas transfer of Hydrogen |
| Real | KH_ch4 | TransiEnt.Producer.Gas.BiogasPlant.Base.ADM1.ADM1_Functions.VantHoffEquation(PetersenMatrix.Parameters.KH_ch4_ref, PetersenMatrix.Parameters.deltH0_H_ch4, T) | Henry Coefficient for liquid gas transfer of Methane |
| Real | KH_co2 | TransiEnt.Producer.Gas.BiogasPlant.Base.ADM1.ADM1_Functions.VantHoffEquation(PetersenMatrix.Parameters.KH_co2_ref, PetersenMatrix.Parameters.deltH0_H_co2, T) | Henry Coefficient for liquid gas transfer of Carbondioxide |
| Real | I_su | Coefficient describing inhibition of sugar degraders | |
| Real | I_aa | Coefficient describing inhibition of amino acid degraders | |
| Real | I_fa | Coefficient describing inhibition of LCFA degraders | |
| Real | I_c4 | Coefficient describing inhibition of Butyrate and Valerate degraders | |
| Real | I_pro | Coefficient describing inhibition of Propionate degraders | |
| Real | I_ac | Coefficient describing inhibition of Acetate degraders | |
| Real | I_h2 | Coefficient describing inhibition of hydrogen degraders | |
| Real | I | {I_su, I_aa, I_fa, I_c4, I_pro, I_ac, I_h2} | vector of Inhibition constants |
| Real | Component | {S_su, S_aa, S_fa, S_va, S_bu, S_pro, S_ac, S_h2, S_ch4, S_IC, S_IN, S_I, X_c, X_ch, X_pr, X_li, X_su, X_aa, X_fa, X_c4, X_pro, X_ac, X_h2, X_I} | Compostion vector of substrate inside CSTR |
| Real | DecayRate | cat(1, k_dec*{X_su, X_aa, X_fa, X_c4, X_pro}, {k_dec_ac*X_ac, k_dec*X_h2}) | Decay Rates of microorganisms |
| Real | ProcessRate | {k_dis, k_hyd_ch, k_hyd_pr, k_hyd_li}.*{X_c, X_ch, X_pr, X_li} | Process Rates of disintegration and hydrolysis |
| Real | MonodRate | Rates of metabolism of microorganisms | |
| Real | TransferRate | liquid to gas transfer rates | |
| Real | Reactions | vector containing all Conversion Reactions of ADM1 | |
| SI.EnergyFlowRate | Q_flow_R | Energy Flow released by metabolism reactions | |
| Modelica.Units.SI.MassConcentration | VS | organic fraction of solids | |
| Modelica.Units.SI.MassConcentration | VS_in | organic fraction of solids in inflow | |
| ADM1_PetersenMatrix | PetersenMatrix | Petersen Matrix of ADM1 |