InitalCommit

This commit is contained in:
WyanMueller
2025-11-16 10:30:26 +01:00
parent 8b0b73bba8
commit d2e409d10f
73 changed files with 3209 additions and 0 deletions
@@ -0,0 +1,35 @@
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);
}
}
}