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 3 entries in each of the rate and state variable arrays.
C There are a total of 8 entries in the constant variable array.
C
C
C VOI is time in component environment (day).
C STATES(1) is T in component target_cells (dimensionless).
C CONSTS(1) is s in component target_cells (first_order_rate_constant).
C CONSTS(2) is d in component target_cells (first_order_rate_constant).
C CONSTS(3) is eta in component model_parameters (dimensionless).
C STATES(2) is V in component viral_load (dimensionless).
C CONSTS(4) is beta in component model_parameters (first_order_rate_constant).
C STATES(3) is I in component infected_cells (dimensionless).
C CONSTS(5) is delta in component infected_cells (first_order_rate_constant).
C CONSTS(6) is epsilon in component viral_load (dimensionless).
C CONSTS(7) is p in component viral_load (first_order_rate_constant).
C CONSTS(8) is c in component viral_load (first_order_rate_constant).
C RATES(1) is d/dt T in component target_cells (dimensionless).
C RATES(3) is d/dt I in component infected_cells (dimensionless).
C RATES(2) is d/dt V in component viral_load (dimensionless).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 1000
CONSTS(1) = 10.0
CONSTS(2) = 0.02
CONSTS(3) = 0.8
STATES(2) = 9.4e6
CONSTS(4) = 3e-7
STATES(3) = 0
CONSTS(5) = 0.5
CONSTS(6) = 0.99
CONSTS(7) = 100.0
CONSTS(8) = 5.0
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = CONSTS(1) - ( CONSTS(2)*STATES(1)+ (1.00000 - CONSTS(3))*CONSTS(4)*STATES(2)*STATES(1))
RATES(3) = (1.00000 - CONSTS(3))*CONSTS(4)*STATES(2)*STATES(1) - CONSTS(5)*STATES(3)
RATES(2) = (1.00000 - CONSTS(6))*CONSTS(7)*STATES(3) - CONSTS(8)*STATES(2)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
