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 10 entries in each of the rate and state variable arrays.
C There are a total of 28 entries in the constant variable array.
C
C
C VOI is time in component environment (day).
C STATES(1) is T in component uninfected_CD4 (cells_per_mm3).
C CONSTS(1) is s in component uninfected_CD4 (cells_per_mm3_day).
C CONSTS(2) is lambda in component uninfected_CD4 (per_day).
C STATES(2) is T1_star in component productively_infected_CD4 (cells_per_mm3).
C STATES(3) is T2_star in component productively_infected_CD4 (cells_per_mm3).
C CONSTS(3) is Tmax in component uninfected_CD4 (cells_per_mm3).
C CONSTS(4) is mu in component uninfected_CD4 (per_day).
C CONSTS(5) is k1 in component productively_infected_CD4 (ml_per_virons_day).
C CONSTS(6) is r1 in component drug_parameters (dimensionless).
C STATES(4) is V1_I in component virus_strain1 (virons_per_ml).
C CONSTS(7) is k2 in component productively_infected_CD4 (ml_per_virons_day).
C CONSTS(8) is r2 in component drug_parameters (dimensionless).
C STATES(5) is V2_I in component virus_strain2 (virons_per_ml).
C STATES(6) is M in component uninfected_long_lived_cells (cells_per_mm3).
C CONSTS(9) is lambda_M in component uninfected_long_lived_cells (cells_per_mm3_day).
C CONSTS(10) is mu_M in component uninfected_long_lived_cells (per_day).
C CONSTS(11) is k1_M in component productively_infected_long_lived_cells (ml_per_virons_day).
C CONSTS(12) is k2_M in component productively_infected_long_lived_cells (ml_per_virons_day).
C CONSTS(13) is m11 in component productively_infected_CD4 (dimensionless).
C CONSTS(14) is m21 in component productively_infected_CD4 (dimensionless).
C CONSTS(15) is delta1 in component productively_infected_CD4 (per_day).
C CONSTS(16) is m22 in component productively_infected_CD4 (dimensionless).
C CONSTS(17) is m12 in component productively_infected_CD4 (dimensionless).
C CONSTS(18) is delta2 in component productively_infected_CD4 (per_day).
C STATES(7) is M1_star in component productively_infected_long_lived_cells (cells_per_mm3).
C CONSTS(19) is delta1_M in component productively_infected_long_lived_cells (per_day).
C STATES(8) is M2_star in component productively_infected_long_lived_cells (cells_per_mm3).
C CONSTS(20) is delta2_M in component productively_infected_long_lived_cells (per_day).
C CONSTS(21) is p1 in component drug_parameters (dimensionless).
C CONSTS(22) is N1 in component virus_strain1 (virons_per_cell).
C CONSTS(23) is N1_M in component virus_strain1 (virons_per_cell).
C STATES(9) is V1 in component virus_strain1 (virons_per_ml).
C CONSTS(24) is c1 in component virus_strain1 (per_day).
C CONSTS(25) is p2 in component drug_parameters (dimensionless).
C CONSTS(26) is N2 in component virus_strain2 (virons_per_cell).
C CONSTS(27) is N2_M in component virus_strain2 (virons_per_cell).
C CONSTS(28) is c2 in component virus_strain2 (per_day).
C STATES(10) is V2 in component virus_strain2 (virons_per_ml).
C RATES(1) is d/dt T in component uninfected_CD4 (cells_per_mm3).
C RATES(6) is d/dt M in component uninfected_long_lived_cells (cells_per_mm3).
C RATES(2) is d/dt T1_star in component productively_infected_CD4 (cells_per_mm3).
C RATES(3) is d/dt T2_star in component productively_infected_CD4 (cells_per_mm3).
C RATES(7) is d/dt M1_star in component productively_infected_long_lived_cells (cells_per_mm3).
C RATES(8) is d/dt M2_star in component productively_infected_long_lived_cells (cells_per_mm3).
C RATES(4) is d/dt V1_I in component virus_strain1 (virons_per_ml).
C RATES(9) is d/dt V1 in component virus_strain1 (virons_per_ml).
C RATES(5) is d/dt V2_I in component virus_strain2 (virons_per_ml).
C RATES(10) is d/dt V2 in component virus_strain2 (virons_per_ml).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 178.81
      CONSTS(1) = 0
      CONSTS(2) = 0.01
      STATES(2) = 1.19
      STATES(3) = 0.004
      CONSTS(3) = 450
      CONSTS(4) = 0.0014
      CONSTS(5) = 3.43E-8
      CONSTS(6) = 0.9
      STATES(4) = 133500
      CONSTS(7) = 3.43E-8
      CONSTS(8) = 0.25
      STATES(5) = 450
      STATES(6) = 49.2
      CONSTS(9) = 2.0
      CONSTS(10) = 0.04
      CONSTS(11) = 4.67E-9
      CONSTS(12) = 4.67E-9
      CONSTS(13) = 1
      CONSTS(14) = 3.4E-5
      CONSTS(15) = 0.69
      CONSTS(16) = 1
      CONSTS(17) = 3.4E-5
      CONSTS(18) = 0.69
      STATES(7) = 0.49
      CONSTS(19) = 0.062
      STATES(8) = 1.7E-3
      CONSTS(20) = 0.062
      CONSTS(21) = 0.99
      CONSTS(22) = 480.1
      CONSTS(23) = 534.4
      STATES(9) = 133500
      CONSTS(24) = 3.07
      CONSTS(25) = 0.25
      CONSTS(26) = 475.3
      CONSTS(27) = 529.0
      CONSTS(28) = 3.07
      STATES(10) = 450
      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 - (STATES(1)+STATES(2)+STATES(3))/CONSTS(3))) -  CONSTS(4)*STATES(1)) -  CONSTS(5)*(1.00000 - CONSTS(6))*STATES(1)*STATES(4)) -  CONSTS(7)*(1.00000 - CONSTS(8))*STATES(1)*STATES(5)
      RATES(6) = ((CONSTS(9) -  CONSTS(10)*STATES(6)) -  CONSTS(11)*(1.00000 - CONSTS(6))*STATES(6)*STATES(4)) -  CONSTS(12)*(1.00000 - CONSTS(8))*STATES(6)*STATES(5)
      RATES(2) = ( CONSTS(13)*CONSTS(5)*(1.00000 - CONSTS(6))*STATES(1)*STATES(4)+ CONSTS(14)*CONSTS(7)*(1.00000 - CONSTS(8))*STATES(1)*STATES(5)) -  CONSTS(15)*STATES(2)
      RATES(3) = ( CONSTS(16)*CONSTS(7)*(1.00000 - CONSTS(8))*STATES(1)*STATES(5)+ CONSTS(17)*CONSTS(5)*(1.00000 - CONSTS(6))*STATES(1)*STATES(4)) -  CONSTS(18)*STATES(3)
      RATES(7) = ( CONSTS(13)*CONSTS(11)*(1.00000 - CONSTS(6))*STATES(6)*STATES(4)+ CONSTS(14)*CONSTS(12)*(1.00000 - CONSTS(8))*STATES(6)*STATES(5)) -  CONSTS(19)*STATES(7)
      RATES(8) = ( CONSTS(16)*CONSTS(12)*(1.00000 - CONSTS(8))*STATES(6)*STATES(5)+ CONSTS(17)*CONSTS(11)*(1.00000 - CONSTS(6))*STATES(6)*STATES(4)) -  CONSTS(20)*STATES(8)
      RATES(4) = ( (1.00000 - CONSTS(21))*CONSTS(22)*CONSTS(15)*STATES(2)+ (1.00000 - CONSTS(21))*CONSTS(23)*CONSTS(19)*STATES(7)) -  CONSTS(24)*STATES(4)
      RATES(9) = ( CONSTS(22)*CONSTS(15)*STATES(2)+ CONSTS(23)*CONSTS(19)*STATES(7)) -  CONSTS(24)*STATES(9)
      RATES(5) = ( (1.00000 - CONSTS(25))*CONSTS(26)*CONSTS(18)*STATES(3)+ (1.00000 - CONSTS(25))*CONSTS(27)*CONSTS(20)*STATES(8)) -  CONSTS(28)*STATES(5)
      RATES(10) = ( CONSTS(26)*CONSTS(18)*STATES(3)+ CONSTS(27)*CONSTS(20)*STATES(8)) -  CONSTS(28)*STATES(10)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END