InitalCommit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BaseCellSimulation.Enzyms.Nucleus
|
||||
{
|
||||
public class Topoisomerase_II : InternalEnzym
|
||||
{
|
||||
private const double EnergyCostATP = 0.2;
|
||||
|
||||
public Topoisomerase_II()
|
||||
{
|
||||
Km = 0.03;
|
||||
Vmax = 0.5;
|
||||
}
|
||||
|
||||
public override void ApplyChanges(CellRessources res, double dt)
|
||||
{
|
||||
double repair = Math.Min(rate * dt, res.Res.Protein.DNA_damage);
|
||||
repair = res.Res.Energy.ATP >= repair * EnergyCostATP ? repair : res.Res.Energy.ATP / EnergyCostATP;
|
||||
res.Res.Protein.DNA_damage -= repair;
|
||||
res.ConsumeATP(repair * EnergyCostATP);
|
||||
}
|
||||
|
||||
public override void ComputeRate(Resources res)
|
||||
{
|
||||
Michaelis_Menten(res.Protein.DNA_damage);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user