/* There are a total of 0 entries in the algebraic variable array. There are a total of 19 entries in each of the rate and state variable arrays. There are a total of 63 entries in the constant variable array. */ /* * VOI is time in component environment (hour). * STATES[0] is MP in component MP (nanomolar). * CONSTANTS[0] is vsP in component MP (flux). * CONSTANTS[1] is vmP in component MP (flux). * CONSTANTS[2] is kdmp in component MP (first_order_rate_constant). * CONSTANTS[3] is KAP in component MP (nanomolar). * CONSTANTS[4] is KmP in component MP (nanomolar). * CONSTANTS[5] is n in component model_parameters (dimensionless). * STATES[1] is BN in component BN (nanomolar). * STATES[2] is MC in component MC (nanomolar). * CONSTANTS[6] is vsC in component MC (flux). * CONSTANTS[7] is vmC in component MC (flux). * CONSTANTS[8] is kdmc in component MC (first_order_rate_constant). * CONSTANTS[9] is KAC in component MC (nanomolar). * CONSTANTS[10] is KmC in component MC (nanomolar). * STATES[3] is MB in component MB (nanomolar). * CONSTANTS[11] is vsB in component MB (flux). * CONSTANTS[12] is vmB in component MB (flux). * CONSTANTS[13] is kdmb in component MB (first_order_rate_constant). * CONSTANTS[14] is KIB in component MB (nanomolar). * CONSTANTS[15] is KmB in component MB (nanomolar). * CONSTANTS[16] is m in component model_parameters (dimensionless). * STATES[4] is RN in component RN (nanomolar). * STATES[5] is MR in component MR (nanomolar). * CONSTANTS[17] is vsR in component MR (flux). * CONSTANTS[18] is vmR in component MR (flux). * CONSTANTS[19] is kdmr in component MR (first_order_rate_constant). * CONSTANTS[20] is KAR in component MR (nanomolar). * CONSTANTS[21] is KmR in component MR (nanomolar). * CONSTANTS[22] is h in component model_parameters (dimensionless). * STATES[6] is PC in component PC (nanomolar). * CONSTANTS[23] is ksP in component model_parameters (first_order_rate_constant). * CONSTANTS[24] is Kp in component model_parameters (nanomolar). * CONSTANTS[25] is Kdp in component model_parameters (nanomolar). * CONSTANTS[26] is k3 in component model_parameters (second_order_rate_constant). * CONSTANTS[27] is k4 in component model_parameters (first_order_rate_constant). * CONSTANTS[28] is kdn in component model_parameters (first_order_rate_constant). * CONSTANTS[29] is V1P in component model_parameters (flux). * CONSTANTS[30] is V2P in component model_parameters (flux). * STATES[7] is PCP in component PCP (nanomolar). * STATES[8] is PCC in component PCC (nanomolar). * STATES[9] is CC in component CC (nanomolar). * CONSTANTS[31] is ksC in component model_parameters (first_order_rate_constant). * CONSTANTS[32] is kdnc in component model_parameters (first_order_rate_constant). * CONSTANTS[33] is V1C in component model_parameters (flux). * CONSTANTS[34] is V2C in component model_parameters (flux). * STATES[10] is CCP in component CCP (nanomolar). * STATES[11] is RC in component RC (nanomolar). * CONSTANTS[35] is ksR in component model_parameters (first_order_rate_constant). * CONSTANTS[36] is Kd in component model_parameters (nanomolar). * CONSTANTS[37] is k9 in component model_parameters (first_order_rate_constant). * CONSTANTS[38] is k10 in component model_parameters (first_order_rate_constant). * CONSTANTS[39] is vdRC in component model_parameters (flux). * CONSTANTS[40] is vdPC in component model_parameters (flux). * CONSTANTS[41] is vdCC in component model_parameters (flux). * CONSTANTS[42] is k1 in component model_parameters (first_order_rate_constant). * CONSTANTS[43] is k2 in component model_parameters (first_order_rate_constant). * CONSTANTS[44] is V1PC in component model_parameters (flux). * CONSTANTS[45] is V2PC in component model_parameters (flux). * STATES[12] is PCCP in component PCCP (nanomolar). * STATES[13] is PCN in component PCN (nanomolar). * CONSTANTS[46] is k7 in component model_parameters (second_order_rate_constant). * CONSTANTS[47] is k8 in component model_parameters (first_order_rate_constant). * CONSTANTS[48] is V3PC in component model_parameters (flux). * CONSTANTS[49] is V4PC in component model_parameters (flux). * STATES[14] is PCNP in component PCNP (nanomolar). * STATES[15] is IN in component IN (nanomolar). * CONSTANTS[50] is vdRN in component model_parameters (flux). * CONSTANTS[51] is vdPCC in component model_parameters (flux). * CONSTANTS[52] is vdPCN in component model_parameters (flux). * STATES[16] is BC in component BC (nanomolar). * CONSTANTS[53] is ksB in component model_parameters (first_order_rate_constant). * CONSTANTS[54] is k5 in component model_parameters (first_order_rate_constant). * CONSTANTS[55] is k6 in component model_parameters (first_order_rate_constant). * CONSTANTS[56] is V1B in component model_parameters (flux). * CONSTANTS[57] is V2B in component model_parameters (flux). * STATES[17] is BCP in component BCP (nanomolar). * CONSTANTS[58] is vdBC in component model_parameters (flux). * CONSTANTS[59] is V3B in component model_parameters (flux). * CONSTANTS[60] is V4B in component model_parameters (flux). * STATES[18] is BNP in component BNP (nanomolar). * CONSTANTS[61] is vdBN in component model_parameters (flux). * CONSTANTS[62] is vdIN in component model_parameters (flux). * RATES[0] is d/dt MP in component MP (nanomolar). * RATES[2] is d/dt MC in component MC (nanomolar). * RATES[3] is d/dt MB in component MB (nanomolar). * RATES[5] is d/dt MR in component MR (nanomolar). * RATES[6] is d/dt PC in component PC (nanomolar). * RATES[9] is d/dt CC in component CC (nanomolar). * RATES[11] is d/dt RC in component RC (nanomolar). * RATES[7] is d/dt PCP in component PCP (nanomolar). * RATES[10] is d/dt CCP in component CCP (nanomolar). * RATES[8] is d/dt PCC in component PCC (nanomolar). * RATES[13] is d/dt PCN in component PCN (nanomolar). * RATES[4] is d/dt RN in component RN (nanomolar). * RATES[12] is d/dt PCCP in component PCCP (nanomolar). * RATES[14] is d/dt PCNP in component PCNP (nanomolar). * RATES[16] is d/dt BC in component BC (nanomolar). * RATES[17] is d/dt BCP in component BCP (nanomolar). * RATES[1] is d/dt BN in component BN (nanomolar). * RATES[18] is d/dt BNP in component BNP (nanomolar). * RATES[15] is d/dt IN in component IN (nanomolar). */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { STATES[0] = 0.1; CONSTANTS[0] = 2.4; CONSTANTS[1] = 2.2; CONSTANTS[2] = 0.02; CONSTANTS[3] = 0.6; CONSTANTS[4] = 0.3; CONSTANTS[5] = 2.0; STATES[1] = 0.1; STATES[2] = 1.2; CONSTANTS[6] = 2.2; CONSTANTS[7] = 2.0; CONSTANTS[8] = 0.02; CONSTANTS[9] = 0.6; CONSTANTS[10] = 0.4; STATES[3] = 9; CONSTANTS[11] = 1.8; CONSTANTS[12] = 1.3; CONSTANTS[13] = 0.02; CONSTANTS[14] = 2.2; CONSTANTS[15] = 0.4; CONSTANTS[16] = 2.0; STATES[4] = 0.1; STATES[5] = 1.5; CONSTANTS[17] = 1.6; CONSTANTS[18] = 1.6; CONSTANTS[19] = 0.02; CONSTANTS[20] = 0.6; CONSTANTS[21] = 0.4; CONSTANTS[22] = 2.0; STATES[6] = 0.1; CONSTANTS[23] = 1.2; CONSTANTS[24] = 1.006; CONSTANTS[25] = 0.1; CONSTANTS[26] = 0.8; CONSTANTS[27] = 0.4; CONSTANTS[28] = 0.02; CONSTANTS[29] = 9.6; CONSTANTS[30] = 0.6; STATES[7] = 0.1; STATES[8] = 0.1; STATES[9] = 0.1; CONSTANTS[31] = 3.2; CONSTANTS[32] = 0.02; CONSTANTS[33] = 1.2; CONSTANTS[34] = 0.2; STATES[10] = 0.1; STATES[11] = 0.1; CONSTANTS[35] = 1.7; CONSTANTS[36] = 0.3; CONSTANTS[37] = 0.8; CONSTANTS[38] = 0.4; CONSTANTS[39] = 4.4; CONSTANTS[40] = 3.4; CONSTANTS[41] = 1.4; CONSTANTS[42] = 0.8; CONSTANTS[43] = 0.4; CONSTANTS[44] = 2.4; CONSTANTS[45] = 0.2; STATES[12] = 0.1; STATES[13] = 0.1; CONSTANTS[46] = 1.0; CONSTANTS[47] = 0.2; CONSTANTS[48] = 2.4; CONSTANTS[49] = 0.2; STATES[14] = 0.1; STATES[15] = 0.1; CONSTANTS[50] = 0.8; CONSTANTS[51] = 1.4; CONSTANTS[52] = 1.4; STATES[16] = 0.1; CONSTANTS[53] = 0.32; CONSTANTS[54] = 0.8; CONSTANTS[55] = 0.4; CONSTANTS[56] = 1.4; CONSTANTS[57] = 0.2; STATES[17] = 0.1; CONSTANTS[58] = 3.0; CONSTANTS[59] = 1.4; CONSTANTS[60] = 0.4; STATES[18] = 0.1; CONSTANTS[61] = 3.0; CONSTANTS[62] = 1.6; } void computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { RATES[0] = CONSTANTS[0]*(pow(STATES[1], CONSTANTS[5])/(pow(CONSTANTS[3], CONSTANTS[5])+pow(STATES[1], CONSTANTS[5]))) - ( CONSTANTS[1]*(STATES[0]/(CONSTANTS[4]+STATES[0]))+ CONSTANTS[2]*STATES[0]); RATES[2] = CONSTANTS[6]*(pow(STATES[1], CONSTANTS[5])/(pow(CONSTANTS[9], CONSTANTS[5])+pow(STATES[1], CONSTANTS[5]))) - ( CONSTANTS[7]*(STATES[2]/(CONSTANTS[10]+STATES[2]))+ CONSTANTS[8]*STATES[2]); RATES[3] = CONSTANTS[11]*(pow(CONSTANTS[14], CONSTANTS[16])/(pow(CONSTANTS[14], CONSTANTS[16])+pow(STATES[4], CONSTANTS[16]))) - ( CONSTANTS[12]*(STATES[3]/(CONSTANTS[15]+STATES[3]))+ CONSTANTS[13]*STATES[3]); RATES[5] = CONSTANTS[17]*(pow(STATES[1], CONSTANTS[22])/(pow(CONSTANTS[20], CONSTANTS[22])+pow(STATES[1], CONSTANTS[22]))) - ( CONSTANTS[18]*(STATES[5]/(CONSTANTS[21]+STATES[5]))+ CONSTANTS[19]*STATES[5]); RATES[6] = ( CONSTANTS[23]*STATES[0]+ CONSTANTS[30]*(STATES[7]/(CONSTANTS[25]+STATES[7]))+ CONSTANTS[27]*STATES[8]) - ( CONSTANTS[29]*(STATES[6]/(CONSTANTS[24]+STATES[6]))+ CONSTANTS[26]*STATES[6]*STATES[9]+ CONSTANTS[28]*STATES[6]); RATES[9] = ( CONSTANTS[31]*STATES[2]+ CONSTANTS[34]*(STATES[10]/(CONSTANTS[25]+STATES[10]))+ CONSTANTS[27]*STATES[8]) - ( CONSTANTS[33]*(STATES[9]/(CONSTANTS[24]+STATES[9]))+ CONSTANTS[26]*STATES[6]*STATES[9]+ CONSTANTS[32]*STATES[9]); RATES[11] = ( CONSTANTS[35]*STATES[5]+ CONSTANTS[38]*STATES[4]) - ( CONSTANTS[37]*STATES[11]+ CONSTANTS[39]*(STATES[11]/(CONSTANTS[36]+STATES[11]))+ CONSTANTS[28]*STATES[11]); RATES[7] = CONSTANTS[29]*(STATES[6]/(CONSTANTS[24]+STATES[6])) - ( CONSTANTS[30]*(STATES[7]/(CONSTANTS[25]+STATES[7]))+ CONSTANTS[40]*(STATES[7]/(CONSTANTS[36]+STATES[7]))+ CONSTANTS[28]*STATES[7]); RATES[10] = CONSTANTS[33]*(STATES[9]/(CONSTANTS[24]+STATES[9])) - ( CONSTANTS[34]*(STATES[10]/(CONSTANTS[25]+STATES[10]))+ CONSTANTS[41]*(STATES[10]/(CONSTANTS[36]+STATES[10]))+ CONSTANTS[28]*STATES[10]); RATES[8] = ( CONSTANTS[45]*(STATES[12]/(CONSTANTS[25]+STATES[12]))+ CONSTANTS[26]*STATES[6]*STATES[9]+ CONSTANTS[43]*STATES[13]) - ( CONSTANTS[44]*(STATES[8]/(CONSTANTS[24]+STATES[8]))+ CONSTANTS[27]*STATES[8]+ CONSTANTS[42]*STATES[8]+ CONSTANTS[28]*STATES[8]); RATES[13] = ( CONSTANTS[49]*(STATES[14]/(CONSTANTS[25]+STATES[14]))+ CONSTANTS[42]*STATES[8]+ CONSTANTS[47]*STATES[15]) - ( CONSTANTS[48]*(STATES[13]/(CONSTANTS[24]+STATES[13]))+ CONSTANTS[43]*STATES[13]+ CONSTANTS[46]*STATES[1]*STATES[13]+ CONSTANTS[28]*STATES[13]); RATES[4] = CONSTANTS[37]*STATES[11] - ( CONSTANTS[38]*STATES[4]+ CONSTANTS[50]*(STATES[4]/(CONSTANTS[36]+STATES[4]))+ CONSTANTS[28]*STATES[4]); RATES[12] = CONSTANTS[44]*(STATES[8]/(CONSTANTS[24]+STATES[8])) - ( CONSTANTS[45]*(STATES[12]/(CONSTANTS[25]+STATES[12]))+ CONSTANTS[51]*(STATES[12]/(CONSTANTS[36]+STATES[12]))+ CONSTANTS[28]*STATES[12]); RATES[14] = CONSTANTS[48]*(STATES[13]/(CONSTANTS[24]+STATES[13])) - ( CONSTANTS[49]*(STATES[14]/(CONSTANTS[25]+STATES[14]))+ CONSTANTS[52]*(STATES[14]/(CONSTANTS[36]+STATES[14]))+ CONSTANTS[28]*STATES[14]); RATES[16] = ( CONSTANTS[57]*(STATES[17]/(CONSTANTS[25]+STATES[17]))+ CONSTANTS[55]*STATES[1]+ CONSTANTS[53]*STATES[3]) - ( CONSTANTS[56]*(STATES[16]/(CONSTANTS[24]+STATES[16]))+ CONSTANTS[54]*STATES[16]+ CONSTANTS[28]*STATES[16]); RATES[17] = CONSTANTS[56]*(STATES[16]/(CONSTANTS[24]+STATES[16])) - ( CONSTANTS[57]*(STATES[17]/(CONSTANTS[25]+STATES[17]))+ CONSTANTS[58]*(STATES[17]/(CONSTANTS[36]+STATES[17]))+ CONSTANTS[28]*STATES[17]); RATES[1] = ( CONSTANTS[60]*(STATES[18]/(CONSTANTS[25]+STATES[18]))+ CONSTANTS[54]*STATES[16]+ CONSTANTS[47]*STATES[15]) - ( CONSTANTS[59]*(STATES[1]/(CONSTANTS[24]+STATES[1]))+ CONSTANTS[55]*STATES[1]+ CONSTANTS[46]*STATES[1]*STATES[13]+ CONSTANTS[28]*STATES[1]); RATES[18] = CONSTANTS[59]*(STATES[1]/(CONSTANTS[24]+STATES[1])) - ( CONSTANTS[60]*(STATES[18]/(CONSTANTS[25]+STATES[18]))+ CONSTANTS[61]*(STATES[18]/(CONSTANTS[36]+STATES[18]))+ CONSTANTS[28]*STATES[18]); RATES[15] = CONSTANTS[46]*STATES[1]*STATES[13] - ( CONSTANTS[47]*STATES[15]+ CONSTANTS[62]*(STATES[15]/(CONSTANTS[36]+STATES[15]))+ CONSTANTS[28]*STATES[15]); } void computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { }