43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BaseCellSimulation.Enzyms.Membrane.GLUT
|
|
{
|
|
public class GLUT1 : MembranEnzyme
|
|
{
|
|
public GLUT1()
|
|
{
|
|
Km = 1.5; // Example Km value in mM
|
|
Vmax = 0.5;
|
|
|
|
KmRange = new(1.0, 3.0);
|
|
VmaxRange = new(0.1, 10.0);
|
|
}
|
|
|
|
public override void ApplyChanges(CellRessources res, double dt)
|
|
{
|
|
double flux = Math.Min(res.Env.Glucose, rate * dt);
|
|
res.Env.Glucose -= flux;
|
|
res.Res.Carbon.Glucose += flux;
|
|
}
|
|
|
|
public override double CalculateGradient(CellRessources res)
|
|
{
|
|
return res.Env.Glucose - res.Res.Carbon.Glucose;
|
|
}
|
|
|
|
public override void ComputeRate(double gradient, EnviromentState Env)
|
|
{
|
|
if (gradient <= 0)
|
|
{
|
|
rate = 0;
|
|
return;
|
|
}
|
|
Michaelis_Menten(gradient);
|
|
}
|
|
}
|
|
}
|