InitalCommit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BaseCellSimulation.Enzyms.Mytochondrion
|
||||
{
|
||||
public class ATPSynthase : InternalEnzym
|
||||
{
|
||||
public ATPSynthase()
|
||||
{
|
||||
Vmax = 0.4;
|
||||
Km = 0.05; // ADP
|
||||
}
|
||||
|
||||
|
||||
public override void ApplyChanges(CellRessources res, double dt)
|
||||
{
|
||||
|
||||
double used = Math.Min(res.Res.Energy.ADP, rate * dt);
|
||||
res.RegenerateATP(used);
|
||||
}
|
||||
|
||||
public override void ComputeRate(Resources res)
|
||||
{
|
||||
double gradient = Math.Clamp(res.Energy.NADH / (res.Energy.NAD + 1e-9), 0.0, 5.0);
|
||||
rate = Vmax * (gradient / (Km + gradient));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user