Generated Code
The following is f77 code generated by the CellML API from this CellML file. (Back to language selection)
The raw code is available.
C C There are a total of 1 entries in the algebraic variable array. C There are a total of 3 entries in each of the rate and state variable arrays. C There are a total of 10 entries in the constant variable array. C C C VOI is time in component environment (hour). C STATES(1) is M in component M (nanomolar). C CONSTS(1) is vs in component M (flux). C CONSTS(2) is vm in component M (flux). C CONSTS(3) is Km in component M (nanomolar). C CONSTS(4) is KI in component M (nanomolar). C CONSTS(5) is n in component M (dimensionless). C STATES(2) is FN in component FN (nanomolar). C STATES(3) is FC in component FC (nanomolar). C ALGBRC(1) is Ft in component FC (nanomolar). C CONSTS(6) is ks in component FC (first_order_rate_constant). C CONSTS(7) is vd in component FC (flux). C CONSTS(8) is Kd in component FC (nanomolar). C CONSTS(9) is k1 in component parameters (first_order_rate_constant). C CONSTS(10) is k2 in component parameters (first_order_rate_constant). C RATES(1) is d/dt M in component M (nanomolar). C RATES(3) is d/dt FC in component FC (nanomolar). C RATES(2) is d/dt FN in component FN (nanomolar). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0.1 CONSTS(1) = 1.6 CONSTS(2) = 0.505 CONSTS(3) = 0.5 CONSTS(4) = 1.0 CONSTS(5) = 4.0 STATES(2) = 0.1 STATES(3) = 0.1 CONSTS(6) = 0.5 CONSTS(7) = 1.4 CONSTS(8) = 0.13 CONSTS(9) = 0.5 CONSTS(10) = 0.6 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(1)*(CONSTS(4) ** CONSTS(5)/(CONSTS(4) ** CONSTS(5)+STATES(2) ** CONSTS(5))) - CONSTS(2)*(STATES(1)/(CONSTS(3)+STATES(1))) RATES(3) = ( CONSTS(6)*STATES(1)+ CONSTS(10)*STATES(2)) - ( CONSTS(7)*(STATES(3)/(CONSTS(8)+STATES(3)))+ CONSTS(9)*STATES(3)) RATES(2) = CONSTS(9)*STATES(3) - CONSTS(10)*STATES(2) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = STATES(3)+STATES(2) RETURN END