Files
CellSimulation/BaseCellSimulation/Enzyms/Lysosome/LysosomalPhosphatase.cs
WyanMueller d2e409d10f InitalCommit
2025-11-16 10:30:26 +01:00

33 lines
878 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BaseCellSimulation.Enzyms.Lysosome
{
public class LysosomalPhosphatase : InternalEnzym
{
public LysosomalPhosphatase()
{
Vmax = 0.1;
Km = 0.05;
}
public override void ComputeRate(Resources res)
{
Michaelis_Menten(res.PhosphorylatedSubstrates);
}
public override void ApplyChanges(CellRessources res, double dt)
{
double degraded = rate * dt;
degraded = Math.Min(degraded, res.Res.PhosphorylatedSubstrates);
res.Res.PhosphorylatedSubstrates -= degraded;
res.Res.Phosphate.Pi += degraded;
res.Res.Phosphate.PPi += degraded * 0.1; // falls Pyrophosphat entsteht
}
}
}