Generated Code
The following is c_ida code generated by the CellML API from this CellML file. (Back to language selection)
The raw code is available.
/* There are a total of 8 entries in the algebraic variable array. There are a total of 4 entries in each of the rate and state variable arrays. There are a total of 566 entries in the constant variable array. */ /* * CONSTANTS[0] is AMK in component input_values (dimensionless). * CONSTANTS[1] is TVD in component input_values (L_per_minute). * CONSTANTS[2] is STH in component input_values (dimensionless). * CONSTANTS[3] is NOD in component input_values (monovalent_mEq_per_minute). * CONSTANTS[4] is KOD in component input_values (monovalent_mEq_per_minute). * CONSTANTS[5] is VUD in component input_values (L_per_minute). * CONSTANTS[6] is A1K in component parameter_values (minute). * CONSTANTS[7] is A2K in component parameter_values (minute). * CONSTANTS[8] is A3K in component parameter_values (minute). * CONSTANTS[9] is A4K in component parameter_values (minute). * CONSTANTS[10] is A4K2 in component parameter_values (minute). * CONSTANTS[11] is AARK in component parameter_values (mmHg_minute_per_L). * CONSTANTS[12] is AARLL in component parameter_values (mmHg_minute_per_L). * CONSTANTS[13] is ADHINF in component parameter_values (dimensionless). * CONSTANTS[14] is ADHKLL in component parameter_values (dimensionless). * CONSTANTS[15] is ADHKUL in component parameter_values (dimensionless). * CONSTANTS[16] is ADHPAM in component parameter_values (per_mmHg2). * CONSTANTS[17] is ADHPUL in component parameter_values (mmHg). * CONSTANTS[18] is ADHTC in component parameter_values (minute). * CONSTANTS[19] is ADHVLL in component parameter_values (dimensionless). * CONSTANTS[20] is ADHVUL in component parameter_values (dimensionless). * CONSTANTS[21] is AH10 in component parameter_values (dimensionless). * CONSTANTS[22] is AH11 in component parameter_values (minute). * CONSTANTS[23] is AH9 in component parameter_values (per_mmHg). * CONSTANTS[24] is AHMNAR in component parameter_values (dimensionless). * CONSTANTS[25] is AHTHM in component parameter_values (dimensionless). * CONSTANTS[26] is ALCLK in component parameter_values (dimensionless). * CONSTANTS[27] is ALDINF in component parameter_values (dimensionless). * CONSTANTS[28] is ALDKNS in component parameter_values (dimensionless). * CONSTANTS[29] is ALDMM in component parameter_values (dimensionless). * CONSTANTS[30] is AM1LL in component parameter_values (dimensionless). * CONSTANTS[31] is AM1UL in component parameter_values (dimensionless). * CONSTANTS[32] is AMCSNS in component parameter_values (dimensionless). * CONSTANTS[33] is AMKM in component parameter_values (dimensionless). * CONSTANTS[34] is AMKMUL in component parameter_values (dimensionless). * CONSTANTS[35] is AMM1LM in component parameter_values (dimensionless). * CONSTANTS[36] is AMM4 in component parameter_values (dimensionless). * CONSTANTS[37] is AMNALL in component parameter_values (dimensionless). * CONSTANTS[38] is AMNAM in component parameter_values (dimensionless). * CONSTANTS[39] is AMNAUL in component parameter_values (dimensionless). * CONSTANTS[40] is AMT in component parameter_values (minute). * CONSTANTS[41] is ANCSNS in component parameter_values (dimensionless). * CONSTANTS[42] is ANGINF in component parameter_values (dimensionless). * CONSTANTS[43] is ANGKNS in component parameter_values (dimensionless). * CONSTANTS[44] is ANMALD in component parameter_values (dimensionless). * CONSTANTS[45] is ANMAM in component parameter_values (dimensionless). * CONSTANTS[46] is ANMARL in component parameter_values (dimensionless). * CONSTANTS[47] is ANMEM in component parameter_values (dimensionless). * CONSTANTS[48] is ANMKEL in component parameter_values (dimensionless). * CONSTANTS[49] is ANMKEM in component parameter_values (dimensionless). * CONSTANTS[50] is ANMLL in component parameter_values (dimensionless). * CONSTANTS[51] is ANMNAM in component parameter_values (dimensionless). * CONSTANTS[52] is ANMSLT in component parameter_values (dimensionless). * CONSTANTS[53] is ANMTM in component parameter_values (dimensionless). * CONSTANTS[54] is ANMUL in component parameter_values (dimensionless). * CONSTANTS[55] is ANPTC in component parameter_values (minute). * CONSTANTS[56] is ANPXAF in component parameter_values (mmHg_minute_per_L). * CONSTANTS[57] is ANPXUL in component parameter_values (dimensionless). * CONSTANTS[58] is ANT in component parameter_values (minute). * CONSTANTS[59] is ANULL in component parameter_values (dimensionless). * CONSTANTS[60] is ANUM in component parameter_values (dimensionless). * CONSTANTS[61] is ANUVM in component parameter_values (dimensionless). * CONSTANTS[62] is ANV in component parameter_values (minute). * CONSTANTS[63] is ANXM in component parameter_values (dimensionless). * CONSTANTS[64] is ANY in component parameter_values (litre). * CONSTANTS[65] is AR1LM in component parameter_values (dimensionless). * CONSTANTS[66] is AR2LM in component parameter_values (dimensionless). * CONSTANTS[67] is ARF in component parameter_values (dimensionless). * CONSTANTS[68] is AUC1 in component parameter_values (dimensionless). * CONSTANTS[69] is AUDMP in component parameter_values (minute). * CONSTANTS[70] is AUK in component parameter_values (per_minute). * CONSTANTS[71] is AUL in component parameter_values (litre). * CONSTANTS[72] is AULPM in component parameter_values (dimensionless). * CONSTANTS[73] is AUM1 in component parameter_values (dimensionless). * CONSTANTS[74] is AUM2 in component parameter_values (dimensionless). * CONSTANTS[75] is AUMAX in component parameter_values (dimensionless). * CONSTANTS[76] is AUMIN in component parameter_values (dimensionless). * CONSTANTS[77] is AUMK1 in component parameter_values (dimensionless). * CONSTANTS[78] is AUN1 in component parameter_values (dimensionless). * CONSTANTS[79] is AURG in component parameter_values (dimensionless). * CONSTANTS[80] is AUS in component parameter_values (dimensionless). * CONSTANTS[81] is AUSLP in component parameter_values (dimensionless). * CONSTANTS[82] is AUTO in component parameter_values (dimensionless). * CONSTANTS[83] is AUTOGN in component parameter_values (dimensionless). * CONSTANTS[84] is AUTOSN in component parameter_values (dimensionless). * CONSTANTS[85] is AUX in component parameter_values (dimensionless). * CONSTANTS[86] is BAROTC in component parameter_values (minute). * CONSTANTS[87] is CFC in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[88] is CKEEX in component parameter_values (dimensionless). * CONSTANTS[89] is CMPTSS in component parameter_values (dimensionless). * CONSTANTS[90] is CN2 in component parameter_values (per_mmHg). * CONSTANTS[91] is CN7 in component parameter_values (dimensionless). * CONSTANTS[92] is CNR in component parameter_values (monovalent_mEq_per_litre). * CONSTANTS[93] is CPF in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[94] is CPK in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[95] is CPR in component parameter_values (gram_per_L). * CONSTANTS[96] is CV in component parameter_values (L_per_mmHg). * CONSTANTS[97] is CRRFLX in component parameter_values (mmHg). * CONSTANTS[98] is DIURET in component parameter_values (dimensionless). * CONSTANTS[99] is DHDTR in component parameter_values (per_mmHg_per_minute). * CONSTANTS[100] is DTNAR in component parameter_values (monovalent_mEq_per_minute). * CONSTANTS[101] is DTNARL in component parameter_values (monovalent_mEq_per_minute). * CONSTANTS[102] is EARK in component parameter_values (mmHg_minute_per_L). * CONSTANTS[103] is EARLL in component parameter_values (mmHg_minute_per_L). * CONSTANTS[104] is EFAFR in component parameter_values (dimensionless). * CONSTANTS[105] is EXC in component parameter_values (dimensionless). * CONSTANTS[106] is EXCML in component parameter_values (dimensionless). * CONSTANTS[107] is EXCXP in component parameter_values (dimensionless). * CONSTANTS[108] is EXCXP2 in component parameter_values (dimensionless). * CONSTANTS[109] is EXE in component parameter_values (mmHg). * CONSTANTS[110] is GCOPF in component parameter_values (per_mmHg). * CONSTANTS[111] is GFLC in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[112] is GFNDMP in component parameter_values (dimensionless). * CONSTANTS[113] is GFNLL in component parameter_values (L_per_minute). * CONSTANTS[114] is GPPD in component parameter_values (dimensionless). * CONSTANTS[115] is HM6 in component parameter_values (mmHg). * CONSTANTS[116] is HM8 in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[117] is HTAUML in component parameter_values (dimensionless). * CONSTANTS[118] is KORGN in component parameter_values (dimensionless). * CONSTANTS[119] is KORNER in component parameter_values (dimensionless). * CONSTANTS[120] is KORREN in component parameter_values (dimensionless). * CONSTANTS[121] is KORTC in component parameter_values (minute). * CONSTANTS[122] is LPDE in component parameter_values (dimensionless). * CONSTANTS[123] is LPK in component parameter_values (L_per_minute). * CONSTANTS[124] is LPPR in component parameter_values (gram_per_minute). * CONSTANTS[125] is MDFL1 in component parameter_values (dimensionless). * CONSTANTS[126] is MDFLKM in component parameter_values (monovalent_mEq_per_litre). * CONSTANTS[127] is MDFLW2 in component parameter_values (dimensionless). * CONSTANTS[128] is MDFLWX in component parameter_values (dimensionless). * CONSTANTS[129] is MDMP in component parameter_values (dimensionless). * CONSTANTS[130] is O2A in component parameter_values (dimensionless). * CONSTANTS[131] is O2CHMO in component parameter_values (per_mmHg). * CONSTANTS[132] is OMM in component parameter_values (mL_per_minute). * CONSTANTS[133] is PA4 in component parameter_values (dimensionless). * CONSTANTS[134] is PAEX in component parameter_values (dimensionless). * CONSTANTS[135] is PCE in component parameter_values (dimensionless). * CONSTANTS[136] is PCR in component parameter_values (mmHg). * CONSTANTS[137] is PR1LL in component parameter_values (mmHg). * CONSTANTS[138] is PGHF in component parameter_values (L_mmHg_per_gram). * CONSTANTS[139] is PK2 in component parameter_values (mmHg_per_mL). * CONSTANTS[140] is PL2 in component parameter_values (L_mL_per_minute_per_mmHg). * CONSTANTS[141] is PLDF in component parameter_values (mmHg). * CONSTANTS[142] is PM5 in component parameter_values (per_mmHg). * CONSTANTS[143] is PO2ADV in component parameter_values (dimensionless). * CONSTANTS[144] is POK in component parameter_values (dimensionless). * CONSTANTS[145] is POM in component parameter_values (dimensionless). * CONSTANTS[146] is POM2 in component parameter_values (dimensionless). * CONSTANTS[147] is PON in component parameter_values (dimensionless). * CONSTANTS[148] is POR in component parameter_values (mmHg). * CONSTANTS[149] is POZ in component parameter_values (dimensionless). * CONSTANTS[150] is PXTP in component parameter_values (mmHg). * CONSTANTS[151] is QAOLM in component parameter_values (dimensionless). * CONSTANTS[152] is QRF in component parameter_values (L_per_minute). * CONSTANTS[153] is RABSC in component parameter_values (per_mmHg). * CONSTANTS[154] is RAM in component parameter_values (mmHg_minute_per_L). * CONSTANTS[155] is RAPRSP in component parameter_values (mmHg). * CONSTANTS[156] is RAR in component parameter_values (mmHg_minute_per_L). * CONSTANTS[157] is RCDFDP in component parameter_values (minute). * CONSTANTS[158] is RCDFPC in component parameter_values (dimensionless). * CONSTANTS[159] is REK in component parameter_values (dimensionless). * CONSTANTS[160] is RFABKM in component parameter_values (monovalent_mEq_per_minute). * CONSTANTS[161] is RFABDM in component parameter_values (dimensionless). * CONSTANTS[162] is RFABDP in component parameter_values (dimensionless). * CONSTANTS[163] is RFCDFT in component parameter_values (dimensionless). * CONSTANTS[164] is RKC in component parameter_values (per_minute). * CONSTANTS[165] is RNAGTC in component parameter_values (minute). * CONSTANTS[166] is RNAUAD in component parameter_values (per_minute). * CONSTANTS[167] is RPS in component parameter_values (dimensionless). * CONSTANTS[168] is RTPPR in component parameter_values (dimensionless). * CONSTANTS[169] is RTPPRS in component parameter_values (mmHg). * CONSTANTS[170] is RTSPRS in component parameter_values (mmHg). * CONSTANTS[171] is RVRS in component parameter_values (mmHg_minute_per_L). * CONSTANTS[172] is RVSM in component parameter_values (mmHg_minute_per_L). * CONSTANTS[173] is SR in component parameter_values (dimensionless). * CONSTANTS[174] is SR2 in component parameter_values (dimensionless). * CONSTANTS[175] is SRK in component parameter_values (minute). * CONSTANTS[176] is SRK2 in component parameter_values (minute). * CONSTANTS[177] is STA in component parameter_values (dimensionless). * CONSTANTS[178] is TENSGN in component parameter_values (dimensionless). * CONSTANTS[179] is TENSTC in component parameter_values (minute). * CONSTANTS[180] is TIMETR in component parameter_values (minute). * CONSTANTS[181] is TRNSFS in component parameter_values (dimensionless). * CONSTANTS[182] is TRPL in component parameter_values (L_per_minute). * CONSTANTS[183] is TSSLML in component parameter_values (dimensionless). * CONSTANTS[184] is TSSLTC in component parameter_values (per_minute). * CONSTANTS[185] is TVDDL in component parameter_values (minute). * CONSTANTS[186] is U in component parameter_values (dimensionless). * CONSTANTS[187] is VID1 in component parameter_values (L_per_minute). * CONSTANTS[188] is VIDML in component parameter_values (litre2_per_monovalent_mEq_per_minute). * CONSTANTS[189] is VNTSTM in component parameter_values (dimensionless). * CONSTANTS[190] is VP1 in component parameter_values (dimensionless). * CONSTANTS[191] is VPTISS in component parameter_values (litre). * CONSTANTS[192] is VTSF in component parameter_values (litre). * CONSTANTS[193] is VV9 in component parameter_values (litre). * CONSTANTS[194] is X in component parameter_values (dimensionless). * CONSTANTS[195] is Z in component parameter_values (dimensionless). * CONSTANTS[196] is Z4 in component parameter_values (dimensionless). * CONSTANTS[197] is Z5 in component parameter_values (dimensionless). * CONSTANTS[198] is Z6 in component parameter_values (dimensionless). * CONSTANTS[199] is Z7 in component parameter_values (dimensionless). * CONSTANTS[200] is Z10 in component parameter_values (mmHg). * CONSTANTS[201] is Z11 in component parameter_values (per_mmHg2). * CONSTANTS[202] is Z12 in component parameter_values (dimensionless). * CONSTANTS[203] is Z13 in component parameter_values (dimensionless). * CONSTANTS[204] is Z14 in component parameter_values (dimensionless). * CONSTANTS[205] is Z16 in component parameter_values (dimensionless). * CONSTANTS[206] is Z18 in component parameter_values (dimensionless). * CONSTANTS[207] is Z19 in component parameter_values (dimensionless). * CONSTANTS[208] is KID in component parameter_values (monovalent_mEq_per_minute). * CONSTANTS[209] is URFORM in component parameter_values (mOsm_per_minute). * CONSTANTS[210] is AUV in component parameter_values (dimensionless). * CONSTANTS[211] is AUY in component parameter_values (dimensionless). * CONSTANTS[212] is O2M in component parameter_values (mL_per_minute). * CONSTANTS[213] is NID in component parameter_values (monovalent_mEq_per_minute). * CONSTANTS[214] is ATRFBM in component parameter_values (dimensionless). * CONSTANTS[215] is GBL in component parameter_values (mmHg). * CONSTANTS[216] is RNAUGN in component parameter_values (minute_per_L). * CONSTANTS[217] is RNAULL in component parameter_values (dimensionless). * CONSTANTS[218] is RNAUUL in component parameter_values (dimensionless). * CONSTANTS[219] is HSR in component parameter_values (dimensionless). * CONSTANTS[220] is HSL in component parameter_values (dimensionless). * CONSTANTS[221] is HMK in component parameter_values (dimensionless). * CONSTANTS[222] is PO2AMB in component parameter_values (mmHg). * CONSTANTS[223] is HKM in component parameter_values (dimensionless). * CONSTANTS[224] is DR in component parameter_values (L_per_minute). * CONSTANTS[225] is ANPKNS in component parameter_values (dimensionless). * CONSTANTS[226] is RMULT1 in component parameter_values (dimensionless). * CONSTANTS[227] is GLPCA in component parameter_values (mmHg). * CONSTANTS[228] is RFN in component parameter_values (L_per_minute). * CONSTANTS[229] is RFABX in component parameter_values (dimensionless). * CONSTANTS[230] is ANPINF in component parameter_values (dimensionless). * CONSTANTS[231] is FIS in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[232] is CPPD in component parameter_values (gram_per_L). * CONSTANTS[233] is TRRBC in component parameter_values (L_per_minute). * CONSTANTS[234] is HYL in component parameter_values (gram). * CONSTANTS[235] is ATRVM in component parameter_values (litre). * CONSTANTS[236] is ADHC_init in component state_variables (dimensionless). * CONSTANTS[237] is AHY_init in component state_variables (dimensionless). * CONSTANTS[238] is AMC_init in component state_variables (dimensionless). * CONSTANTS[239] is AMM1T_init in component state_variables (dimensionless). * CONSTANTS[240] is AMM2_init in component state_variables (dimensionless). * CONSTANTS[241] is ANC_init in component state_variables (dimensionless). * CONSTANTS[242] is ANPC_init in component state_variables (dimensionless). * CONSTANTS[243] is ANX1_init in component state_variables (dimensionless). * CONSTANTS[244] is AR1T_init in component state_variables (dimensionless). * CONSTANTS[245] is AR2T_init in component state_variables (dimensionless). * CONSTANTS[246] is AR3T_init in component state_variables (dimensionless). * CONSTANTS[247] is AU1_init in component state_variables (dimensionless). * CONSTANTS[248] is AU4_init in component state_variables (dimensionless). * CONSTANTS[249] is AU6_init in component state_variables (dimensionless). * CONSTANTS[250] is DTKA_init in component state_variables (monovalent_mEq_per_minute). * CONSTANTS[251] is HMD1_init in component state_variables (dimensionless). * CONSTANTS[252] is HPL_init in component state_variables (dimensionless). * CONSTANTS[253] is HPR_init in component state_variables (dimensionless). * CONSTANTS[254] is KTOT_init in component state_variables (monovalent_mEq). * CONSTANTS[255] is NAE_init in component state_variables (monovalent_mEq). * CONSTANTS[256] is O2VAD1_init in component state_variables (dimensionless). * CONSTANTS[257] is OSV_init in component state_variables (dimensionless). * CONSTANTS[258] is OVA_init in component state_variables (mL_per_L). * CONSTANTS[259] is OVS_init in component state_variables (dimensionless). * CONSTANTS[260] is PAR1_init in component state_variables (mmHg). * CONSTANTS[261] is PC_init in component state_variables (mmHg). * CONSTANTS[262] is PLUR_init in component state_variables (mOsm). * CONSTANTS[263] is PPR1_init in component state_variables (gram). * CONSTANTS[264] is PRP_init in component state_variables (gram). * CONSTANTS[265] is QO2T_init in component state_variables (mL). * CONSTANTS[266] is QOM1_init in component state_variables (mL). * CONSTANTS[267] is RNAUG3_init in component state_variables (dimensionless). * CONSTANTS[268] is TSP_init in component state_variables (gram). * CONSTANTS[269] is TVD_init in component state_variables (L_per_minute). * CONSTANTS[270] is VAS1_init in component state_variables (litre). * CONSTANTS[271] is VIC_init in component state_variables (litre). * CONSTANTS[272] is VLA1_init in component state_variables (litre). * CONSTANTS[273] is VPA1_init in component state_variables (litre). * CONSTANTS[274] is VPF1_init in component state_variables (litre). * CONSTANTS[275] is VP_init in component state_variables (litre). * CONSTANTS[276] is VRA1_init in component state_variables (litre). * CONSTANTS[277] is VRC_init in component state_variables (litre). * CONSTANTS[278] is VTS2_init in component state_variables (litre). * CONSTANTS[279] is VTW_init in component state_variables (litre). * CONSTANTS[280] is VV6_init in component state_variables (litre). * CONSTANTS[281] is VV7_init in component state_variables (litre). * CONSTANTS[282] is VVS1_init in component state_variables (litre). * VOI is time in component environment (minute). * ALGEBRAIC[5] is CKE in component extracellular_K_concentration (monovalent_mEq_per_litre). * ALGEBRAIC[3] is VEC in component extracellular_fluid_volume (litre). * ALGEBRAIC[4] is CNA in component extracellular_Na_concentration (monovalent_mEq_per_litre). * STATES[0] is VTW in component total_body_water (litre). * CONSTANTS[283] is A1K in component parameter_values (minute). * CONSTANTS[284] is A2K in component parameter_values (minute). * CONSTANTS[285] is A3K in component parameter_values (minute). * CONSTANTS[286] is A4K in component parameter_values (minute). * CONSTANTS[287] is A4K2 in component parameter_values (minute). * CONSTANTS[288] is AARK in component parameter_values (mmHg_minute_per_L). * CONSTANTS[289] is AARLL in component parameter_values (mmHg_minute_per_L). * CONSTANTS[290] is ADHINF in component parameter_values (dimensionless). * CONSTANTS[291] is ADHKLL in component parameter_values (dimensionless). * CONSTANTS[292] is ADHKUL in component parameter_values (dimensionless). * CONSTANTS[293] is ADHPAM in component parameter_values (per_mmHg2). * CONSTANTS[294] is ADHPUL in component parameter_values (mmHg). * CONSTANTS[295] is ADHTC in component parameter_values (minute). * CONSTANTS[296] is ADHVLL in component parameter_values (dimensionless). * CONSTANTS[297] is ADHVUL in component parameter_values (dimensionless). * CONSTANTS[298] is AH10 in component parameter_values (dimensionless). * CONSTANTS[299] is AH11 in component parameter_values (minute). * CONSTANTS[300] is AH9 in component parameter_values (per_mmHg). * CONSTANTS[301] is AHMNAR in component parameter_values (dimensionless). * CONSTANTS[302] is AHTHM in component parameter_values (dimensionless). * CONSTANTS[303] is ALCLK in component parameter_values (dimensionless). * CONSTANTS[304] is ALDINF in component parameter_values (dimensionless). * CONSTANTS[305] is ALDKNS in component parameter_values (dimensionless). * CONSTANTS[306] is ALDMM in component parameter_values (dimensionless). * CONSTANTS[307] is AM1LL in component parameter_values (dimensionless). * CONSTANTS[308] is AM1UL in component parameter_values (dimensionless). * CONSTANTS[309] is AMCSNS in component parameter_values (dimensionless). * CONSTANTS[310] is AMKM in component parameter_values (dimensionless). * CONSTANTS[311] is AMKMUL in component parameter_values (dimensionless). * CONSTANTS[312] is AMM1LM in component parameter_values (dimensionless). * CONSTANTS[313] is AMM4 in component parameter_values (dimensionless). * CONSTANTS[314] is AMNALL in component parameter_values (dimensionless). * CONSTANTS[315] is AMNAM in component parameter_values (dimensionless). * CONSTANTS[316] is AMNAUL in component parameter_values (dimensionless). * CONSTANTS[317] is AMT in component parameter_values (minute). * CONSTANTS[318] is ANCSNS in component parameter_values (dimensionless). * CONSTANTS[319] is ANGINF in component parameter_values (dimensionless). * CONSTANTS[320] is ANGKNS in component parameter_values (dimensionless). * CONSTANTS[321] is ANMALD in component parameter_values (dimensionless). * CONSTANTS[322] is ANMAM in component parameter_values (dimensionless). * CONSTANTS[323] is ANMARL in component parameter_values (dimensionless). * CONSTANTS[324] is ANMEM in component parameter_values (dimensionless). * CONSTANTS[325] is ANMKEL in component parameter_values (dimensionless). * CONSTANTS[326] is ANMKEM in component parameter_values (dimensionless). * CONSTANTS[327] is ANMLL in component parameter_values (dimensionless). * CONSTANTS[328] is ANMNAM in component parameter_values (dimensionless). * CONSTANTS[329] is ANMSLT in component parameter_values (dimensionless). * CONSTANTS[330] is ANMTM in component parameter_values (dimensionless). * CONSTANTS[331] is ANMUL in component parameter_values (dimensionless). * CONSTANTS[332] is ANPTC in component parameter_values (minute). * CONSTANTS[333] is ANPXAF in component parameter_values (mmHg_minute_per_L). * CONSTANTS[334] is ANPXUL in component parameter_values (dimensionless). * CONSTANTS[335] is ANT in component parameter_values (minute). * CONSTANTS[336] is ANULL in component parameter_values (dimensionless). * CONSTANTS[337] is ANUM in component parameter_values (dimensionless). * CONSTANTS[338] is ANUVM in component parameter_values (dimensionless). * CONSTANTS[339] is ANV in component parameter_values (minute). * CONSTANTS[340] is ANXM in component parameter_values (dimensionless). * CONSTANTS[341] is ANY in component parameter_values (litre). * CONSTANTS[342] is AR1LM in component parameter_values (dimensionless). * CONSTANTS[343] is AR2LM in component parameter_values (dimensionless). * CONSTANTS[344] is ARF in component parameter_values (dimensionless). * CONSTANTS[345] is AUC1 in component parameter_values (dimensionless). * CONSTANTS[346] is AUDMP in component parameter_values (minute). * CONSTANTS[347] is AUK in component parameter_values (per_minute). * CONSTANTS[348] is AUL in component parameter_values (litre). * CONSTANTS[349] is AULPM in component parameter_values (dimensionless). * CONSTANTS[350] is AUM1 in component parameter_values (dimensionless). * CONSTANTS[351] is AUM2 in component parameter_values (dimensionless). * CONSTANTS[352] is AUMAX in component parameter_values (dimensionless). * CONSTANTS[353] is AUMIN in component parameter_values (dimensionless). * CONSTANTS[354] is AUMK1 in component parameter_values (dimensionless). * CONSTANTS[355] is AUN1 in component parameter_values (dimensionless). * CONSTANTS[356] is AURG in component parameter_values (dimensionless). * CONSTANTS[357] is AUS in component parameter_values (dimensionless). * CONSTANTS[358] is AUSLP in component parameter_values (dimensionless). * CONSTANTS[359] is AUTO in component parameter_values (dimensionless). * CONSTANTS[360] is AUTOGN in component parameter_values (dimensionless). * CONSTANTS[361] is AUTOSN in component parameter_values (dimensionless). * CONSTANTS[362] is AUX in component parameter_values (dimensionless). * CONSTANTS[363] is BAROTC in component parameter_values (minute). * CONSTANTS[364] is CFC in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[365] is CKEEX in component parameter_values (dimensionless). * CONSTANTS[366] is CMPTSS in component parameter_values (dimensionless). * CONSTANTS[367] is CN2 in component parameter_values (per_mmHg). * CONSTANTS[368] is CN7 in component parameter_values (dimensionless). * CONSTANTS[369] is CNR in component parameter_values (monovalent_mEq_per_litre). * CONSTANTS[370] is CPF in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[371] is CPK in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[372] is CPR in component parameter_values (gram_per_L). * CONSTANTS[373] is CV in component parameter_values (L_per_mmHg). * CONSTANTS[374] is CRRFLX in component parameter_values (mmHg). * CONSTANTS[375] is DIURET in component parameter_values (dimensionless). * CONSTANTS[376] is DHDTR in component parameter_values (per_mmHg_per_minute). * CONSTANTS[377] is DTNAR in component parameter_values (monovalent_mEq_per_minute). * CONSTANTS[378] is DTNARL in component parameter_values (monovalent_mEq_per_minute). * CONSTANTS[379] is EARK in component parameter_values (mmHg_minute_per_L). * CONSTANTS[380] is EARLL in component parameter_values (mmHg_minute_per_L). * CONSTANTS[381] is EFAFR in component parameter_values (dimensionless). * CONSTANTS[382] is EXC in component parameter_values (dimensionless). * CONSTANTS[383] is EXCML in component parameter_values (dimensionless). * CONSTANTS[384] is EXCXP in component parameter_values (dimensionless). * CONSTANTS[385] is EXCXP2 in component parameter_values (dimensionless). * CONSTANTS[386] is EXE in component parameter_values (mmHg). * CONSTANTS[387] is GCOPF in component parameter_values (per_mmHg). * CONSTANTS[388] is GFLC in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[389] is GFNDMP in component parameter_values (dimensionless). * CONSTANTS[390] is GFNLL in component parameter_values (L_per_minute). * CONSTANTS[391] is GPPD in component parameter_values (dimensionless). * CONSTANTS[392] is HM6 in component parameter_values (mmHg). * CONSTANTS[393] is HM8 in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[394] is HTAUML in component parameter_values (dimensionless). * CONSTANTS[395] is KORGN in component parameter_values (dimensionless). * CONSTANTS[396] is KORNER in component parameter_values (dimensionless). * CONSTANTS[397] is KORREN in component parameter_values (dimensionless). * CONSTANTS[398] is KORTC in component parameter_values (minute). * CONSTANTS[399] is LPDE in component parameter_values (dimensionless). * CONSTANTS[400] is LPK in component parameter_values (L_per_minute). * CONSTANTS[401] is LPPR in component parameter_values (gram_per_minute). * CONSTANTS[402] is MDFL1 in component parameter_values (dimensionless). * CONSTANTS[403] is MDFLKM in component parameter_values (monovalent_mEq_per_litre). * CONSTANTS[404] is MDFLW2 in component parameter_values (dimensionless). * CONSTANTS[405] is MDFLWX in component parameter_values (dimensionless). * CONSTANTS[406] is MDMP in component parameter_values (dimensionless). * CONSTANTS[407] is O2A in component parameter_values (dimensionless). * CONSTANTS[408] is O2CHMO in component parameter_values (per_mmHg). * CONSTANTS[409] is OMM in component parameter_values (mL_per_minute). * CONSTANTS[410] is PA4 in component parameter_values (dimensionless). * CONSTANTS[411] is PAEX in component parameter_values (dimensionless). * CONSTANTS[412] is PCE in component parameter_values (dimensionless). * CONSTANTS[413] is PCR in component parameter_values (mmHg). * CONSTANTS[414] is PR1LL in component parameter_values (mmHg). * CONSTANTS[415] is PGHF in component parameter_values (L_mmHg_per_gram). * CONSTANTS[416] is PK2 in component parameter_values (mmHg_per_mL). * CONSTANTS[417] is PL2 in component parameter_values (L_mL_per_minute_per_mmHg). * CONSTANTS[418] is PLDF in component parameter_values (mmHg). * CONSTANTS[419] is PM5 in component parameter_values (per_mmHg). * CONSTANTS[420] is PO2ADV in component parameter_values (dimensionless). * CONSTANTS[421] is POK in component parameter_values (dimensionless). * CONSTANTS[422] is POM in component parameter_values (dimensionless). * CONSTANTS[423] is POM2 in component parameter_values (dimensionless). * CONSTANTS[424] is PON in component parameter_values (dimensionless). * CONSTANTS[425] is POR in component parameter_values (mmHg). * CONSTANTS[426] is POZ in component parameter_values (dimensionless). * CONSTANTS[427] is PXTP in component parameter_values (mmHg). * CONSTANTS[428] is QAOLM in component parameter_values (dimensionless). * CONSTANTS[429] is QRF in component parameter_values (L_per_minute). * CONSTANTS[430] is RABSC in component parameter_values (per_mmHg). * CONSTANTS[431] is RAM in component parameter_values (mmHg_minute_per_L). * CONSTANTS[432] is RAPRSP in component parameter_values (mmHg). * CONSTANTS[433] is RAR in component parameter_values (mmHg_minute_per_L). * CONSTANTS[434] is RCDFDP in component parameter_values (minute). * CONSTANTS[435] is RCDFPC in component parameter_values (dimensionless). * CONSTANTS[436] is REK in component parameter_values (dimensionless). * CONSTANTS[437] is RFABKM in component parameter_values (monovalent_mEq_per_minute). * CONSTANTS[438] is RFABDM in component parameter_values (dimensionless). * CONSTANTS[439] is RFABDP in component parameter_values (dimensionless). * CONSTANTS[440] is RFCDFT in component parameter_values (dimensionless). * CONSTANTS[441] is RKC in component parameter_values (per_minute). * CONSTANTS[442] is RNAGTC in component parameter_values (minute). * CONSTANTS[443] is RNAUAD in component parameter_values (per_minute). * CONSTANTS[444] is RPS in component parameter_values (dimensionless). * CONSTANTS[445] is RTPPR in component parameter_values (dimensionless). * CONSTANTS[446] is RTPPRS in component parameter_values (mmHg). * CONSTANTS[447] is RTSPRS in component parameter_values (mmHg). * CONSTANTS[448] is RVRS in component parameter_values (mmHg_minute_per_L). * CONSTANTS[449] is RVSM in component parameter_values (mmHg_minute_per_L). * CONSTANTS[450] is SR in component parameter_values (dimensionless). * CONSTANTS[451] is SR2 in component parameter_values (dimensionless). * CONSTANTS[452] is SRK in component parameter_values (minute). * CONSTANTS[453] is SRK2 in component parameter_values (minute). * CONSTANTS[454] is STA in component parameter_values (dimensionless). * CONSTANTS[455] is TENSGN in component parameter_values (dimensionless). * CONSTANTS[456] is TENSTC in component parameter_values (minute). * CONSTANTS[457] is TIMETR in component parameter_values (minute). * CONSTANTS[458] is TRNSFS in component parameter_values (dimensionless). * CONSTANTS[459] is TRPL in component parameter_values (L_per_minute). * CONSTANTS[460] is TSSLML in component parameter_values (dimensionless). * CONSTANTS[461] is TSSLTC in component parameter_values (per_minute). * CONSTANTS[462] is TVDDL in component parameter_values (minute). * CONSTANTS[463] is U in component parameter_values (dimensionless). * CONSTANTS[464] is VID1 in component parameter_values (L_per_minute). * CONSTANTS[465] is VIDML in component parameter_values (litre2_per_monovalent_mEq_per_minute). * CONSTANTS[466] is VNTSTM in component parameter_values (dimensionless). * CONSTANTS[467] is VP1 in component parameter_values (dimensionless). * CONSTANTS[468] is VPTISS in component parameter_values (litre). * CONSTANTS[469] is VTSF in component parameter_values (litre). * CONSTANTS[470] is VV9 in component parameter_values (litre). * CONSTANTS[471] is X in component parameter_values (dimensionless). * CONSTANTS[472] is Z in component parameter_values (dimensionless). * CONSTANTS[473] is Z4 in component parameter_values (dimensionless). * CONSTANTS[474] is Z5 in component parameter_values (dimensionless). * CONSTANTS[475] is Z6 in component parameter_values (dimensionless). * CONSTANTS[476] is Z7 in component parameter_values (dimensionless). * CONSTANTS[477] is Z10 in component parameter_values (mmHg). * CONSTANTS[478] is Z11 in component parameter_values (per_mmHg2). * CONSTANTS[479] is Z12 in component parameter_values (dimensionless). * CONSTANTS[480] is Z13 in component parameter_values (dimensionless). * CONSTANTS[481] is Z14 in component parameter_values (dimensionless). * CONSTANTS[482] is Z16 in component parameter_values (dimensionless). * CONSTANTS[483] is Z18 in component parameter_values (dimensionless). * CONSTANTS[484] is Z19 in component parameter_values (dimensionless). * CONSTANTS[485] is KID in component parameter_values (monovalent_mEq_per_minute). * CONSTANTS[486] is URFORM in component parameter_values (mOsm_per_minute). * CONSTANTS[487] is AUV in component parameter_values (dimensionless). * CONSTANTS[488] is AUY in component parameter_values (dimensionless). * CONSTANTS[489] is O2M in component parameter_values (mL_per_minute). * CONSTANTS[490] is NID in component parameter_values (monovalent_mEq_per_minute). * CONSTANTS[491] is ATRFBM in component parameter_values (dimensionless). * CONSTANTS[492] is GBL in component parameter_values (mmHg). * CONSTANTS[493] is RNAUGN in component parameter_values (minute_per_L). * CONSTANTS[494] is RNAULL in component parameter_values (dimensionless). * CONSTANTS[495] is RNAUUL in component parameter_values (dimensionless). * CONSTANTS[496] is HSR in component parameter_values (dimensionless). * CONSTANTS[497] is HSL in component parameter_values (dimensionless). * CONSTANTS[498] is HMK in component parameter_values (dimensionless). * CONSTANTS[499] is PO2AMB in component parameter_values (mmHg). * CONSTANTS[500] is HKM in component parameter_values (dimensionless). * CONSTANTS[501] is DR in component parameter_values (L_per_minute). * CONSTANTS[502] is ANPKNS in component parameter_values (dimensionless). * CONSTANTS[503] is RMULT1 in component parameter_values (dimensionless). * CONSTANTS[504] is GLPCA in component parameter_values (mmHg). * CONSTANTS[505] is RFN in component parameter_values (L_per_minute). * CONSTANTS[506] is RFABX in component parameter_values (dimensionless). * CONSTANTS[507] is ANPINF in component parameter_values (dimensionless). * CONSTANTS[508] is FIS in component parameter_values (L_per_minute_per_mmHg). * CONSTANTS[509] is CPPD in component parameter_values (gram_per_L). * CONSTANTS[510] is TRRBC in component parameter_values (L_per_minute). * CONSTANTS[511] is HYL in component parameter_values (gram). * CONSTANTS[512] is ATRVM in component parameter_values (litre). * CONSTANTS[513] is ADHC_init in component state_variables (dimensionless). * CONSTANTS[514] is AHY_init in component state_variables (dimensionless). * CONSTANTS[515] is AMC_init in component state_variables (dimensionless). * CONSTANTS[516] is AMM1T_init in component state_variables (dimensionless). * CONSTANTS[517] is AMM2_init in component state_variables (dimensionless). * CONSTANTS[518] is ANC_init in component state_variables (dimensionless). * CONSTANTS[519] is ANPC_init in component state_variables (dimensionless). * CONSTANTS[520] is ANX1_init in component state_variables (dimensionless). * CONSTANTS[521] is AR1T_init in component state_variables (dimensionless). * CONSTANTS[522] is AR2T_init in component state_variables (dimensionless). * CONSTANTS[523] is AR3T_init in component state_variables (dimensionless). * CONSTANTS[524] is AU1_init in component state_variables (dimensionless). * CONSTANTS[525] is AU4_init in component state_variables (dimensionless). * CONSTANTS[526] is AU6_init in component state_variables (dimensionless). * CONSTANTS[527] is DTKA_init in component state_variables (monovalent_mEq_per_minute). * CONSTANTS[528] is HMD1_init in component state_variables (dimensionless). * CONSTANTS[529] is HPL_init in component state_variables (dimensionless). * CONSTANTS[530] is HPR_init in component state_variables (dimensionless). * CONSTANTS[531] is KTOT_init in component state_variables (monovalent_mEq). * CONSTANTS[532] is NAE_init in component state_variables (monovalent_mEq). * CONSTANTS[533] is O2VAD1_init in component state_variables (dimensionless). * CONSTANTS[534] is OSV_init in component state_variables (dimensionless). * CONSTANTS[535] is OVA_init in component state_variables (mL_per_L). * CONSTANTS[536] is OVS_init in component state_variables (dimensionless). * CONSTANTS[537] is PAR1_init in component state_variables (mmHg). * CONSTANTS[538] is PC_init in component state_variables (mmHg). * CONSTANTS[539] is PLUR_init in component state_variables (mOsm). * CONSTANTS[540] is PPR1_init in component state_variables (gram). * CONSTANTS[541] is PRP_init in component state_variables (gram). * CONSTANTS[542] is QO2T_init in component state_variables (mL). * CONSTANTS[543] is QOM1_init in component state_variables (mL). * CONSTANTS[544] is RNAUG3_init in component state_variables (dimensionless). * CONSTANTS[545] is TSP_init in component state_variables (gram). * CONSTANTS[546] is TVD_init in component state_variables (L_per_minute). * CONSTANTS[547] is VAS1_init in component state_variables (litre). * CONSTANTS[548] is VIC_init in component state_variables (litre). * CONSTANTS[549] is VLA1_init in component state_variables (litre). * CONSTANTS[550] is VPA1_init in component state_variables (litre). * CONSTANTS[551] is VPF1_init in component state_variables (litre). * CONSTANTS[552] is VP_init in component state_variables (litre). * CONSTANTS[553] is VRA1_init in component state_variables (litre). * CONSTANTS[554] is VRC_init in component state_variables (litre). * CONSTANTS[555] is VTS2_init in component state_variables (litre). * CONSTANTS[556] is VTW_init in component state_variables (litre). * CONSTANTS[557] is VV6_init in component state_variables (litre). * CONSTANTS[558] is VV7_init in component state_variables (litre). * CONSTANTS[559] is VVS1_init in component state_variables (litre). * CONSTANTS[560] is NED in component extracellular_Na_concentration (monovalent_mEq_per_minute). * STATES[1] is NAE in component extracellular_Na_concentration (monovalent_mEq). * CONSTANTS[561] is AMK1 in component aldosterone_effect_on_cellular_K_distribution (dimensionless). * ALGEBRAIC[0] is KE in component extracellular_K_concentration (monovalent_mEq). * STATES[2] is KTOT in component extracellular_K_concentration (monovalent_mEq). * CONSTANTS[562] is KTOTD in component extracellular_K_concentration (monovalent_mEq_per_minute). * STATES[3] is VIC in component intracellular_fluid_volume (litre). * ALGEBRAIC[2] is CKI in component intracellular_K_concentration (monovalent_mEq_per_litre). * ALGEBRAIC[1] is KI in component intracellular_K_concentration (monovalent_mEq). * ALGEBRAIC[7] is VID in component intracellular_fluid_volume (L_per_minute). * ALGEBRAIC[6] is CCD in component intracellular_fluid_volume (monovalent_mEq_per_litre). * RATES[1] is d/dt NAE in component extracellular_Na_concentration (monovalent_mEq). * RATES[2] is d/dt KTOT in component extracellular_K_concentration (monovalent_mEq). * RATES[3] is d/dt VIC in component intracellular_fluid_volume (litre). * RATES[0] is d/dt VTW in component total_body_water (litre). * There are a total of 0 condition variables. */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { CONSTANTS[0] = 1.037; CONSTANTS[1] = 0.000980838; CONSTANTS[2] = 0.977181; CONSTANTS[3] = 0.0959449; CONSTANTS[4] = 0.0804374; CONSTANTS[5] = 0.000989; CONSTANTS[6] = 0.5; CONSTANTS[7] = 60; CONSTANTS[8] = 40000; CONSTANTS[9] = 0.1; CONSTANTS[10] = 40000; CONSTANTS[11] = 1; CONSTANTS[12] = 4; CONSTANTS[13] = 0; CONSTANTS[14] = 0.2; CONSTANTS[15] = 5; CONSTANTS[16] = 0.3; CONSTANTS[17] = 85; CONSTANTS[18] = 15; CONSTANTS[19] = 0.93617; CONSTANTS[20] = 2.5; CONSTANTS[21] = 0.333; CONSTANTS[22] = 1000; CONSTANTS[23] = 1; CONSTANTS[24] = 0.3; CONSTANTS[25] = 2; CONSTANTS[26] = 0.3; CONSTANTS[27] = 0; CONSTANTS[28] = 0; CONSTANTS[29] = 2.5; CONSTANTS[30] = 0; CONSTANTS[31] = 5; CONSTANTS[32] = 0.65; CONSTANTS[33] = 0.5; CONSTANTS[34] = 12; CONSTANTS[35] = 0.005; CONSTANTS[36] = 0.005; CONSTANTS[37] = 0.04; CONSTANTS[38] = 0.8; CONSTANTS[39] = 15; CONSTANTS[40] = 60; CONSTANTS[41] = 0.4; CONSTANTS[42] = 0; CONSTANTS[43] = 0; CONSTANTS[44] = 2.5; CONSTANTS[45] = 1.4; CONSTANTS[46] = 0.86; CONSTANTS[47] = 1.6; CONSTANTS[48] = 0.3; CONSTANTS[49] = 2; CONSTANTS[50] = 0.7; CONSTANTS[51] = 1; CONSTANTS[52] = 2; CONSTANTS[53] = 1.5; CONSTANTS[54] = 1.8; CONSTANTS[55] = 4; CONSTANTS[56] = 1.5; CONSTANTS[57] = 10; CONSTANTS[58] = 12; CONSTANTS[59] = 0.8; CONSTANTS[60] = 6; CONSTANTS[61] = 0; CONSTANTS[62] = 5000; CONSTANTS[63] = 0; CONSTANTS[64] = -0.2; CONSTANTS[65] = 0.005; CONSTANTS[66] = 0.005; CONSTANTS[67] = 0.5; CONSTANTS[68] = 0.3; CONSTANTS[69] = 0.3; CONSTANTS[70] = 0.004; CONSTANTS[71] = 1.5; CONSTANTS[72] = 0; CONSTANTS[73] = 3; CONSTANTS[74] = 1; CONSTANTS[75] = 5.0; CONSTANTS[76] = 0.4; CONSTANTS[77] = 0.3; CONSTANTS[78] = 0.5; CONSTANTS[79] = 1.0; CONSTANTS[80] = 1; CONSTANTS[81] = 1.5; CONSTANTS[82] = 0; CONSTANTS[83] = 7; CONSTANTS[84] = 0.9; CONSTANTS[85] = 1; CONSTANTS[86] = 0.16; CONSTANTS[87] = 0.01167; CONSTANTS[88] = 4; CONSTANTS[89] = 2; CONSTANTS[90] = 0.0212; CONSTANTS[91] = 0.2; CONSTANTS[92] = 139; CONSTANTS[93] = 0.0003; CONSTANTS[94] = 0.000253; CONSTANTS[95] = 40; CONSTANTS[96] = 0.1; CONSTANTS[97] = 0; CONSTANTS[98] = 1; CONSTANTS[99] = 0.05; CONSTANTS[100] = 0.675; CONSTANTS[101] = 1e-06; CONSTANTS[102] = 1; CONSTANTS[103] = 24; CONSTANTS[104] = 0; CONSTANTS[105] = 1; CONSTANTS[106] = 0.01; CONSTANTS[107] = 1.0; CONSTANTS[108] = 0.17; CONSTANTS[109] = 0; CONSTANTS[110] = 0.8092; CONSTANTS[111] = 0.0208333; CONSTANTS[112] = 3; CONSTANTS[113] = 0.001; CONSTANTS[114] = 1.0; CONSTANTS[115] = 1850; CONSTANTS[116] = 4.714e-08; CONSTANTS[117] = 0.4; CONSTANTS[118] = 1; CONSTANTS[119] = 0; CONSTANTS[120] = 0; CONSTANTS[121] = 10000; CONSTANTS[122] = 8; CONSTANTS[123] = 2.728e-14; CONSTANTS[124] = 0.03; CONSTANTS[125] = 10; CONSTANTS[126] = 0.667; CONSTANTS[127] = 0.005; CONSTANTS[128] = 0.01; CONSTANTS[129] = 0; CONSTANTS[130] = 0.1; CONSTANTS[131] = 0.01; CONSTANTS[132] = 57.1; CONSTANTS[133] = 1; CONSTANTS[134] = 2; CONSTANTS[135] = 1; CONSTANTS[136] = 15; CONSTANTS[137] = 0; CONSTANTS[138] = -2; CONSTANTS[139] = 0.79167; CONSTANTS[140] = 1.8; CONSTANTS[141] = 4.2; CONSTANTS[142] = 30; CONSTANTS[143] = 0.001; CONSTANTS[144] = 0.1; CONSTANTS[145] = 0.04; CONSTANTS[146] = 2; CONSTANTS[147] = 0.1; CONSTANTS[148] = 35; CONSTANTS[149] = 2; CONSTANTS[150] = 8; CONSTANTS[151] = 0.2; CONSTANTS[152] = 0.15; CONSTANTS[153] = 0.5; CONSTANTS[154] = 96.3; CONSTANTS[155] = 0; CONSTANTS[156] = 30.52; CONSTANTS[157] = 2000; CONSTANTS[158] = 0; CONSTANTS[159] = 1; CONSTANTS[160] = 0.03; CONSTANTS[161] = 0.3; CONSTANTS[162] = 1; CONSTANTS[163] = 0; CONSTANTS[164] = 5.8e-06; CONSTANTS[165] = 15; CONSTANTS[166] = 0; CONSTANTS[167] = 0; CONSTANTS[168] = 0.9; CONSTANTS[169] = 15.2; CONSTANTS[170] = 6; CONSTANTS[171] = 19.167; CONSTANTS[172] = 1; CONSTANTS[173] = 1; CONSTANTS[174] = 1; CONSTANTS[175] = 5; CONSTANTS[176] = 10000; CONSTANTS[177] = 0; CONSTANTS[178] = 0; CONSTANTS[179] = 0.05; CONSTANTS[180] = 0; CONSTANTS[181] = 0; CONSTANTS[182] = 0; CONSTANTS[183] = 0.15; CONSTANTS[184] = 0.005; CONSTANTS[185] = 30; CONSTANTS[186] = 4; CONSTANTS[187] = 0.01; CONSTANTS[188] = 0.01; CONSTANTS[189] = 1; CONSTANTS[190] = 0.01; CONSTANTS[191] = 0.0175; CONSTANTS[192] = 6; CONSTANTS[193] = 2.51; CONSTANTS[194] = 4; CONSTANTS[195] = 1; CONSTANTS[196] = 0.5; CONSTANTS[197] = 0.3; CONSTANTS[198] = 20; CONSTANTS[199] = 5; CONSTANTS[200] = 45; CONSTANTS[201] = 0.01; CONSTANTS[202] = 5; CONSTANTS[203] = 0.625; CONSTANTS[204] = 5; CONSTANTS[205] = 5; CONSTANTS[206] = 5; CONSTANTS[207] = 5; CONSTANTS[208] = 0.08; CONSTANTS[209] = 0.24; CONSTANTS[210] = 0.55; CONSTANTS[211] = 0; CONSTANTS[212] = 164; CONSTANTS[213] = 0.1; CONSTANTS[214] = 0; CONSTANTS[215] = 0; CONSTANTS[216] = 0.6; CONSTANTS[217] = 0.3; CONSTANTS[218] = 10; CONSTANTS[219] = 1; CONSTANTS[220] = 1; CONSTANTS[221] = 90; CONSTANTS[222] = 150; CONSTANTS[223] = 0.53333; CONSTANTS[224] = 0; CONSTANTS[225] = 0; CONSTANTS[226] = 1; CONSTANTS[227] = 1.0; CONSTANTS[228] = 1.22057; CONSTANTS[229] = 0.8; CONSTANTS[230] = 0; CONSTANTS[231] = 0; CONSTANTS[232] = 31.9719; CONSTANTS[233] = 0; CONSTANTS[234] = 60; CONSTANTS[235] = 0; CONSTANTS[236] = 1.0; CONSTANTS[237] = 0.301963; CONSTANTS[238] = 1.0; CONSTANTS[239] = 1.00269; CONSTANTS[240] = 1.09071; CONSTANTS[241] = 0.859476; CONSTANTS[242] = 1.0; CONSTANTS[243] = 0; CONSTANTS[244] = 1.02127; CONSTANTS[245] = 1.01179; CONSTANTS[246] = 1.1448; CONSTANTS[247] = 1.00007; CONSTANTS[248] = -0.060024; CONSTANTS[249] = 1.00132; CONSTANTS[250] = 0.0367573; CONSTANTS[251] = 1; CONSTANTS[252] = 1.00163; CONSTANTS[253] = 1.00237; CONSTANTS[254] = 3622.54; CONSTANTS[255] = 2109.91; CONSTANTS[256] = 2.368e-07; CONSTANTS[257] = 0.694163; CONSTANTS[258] = 204.497; CONSTANTS[259] = 0.699673; CONSTANTS[260] = 103.525; CONSTANTS[261] = 16.9144; CONSTANTS[262] = 159.549; CONSTANTS[263] = 0.419998; CONSTANTS[264] = 216.243; CONSTANTS[265] = 72.2362; CONSTANTS[266] = 48.0839; CONSTANTS[267] = 0; CONSTANTS[268] = 279.945; CONSTANTS[269] = 0.000980838; CONSTANTS[270] = 0.862514; CONSTANTS[271] = 25.0404; CONSTANTS[272] = 0.379883; CONSTANTS[273] = 0.38131; CONSTANTS[274] = 0.0123238; CONSTANTS[275] = 3.00449; CONSTANTS[276] = 0.100043; CONSTANTS[277] = 2.00439; CONSTANTS[278] = 0; CONSTANTS[279] = 39.8952; CONSTANTS[280] = 0.0101913; CONSTANTS[281] = 0.00366525; CONSTANTS[282] = 3.28246; CONSTANTS[283] = 0.5; CONSTANTS[284] = 60; CONSTANTS[285] = 40000; CONSTANTS[286] = 0.1; CONSTANTS[287] = 40000; CONSTANTS[288] = 1; CONSTANTS[289] = 4; CONSTANTS[290] = 0; CONSTANTS[291] = 0.2; CONSTANTS[292] = 5; CONSTANTS[293] = 0.3; CONSTANTS[294] = 85; CONSTANTS[295] = 15; CONSTANTS[296] = 0.93617; CONSTANTS[297] = 2.5; CONSTANTS[298] = 0.333; CONSTANTS[299] = 1000; CONSTANTS[300] = 1; CONSTANTS[301] = 0.3; CONSTANTS[302] = 2; CONSTANTS[303] = 0.3; CONSTANTS[304] = 0; CONSTANTS[305] = 0; CONSTANTS[306] = 2.5; CONSTANTS[307] = 0; CONSTANTS[308] = 5; CONSTANTS[309] = 0.65; CONSTANTS[310] = 0.5; CONSTANTS[311] = 12; CONSTANTS[312] = 0.005; CONSTANTS[313] = 0.005; CONSTANTS[314] = 0.04; CONSTANTS[315] = 0.8; CONSTANTS[316] = 15; CONSTANTS[317] = 60; CONSTANTS[318] = 0.4; CONSTANTS[319] = 0; CONSTANTS[320] = 0; CONSTANTS[321] = 2.5; CONSTANTS[322] = 1.4; CONSTANTS[323] = 0.86; CONSTANTS[324] = 1.6; CONSTANTS[325] = 0.3; CONSTANTS[326] = 2; CONSTANTS[327] = 0.7; CONSTANTS[328] = 1; CONSTANTS[329] = 2; CONSTANTS[330] = 1.5; CONSTANTS[331] = 1.8; CONSTANTS[332] = 4; CONSTANTS[333] = 1.5; CONSTANTS[334] = 10; CONSTANTS[335] = 12; CONSTANTS[336] = 0.8; CONSTANTS[337] = 6; CONSTANTS[338] = 0; CONSTANTS[339] = 5000; CONSTANTS[340] = 0; CONSTANTS[341] = -0.2; CONSTANTS[342] = 0.005; CONSTANTS[343] = 0.005; CONSTANTS[344] = 0.5; CONSTANTS[345] = 0.3; CONSTANTS[346] = 0.3; CONSTANTS[347] = 0.004; CONSTANTS[348] = 1.5; CONSTANTS[349] = 0; CONSTANTS[350] = 3; CONSTANTS[351] = 1; CONSTANTS[352] = 5.0; CONSTANTS[353] = 0.4; CONSTANTS[354] = 0.3; CONSTANTS[355] = 0.5; CONSTANTS[356] = 1.0; CONSTANTS[357] = 1; CONSTANTS[358] = 1.5; CONSTANTS[359] = 0; CONSTANTS[360] = 7; CONSTANTS[361] = 0.9; CONSTANTS[362] = 1; CONSTANTS[363] = 0.16; CONSTANTS[364] = 0.01167; CONSTANTS[365] = 4; CONSTANTS[366] = 2; CONSTANTS[367] = 0.0212; CONSTANTS[368] = 0.2; CONSTANTS[369] = 139; CONSTANTS[370] = 0.0003; CONSTANTS[371] = 0.000253; CONSTANTS[372] = 40; CONSTANTS[373] = 0.1; CONSTANTS[374] = 0; CONSTANTS[375] = 1; CONSTANTS[376] = 0.05; CONSTANTS[377] = 0.675; CONSTANTS[378] = 1e-06; CONSTANTS[379] = 1; CONSTANTS[380] = 24; CONSTANTS[381] = 0; CONSTANTS[382] = 1; CONSTANTS[383] = 0.01; CONSTANTS[384] = 1.0; CONSTANTS[385] = 0.17; CONSTANTS[386] = 0; CONSTANTS[387] = 0.8092; CONSTANTS[388] = 0.0208333; CONSTANTS[389] = 3; CONSTANTS[390] = 0.001; CONSTANTS[391] = 1.0; CONSTANTS[392] = 1850; CONSTANTS[393] = 4.714e-08; CONSTANTS[394] = 0.4; CONSTANTS[395] = 1; CONSTANTS[396] = 0; CONSTANTS[397] = 0; CONSTANTS[398] = 10000; CONSTANTS[399] = 8; CONSTANTS[400] = 2.728e-14; CONSTANTS[401] = 0.03; CONSTANTS[402] = 10; CONSTANTS[403] = 0.667; CONSTANTS[404] = 0.005; CONSTANTS[405] = 0.01; CONSTANTS[406] = 0; CONSTANTS[407] = 0.1; CONSTANTS[408] = 0.01; CONSTANTS[409] = 57.1; CONSTANTS[410] = 1; CONSTANTS[411] = 2; CONSTANTS[412] = 1; CONSTANTS[413] = 15; CONSTANTS[414] = 0; CONSTANTS[415] = -2; CONSTANTS[416] = 0.79167; CONSTANTS[417] = 1.8; CONSTANTS[418] = 4.2; CONSTANTS[419] = 30; CONSTANTS[420] = 0.001; CONSTANTS[421] = 0.1; CONSTANTS[422] = 0.04; CONSTANTS[423] = 2; CONSTANTS[424] = 0.1; CONSTANTS[425] = 35; CONSTANTS[426] = 2; CONSTANTS[427] = 8; CONSTANTS[428] = 0.2; CONSTANTS[429] = 0.15; CONSTANTS[430] = 0.5; CONSTANTS[431] = 96.3; CONSTANTS[432] = 0; CONSTANTS[433] = 30.52; CONSTANTS[434] = 2000; CONSTANTS[435] = 0; CONSTANTS[436] = 1; CONSTANTS[437] = 0.03; CONSTANTS[438] = 0.3; CONSTANTS[439] = 1; CONSTANTS[440] = 0; CONSTANTS[441] = 5.8e-06; CONSTANTS[442] = 15; CONSTANTS[443] = 0; CONSTANTS[444] = 0; CONSTANTS[445] = 0.9; CONSTANTS[446] = 15.2; CONSTANTS[447] = 6; CONSTANTS[448] = 19.167; CONSTANTS[449] = 1; CONSTANTS[450] = 1; CONSTANTS[451] = 1; CONSTANTS[452] = 5; CONSTANTS[453] = 10000; CONSTANTS[454] = 0; CONSTANTS[455] = 0; CONSTANTS[456] = 0.05; CONSTANTS[457] = 0; CONSTANTS[458] = 0; CONSTANTS[459] = 0; CONSTANTS[460] = 0.15; CONSTANTS[461] = 0.005; CONSTANTS[462] = 30; CONSTANTS[463] = 4; CONSTANTS[464] = 0.01; CONSTANTS[465] = 0.01; CONSTANTS[466] = 1; CONSTANTS[467] = 0.01; CONSTANTS[468] = 0.0175; CONSTANTS[469] = 6; CONSTANTS[470] = 2.51; CONSTANTS[471] = 4; CONSTANTS[472] = 1; CONSTANTS[473] = 0.5; CONSTANTS[474] = 0.3; CONSTANTS[475] = 20; CONSTANTS[476] = 5; CONSTANTS[477] = 45; CONSTANTS[478] = 0.01; CONSTANTS[479] = 5; CONSTANTS[480] = 0.625; CONSTANTS[481] = 5; CONSTANTS[482] = 5; CONSTANTS[483] = 5; CONSTANTS[484] = 5; CONSTANTS[485] = 0.08; CONSTANTS[486] = 0.24; CONSTANTS[487] = 0.55; CONSTANTS[488] = 0; CONSTANTS[489] = 164; CONSTANTS[490] = 0.1; CONSTANTS[491] = 0; CONSTANTS[492] = 0; CONSTANTS[493] = 0.6; CONSTANTS[494] = 0.3; CONSTANTS[495] = 10; CONSTANTS[496] = 1; CONSTANTS[497] = 1; CONSTANTS[498] = 90; CONSTANTS[499] = 150; CONSTANTS[500] = 0.53333; CONSTANTS[501] = 0; CONSTANTS[502] = 0; CONSTANTS[503] = 1; CONSTANTS[504] = 1.0; CONSTANTS[505] = 1.22057; CONSTANTS[506] = 0.8; CONSTANTS[507] = 0; CONSTANTS[508] = 0; CONSTANTS[509] = 31.9719; CONSTANTS[510] = 0; CONSTANTS[511] = 60; CONSTANTS[512] = 0; CONSTANTS[513] = 1.0; CONSTANTS[514] = 0.301963; CONSTANTS[515] = 1.0; CONSTANTS[516] = 1.00269; CONSTANTS[517] = 1.09071; CONSTANTS[518] = 0.859476; CONSTANTS[519] = 1.0; CONSTANTS[520] = 0; CONSTANTS[521] = 1.02127; CONSTANTS[522] = 1.01179; CONSTANTS[523] = 1.1448; CONSTANTS[524] = 1.00007; CONSTANTS[525] = -0.060024; CONSTANTS[526] = 1.00132; CONSTANTS[527] = 0.0367573; CONSTANTS[528] = 1; CONSTANTS[529] = 1.00163; CONSTANTS[530] = 1.00237; CONSTANTS[531] = 3622.54; CONSTANTS[532] = 2109.91; CONSTANTS[533] = 2.368e-07; CONSTANTS[534] = 0.694163; CONSTANTS[535] = 204.497; CONSTANTS[536] = 0.699673; CONSTANTS[537] = 103.525; CONSTANTS[538] = 16.9144; CONSTANTS[539] = 159.549; CONSTANTS[540] = 0.419998; CONSTANTS[541] = 216.243; CONSTANTS[542] = 72.2362; CONSTANTS[543] = 48.0839; CONSTANTS[544] = 0; CONSTANTS[545] = 279.945; CONSTANTS[546] = 0.000980838; CONSTANTS[547] = 0.862514; CONSTANTS[548] = 25.0404; CONSTANTS[549] = 0.379883; CONSTANTS[550] = 0.38131; CONSTANTS[551] = 0.0123238; CONSTANTS[552] = 3.00449; CONSTANTS[553] = 0.100043; CONSTANTS[554] = 2.00439; CONSTANTS[555] = 0; CONSTANTS[556] = 39.8952; CONSTANTS[557] = 0.0101913; CONSTANTS[558] = 0.00366525; CONSTANTS[559] = 3.28246; CONSTANTS[560] = ( CONSTANTS[490]*CONSTANTS[2] - CONSTANTS[3])+ CONSTANTS[459]*142.000; CONSTANTS[561] = (CONSTANTS[0] - 1.00000)*CONSTANTS[303]+1.00000; CONSTANTS[562] = CONSTANTS[485] - CONSTANTS[4]; CONSTANTS[563] = CONSTANTS[1] - CONSTANTS[5]; CONSTANTS[564] = CONSTANTS[560]; CONSTANTS[565] = CONSTANTS[562]; STATES[0] = CONSTANTS[556]; STATES[1] = CONSTANTS[532]; STATES[2] = CONSTANTS[531]; STATES[3] = CONSTANTS[548]; RATES[3] = 0.1001; } void computeResiduals(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES, double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS) { resid[0] = RATES[3] - ALGEBRAIC[7]; resid[1] = RATES[0] - CONSTANTS[563]; resid[2] = RATES[1] - CONSTANTS[564]; resid[3] = RATES[2] - CONSTANTS[565]; } void computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { ALGEBRAIC[5] = ALGEBRAIC[0]/ALGEBRAIC[3]; } void computeEssentialVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { ALGEBRAIC[3] = STATES[0] - STATES[3]; ALGEBRAIC[4] = STATES[1]/ALGEBRAIC[3]; ALGEBRAIC[0] = (STATES[2] - 3000.00)/( CONSTANTS[561]*9.33330); ALGEBRAIC[1] = STATES[2] - ALGEBRAIC[0]; ALGEBRAIC[2] = ALGEBRAIC[1]/STATES[3]; ALGEBRAIC[6] = ALGEBRAIC[2] - ALGEBRAIC[4]; ALGEBRAIC[7] = ALGEBRAIC[6]*CONSTANTS[465]; } void getStateInformation(double* SI) { SI[0] = 1.0; SI[1] = 1.0; SI[2] = 1.0; SI[3] = 1.0; } void computeRoots(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES, double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS) { }