// This model generated automatically from SBML
// unit definitions
import nsrunit;
unit conversion off;
// SBML property definitions
property sbmlRole=string;
property sbmlName=string;
property sbmlCompartment=string;
// SBML reactions
// R01123: Isopentenyl_space_diphosphate => Dimethylallyl_space_diphosphate
// R02003: Geranyl_space_diphosphate Isopentenyl_space_diphosphate <=> trans_space_trans_minus_Farnesyl_space_diphosphate
// R01658: Dimethylallyl_space_diphosphate Isopentenyl_space_diphosphate <=> Geranyl_space_diphosphate
math main {
realDomain time second;
time.min=0;
extern time.max;
extern time.delta;
// variable definitions
real default = 1 L;
real uVol = 1 L;
real E2_space_5_space_1_space_10 = 0 M;
real E5_space_3_space_3_space_2 = 0 M;
real E2_space_5_space_1_space_1 = 0 M;
real Dimethylallyl_space_diphosphate(time) M;
real Geranyl_space_diphosphate(time) M;
real Isopentenyl_space_diphosphate(time) M;
real trans_space_trans_minus_Farnesyl_space_diphosphate(time) M;
real R01123(time) katal;
extern real R01123.kf;
extern real R01123.kb;
real R02003(time) katal;
extern real R02003.kf;
extern real R02003.kb;
real R01658(time) katal;
extern real R01658.kf;
extern real R01658.kb;
// equations
when (time=time.min) Dimethylallyl_space_diphosphate = 0;
(Dimethylallyl_space_diphosphate*uVol):time = R01123 + -1*R01658;
when (time=time.min) Geranyl_space_diphosphate = 0;
(Geranyl_space_diphosphate*uVol):time = -1*R02003 + R01658;
when (time=time.min) Isopentenyl_space_diphosphate = 0;
(Isopentenyl_space_diphosphate*uVol):time = -1*R01123 + -1*R02003 + -1*R01658;
when (time=time.min) trans_space_trans_minus_Farnesyl_space_diphosphate = 0;
(trans_space_trans_minus_Farnesyl_space_diphosphate*uVol):time = R02003;
R01123 = R01123.kf*Isopentenyl_space_diphosphate - R01123.kb*Dimethylallyl_space_diphosphate;
R02003 = R02003.kf*Geranyl_space_diphosphate*Isopentenyl_space_diphosphate - R02003.kb*trans_space_trans_minus_Farnesyl_space_diphosphate;
R01658 = R01658.kf*Dimethylallyl_space_diphosphate*Isopentenyl_space_diphosphate - R01658.kb*Geranyl_space_diphosphate;
// variable properties
default.sbmlRole="compartment";
uVol.sbmlRole="compartment";
E2_space_5_space_1_space_10.sbmlRole="species";
E2_space_5_space_1_space_10.sbmlCompartment="uVol";
E5_space_3_space_3_space_2.sbmlRole="species";
E5_space_3_space_3_space_2.sbmlCompartment="uVol";
E2_space_5_space_1_space_1.sbmlRole="species";
E2_space_5_space_1_space_1.sbmlCompartment="uVol";
Dimethylallyl_space_diphosphate.sbmlRole="species";
Dimethylallyl_space_diphosphate.sbmlCompartment="uVol";
Geranyl_space_diphosphate.sbmlRole="species";
Geranyl_space_diphosphate.sbmlCompartment="uVol";
Isopentenyl_space_diphosphate.sbmlRole="species";
Isopentenyl_space_diphosphate.sbmlCompartment="uVol";
trans_space_trans_minus_Farnesyl_space_diphosphate.sbmlRole="species";
trans_space_trans_minus_Farnesyl_space_diphosphate.sbmlCompartment="uVol";
R01123.sbmlRole="rate";
R01123.kf.sbmlRole="rate";
R01123.kb.sbmlRole="rate";
R02003.sbmlRole="rate";
R02003.kf.sbmlRole="rate";
R02003.kb.sbmlRole="rate";
R01658.sbmlRole="rate";
R01658.kf.sbmlRole="rate";
R01658.kb.sbmlRole="rate";
}