|
BioCMAMC-ST
|
Compile time elemental closure of the reactions of Models::Acetate. More...
Functions | |
| constexpr double | e_surplus (double m_cmol_sub, double gamma_sub, double y_x) |
| constexpr double | y_o2_ox (double m_cmol_sub, double gamma_sub, double y_x) |
| constexpr double | y_ac_fer (double m_cmol_sub, double gamma_sub, double y_x) |
| sub -> X + Ac + CO2 (+H2O) : gAc per g of substrate | |
Variables | |
| constexpr double | m_o2 = 32.0 |
| [g/mol] | |
| constexpr double | m_cmol_glucose = 30.0 |
| C6H12O6, 180/6 [g/Cmol]. | |
| constexpr double | m_cmol_acetate = 30.0 |
| C2H4O2, 60/2 [g/Cmol]. | |
| constexpr double | m_cmol_biomass = 24.6 |
| CH1.8O0.5N0.2 [g/Cmol]. | |
| constexpr double | gamma_glucose = 4.0 |
| Degree of reduction per C-mole. | |
| constexpr double | gamma_acetate = 4.0 |
| (2*4 + 4 - 2*2)/2 | |
| constexpr double | gamma_biomass = 4.2 |
| 4 + 1.8 - 1.0 - 0.6 | |
Compile time elemental closure of the reactions of Models::Acetate.
Only the growth yields are free parameters; the oxygen and acetate coefficients are the only ones that balance carbon and electrons, so they are derived here instead of being tabulated. Everything is per C-mole of the carbon substrate, with NH3 as nitrogen source; water closes H and O automatically once C, N and the electrons balance.
Nothing in this namespace is evaluated at run time.
|
constexpr |
Electrons left by 1 g of substrate once y_x g of biomass are built. They must go somewhere: to O2 if the reaction is oxidative, to acetate if it is fermentative. This is what forbids an arbitrary acetate yield.
|
constexpr |
sub -> X + Ac + CO2 (+H2O) : gAc per g of substrate
|
constexpr |
sub + O2 -> X + CO2 (+H2O) : gO2 per g of substrate. At y_x = 0 this gives back the complete combustion demand, 192/180 for glucose: that value is only correct for a reaction that does not grow.
|
inlineconstexpr |
(2*4 + 4 - 2*2)/2
|
inlineconstexpr |
4 + 1.8 - 1.0 - 0.6
|
inlineconstexpr |
Degree of reduction per C-mole.
4 + 2 - 2
|
inlineconstexpr |
C2H4O2, 60/2 [g/Cmol].
|
inlineconstexpr |
CH1.8O0.5N0.2 [g/Cmol].
|
inlineconstexpr |
C6H12O6, 180/6 [g/Cmol].
|
inlineconstexpr |
[g/mol]