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 0 entries in the algebraic variable array.
C There are a total of 5 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 (day).
C STATES(1) is x in component x (cell).
C CONSTS(1) is lamda in component x (cell_per_mm3_day).
C CONSTS(2) is d in component x (first_order_rate_constant).
C CONSTS(3) is beta in component model_parameters (mm3_per_vir_day).
C STATES(2) is v in component v (vir).
C STATES(3) is y in component y (cell).
C CONSTS(4) is a in component y (first_order_rate_constant).
C CONSTS(5) is alpha in component model_parameters (mm3_per_vir_day).
C STATES(4) is w in component w (vir).
C STATES(5) is z in component z (cell).
C CONSTS(6) is b in component z (first_order_rate_constant).
C CONSTS(7) is k in component v (vir_per_cell_day).
C CONSTS(8) is u in component v (first_order_rate_constant).
C CONSTS(9) is c in component w (vir_per_cell_day).
C CONSTS(10) is q in component w (first_order_rate_constant).
C RATES(1) is d/dt x in component x (cell).
C RATES(3) is d/dt y in component y (cell).
C RATES(5) is d/dt z in component z (cell).
C RATES(2) is d/dt v in component v (vir).
C RATES(4) is d/dt w in component w (vir).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 3
CONSTS(1) = 2.0
CONSTS(2) = 0.01
CONSTS(3) = 0.004
STATES(2) = 149
STATES(3) = 6
CONSTS(4) = 0.33
CONSTS(5) = 0.004
STATES(4) = 1
STATES(5) = 0
CONSTS(6) = 2.0
CONSTS(7) = 50.0
CONSTS(8) = 2.0
CONSTS(9) = 2000.0
CONSTS(10) = 2.0
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = 1.00000*CONSTS(1) - ( CONSTS(2)*STATES(1)+ 1.00000*CONSTS(3)*STATES(1)*STATES(2))
RATES(3) = 1.00000*CONSTS(3)*STATES(1)*STATES(2) - ( CONSTS(4)*STATES(3)+ 1.00000*CONSTS(5)*STATES(4)*STATES(3))
RATES(5) = 1.00000*CONSTS(5)*STATES(4)*STATES(3) - CONSTS(6)*STATES(5)
RATES(2) = CONSTS(7)*STATES(3) - CONSTS(8)*STATES(2)
RATES(4) = CONSTS(9)*STATES(5) - CONSTS(10)*STATES(4)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
