35 lines
930 B
C#
35 lines
930 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BaseCellSimulation.Enzyms.Cytosol
|
|
{
|
|
public class Hexokinasis : InternalEnzym
|
|
{
|
|
public Hexokinasis() {
|
|
Km = 0.05;
|
|
Vmax = 5;
|
|
|
|
KmRange = new(0.01, 0.1);
|
|
VmaxRange = new(0.5, 20);
|
|
}
|
|
|
|
public override void ApplyChanges(CellRessources res, double dt)
|
|
{
|
|
double used = Math.Min(rate * dt, Math.Min(res.Res.Carbon.Glucose, res.Res.Energy.ATP));
|
|
res.Res.Carbon.Glucose -= used;
|
|
res.Res.Carbon.G6P += used;
|
|
res.ConsumeATP(used);
|
|
res.Res.Ions.Protons += used;
|
|
}
|
|
|
|
//todo noch machen dass atpberücksichtigt wird
|
|
public override void ComputeRate(Resources res)
|
|
{
|
|
Michaelis_Menten(res.Carbon.Glucose);
|
|
}
|
|
}
|
|
}
|