Added Json Schemas

This commit is contained in:
WyanMueller
2025-11-16 19:52:52 +01:00
parent d2e409d10f
commit 0487824e63
16 changed files with 931 additions and 35 deletions
@@ -19,14 +19,14 @@ namespace BaseCellSimulation.Enzyms.Cytosol
public override void ApplyChanges(CellRessources res, double dt)
{
double used = Math.Min(rate * dt, res.Res.Carbon.FBP);
res.Res.Carbon.FBP -= used;
res.Res.Carbon.GAP += 2 * used;
double used = Math.Min(rate * dt, res.Res.Carbon.F1_6BP);
res.Res.Carbon.F1_6BP -= used;
res.Res.Carbon.GA3P += 2 * used;
}
public override void ComputeRate(Resources res)
{
Michaelis_Menten(res.Carbon.FBP);
Michaelis_Menten(res.Carbon.F1_6BP);
}
}
}
+3 -3
View File
@@ -25,8 +25,8 @@ namespace BaseCellSimulation.Enzyms.Cytosol
public override void ApplyChanges(CellRessources res, double dt)
{
double used = Math.Min(rate * dt, Math.Min(res.Res.Carbon.GAP, res.Res.Energy.NAD));
res.Res.Carbon.GAP -= used;
double used = Math.Min(rate * dt, Math.Min(res.Res.Carbon.GA3P, res.Res.Energy.NAD));
res.Res.Carbon.GA3P -= used;
res.Res.Carbon.PBG13 += used;
res.TransferNADH(used, false);
res.Res.Ions.Protons += 1.0 * used;
@@ -34,7 +34,7 @@ namespace BaseCellSimulation.Enzyms.Cytosol
public override void ComputeRate(Resources res)
{
rate = Vmax * (res.Carbon.GAP / (Km + res.Carbon.GAP)) * (res.Energy.NAD / (Km_NAD + res.Energy.NAD));
rate = Vmax * (res.Carbon.GA3P / (Km + res.Carbon.GA3P)) * (res.Energy.NAD / (Km_NAD + res.Energy.NAD));
}
}
}
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BaseCellSimulation.Enzyms.Cytosol.Hexokinasen
{
public class HK1 : Hexokinasis
{
public HK1() : base()
{
}
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BaseCellSimulation.Enzyms.Cytosol.Hexokinasen
{
internal class HK2
{
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BaseCellSimulation.Enzyms.Cytosol.Hexokinasen
{
internal class HK3
{
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BaseCellSimulation.Enzyms.Cytosol.Hexokinasen
{
internal class HK4_GK
{
}
}
@@ -4,14 +4,16 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BaseCellSimulation.Enzyms.Cytosol
namespace BaseCellSimulation.Enzyms.Cytosol.Hexokinasen
{
public class Hexokinasis : InternalEnzym
public abstract class Hexokinasis : InternalEnzym
{
public Hexokinasis() {
Km = 0.05;
Vmax = 5;
Type = EnzymType.MichelisMenten;
KmRange = new(0.01, 0.1);
VmaxRange = new(0.5, 20);
}
@@ -27,7 +27,7 @@ namespace BaseCellSimulation.Enzyms.Cytosol
{
double used = Math.Min(rate * dt, Math.Min(res.Res.Energy.ATP, res.Res.Carbon.F6P));
res.Res.Carbon.F6P -= used;
res.Res.Carbon.FBP += used;
res.Res.Carbon.F1_6BP += used;
res.ConsumeATP(used);
res.Res.Ions.Protons += used;
}