InitalCommit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BaseCellSimulation.Enzyms.Mytochondrion
|
||||
{
|
||||
public class TCAEnzyme : InternalEnzym
|
||||
{
|
||||
public TCAEnzyme()
|
||||
{
|
||||
Vmax = 0.1; // mM/s
|
||||
Km = 0.02; // mM Acetyl-CoA
|
||||
}
|
||||
|
||||
public override void ComputeRate(Resources res)
|
||||
{
|
||||
Michaelis_Menten(res.Carbon.AcetylCoA);
|
||||
// Abhängig vom Redoxstatus
|
||||
double redox = res.Energy.NAD / (res.Energy.NAD + res.Energy.NADH + 1e-9);
|
||||
rate *= redox;
|
||||
}
|
||||
|
||||
public override void ApplyChanges(CellRessources res, double dt)
|
||||
{
|
||||
double used = Math.Min(res.Res.Carbon.AcetylCoA, rate * dt);
|
||||
res.Res.Carbon.AcetylCoA -= used;
|
||||
res.TransferNADH(2 * used, false);
|
||||
//res.FADH2 += used;
|
||||
res.Res.Energy.GTP += used; // optional
|
||||
res.Res.Carbon.CO2 += 2 * used;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user