/* There are a total of 0 entries in the algebraic variable array. There are a total of 5 entries in each of the rate and state variable arrays. There are a total of 8 entries in the constant variable array. */ /* * VOI is time in component environment (second). * STATES[0] is Ca in component Ca (micromolar). * CONSTANTS[0] is k1 in component reaction_constants (second_order_rate_constant). * CONSTANTS[1] is k1_ in component reaction_constants (first_order_rate_constant). * CONSTANTS[2] is k3 in component reaction_constants (second_order_rate_constant). * CONSTANTS[3] is k3_ in component reaction_constants (first_order_rate_constant). * CONSTANTS[4] is k4 in component reaction_constants (first_order_rate_constant). * CONSTANTS[5] is k4_ in component reaction_constants (second_order_rate_constant). * STATES[1] is E in component E (micromolar). * STATES[2] is CaE in component CaE (micromolar). * STATES[3] is Ca2E_ in component Ca2E_ (micromolar). * STATES[4] is CaE_ in component CaE_ (micromolar). * CONSTANTS[6] is k2 in component reaction_constants (first_order_rate_constant). * CONSTANTS[7] is k2_ in component reaction_constants (first_order_rate_constant). * RATES[0] is d/dt Ca in component Ca (micromolar). * RATES[1] is d/dt E in component E (micromolar). * RATES[2] is d/dt CaE in component CaE (micromolar). * RATES[3] is d/dt Ca2E_ in component Ca2E_ (micromolar). * RATES[4] is d/dt CaE_ in component CaE_ (micromolar). */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { STATES[0] = 0.05; CONSTANTS[0] = 1.0E14; CONSTANTS[1] = 1000.0; CONSTANTS[2] = 1.0E14; CONSTANTS[3] = 10.0; CONSTANTS[4] = 20.0; CONSTANTS[5] = 0.0; STATES[1] = 240.0; STATES[2] = 0.01; STATES[3] = 1.0; STATES[4] = 0.01; CONSTANTS[6] = 500.0; CONSTANTS[7] = 1200.0; } void computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { RATES[0] = ( CONSTANTS[1]*STATES[2]+ CONSTANTS[3]*STATES[3]+ CONSTANTS[4]*STATES[3]) - ( CONSTANTS[0]*STATES[0]*STATES[1]+ CONSTANTS[2]*STATES[0]*STATES[4]+ CONSTANTS[5]*2.00000*STATES[0]*STATES[1]); RATES[1] = ( CONSTANTS[1]*STATES[2]+ CONSTANTS[4]*STATES[3]) - ( CONSTANTS[0]*STATES[0]*STATES[1]+ CONSTANTS[5]*2.00000*STATES[0]*STATES[1]); RATES[2] = ( CONSTANTS[0]*STATES[0]*STATES[1]+ CONSTANTS[7]*STATES[4]) - ( CONSTANTS[1]*STATES[2]+ CONSTANTS[6]*STATES[2]); RATES[3] = ( CONSTANTS[2]*STATES[4]*STATES[0]+ CONSTANTS[5]*STATES[1]*2.00000*STATES[0]) - ( CONSTANTS[3]*STATES[3]+ CONSTANTS[4]*STATES[3]); RATES[4] = ( CONSTANTS[3]*STATES[3]+ CONSTANTS[6]*STATES[2]) - ( CONSTANTS[7]*STATES[4]+ CONSTANTS[2]*STATES[0]*STATES[4]); } void computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { }