36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
// Noch gemacht werden
|
|
namespace BaseCellSimulation.Enzyms.Mytochondrion
|
|
{
|
|
public class ANTTransporter : InternalEnzym
|
|
{
|
|
public ANTTransporter()
|
|
{
|
|
Vmax = 0.3;
|
|
Km = 0.02; // mM ADP
|
|
}
|
|
|
|
public override void ApplyChanges(CellRessources res, double dt)
|
|
{
|
|
double adpAvailable = res.Res.Energy.ADP;
|
|
double atpAvailable = res.Res.Energy.ATP;
|
|
double transportable = Math.Min(adpAvailable, rate * dt);
|
|
transportable = Math.Min(transportable, atpAvailable); // Sicherstellen, dass genug ATP zum Tausch vorhanden ist
|
|
if (transportable <= 0) return;
|
|
res.Res.Energy.ADP -= transportable;
|
|
res.Res.Energy.ATP += transportable;
|
|
}
|
|
|
|
public override void ComputeRate(Resources res)
|
|
{
|
|
double adp = res.Energy.ADP;
|
|
Michaelis_Menten(adp);
|
|
}
|
|
}
|
|
}
|