Files
WyanMueller d2e409d10f InitalCommit
2025-11-16 10:30:26 +01:00

34 lines
934 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BaseCellSimulation.Enzyms.Nucleus
{
public class DNA_Polymerase_Delta : InternalEnzym
{
private const double EnergyCostATP = 0.5;
public DNA_Polymerase_Delta()
{
Km = 0.05;
Vmax = 1.2;
}
public override void ApplyChanges(CellRessources res, double dt)
{
double dDna = Math.Min(rate * dt, res.Res.Protein.dNTP);
dDna = res.Res.Energy.ATP >= dDna * EnergyCostATP ? dDna : res.Res.Energy.ATP / EnergyCostATP;
res.Res.Protein.dNTP -= dDna;
res.Res.Nucleus.ReplicationProgress += dDna;
res.ConsumeATP(dDna * EnergyCostATP);
}
public override void ComputeRate(Resources res)
{
Michaelis_Menten(res.Protein.dNTP);
}
}
}