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 18 entries in the constant variable array.
C
C
C VOI is time in component environment (hour).
C CONSTS(16) is F_b in component gastrointestinal_compartment (dimensionless).
C STATES(1) is A_dopa_b in component gastrointestinal_compartment (umole).
C CONSTS(1) is ka_b in component gastrointestinal_compartment (per_hour).
C CONSTS(10) is F_G in component gastrointestinal_compartment (dimensionless).
C CONSTS(14) is F_H in component gastrointestinal_compartment (dimensionless).
C CONSTS(12) is CL_H in component gastrointestinal_compartment (liter_per_hour).
C CONSTS(2) is Q in component gastrointestinal_compartment (liter_per_hour).
C CONSTS(3) is f_H in component gastrointestinal_compartment (dimensionless).
C CONSTS(4) is CL_dopa_0 in component L_dopa_clearance (liter_per_hour).
C STATES(2) is C_dopa_b in component body_compartment_L_dopa (uM).
C CONSTS(5) is V_dopa in component body_compartment_L_dopa (liter).
C CONSTS(18) is CL_dopa in component L_dopa_clearance (liter_per_hour).
C STATES(3) is C_OMD_b in component body_compartment_3_OMD (uM).
C CONSTS(6) is CL_OMD_b in component body_compartment_3_OMD (liter_per_hour).
C CONSTS(7) is V_OMD_b in component body_compartment_3_OMD (liter).
C CONSTS(15) is CL_COMT in component L_dopa_clearance (liter_per_hour).
C CONSTS(13) is CL_AADC in component L_dopa_clearance (liter_per_hour).
C CONSTS(11) is CL_AADC0 in component L_dopa_clearance (liter_per_hour).
C CONSTS(8) is C1_M in component L_dopa_clearance (uM).
C CONSTS(17) is CL_REST in component L_dopa_clearance (liter_per_hour).
C CONSTS(9) is ki in component L_dopa_clearance (uM).
C RATES(1) is d/dt A_dopa_b in component gastrointestinal_compartment (umole).
C RATES(2) is d/dt C_dopa_b in component body_compartment_L_dopa (uM).
C RATES(3) is d/dt C_OMD_b in component body_compartment_3_OMD (uM).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 101
      CONSTS(1) = 2.11
      CONSTS(2) = 0.828
      CONSTS(3) = 0.13
      CONSTS(4) = 0.823
      STATES(2) = 0
      CONSTS(5) = 0.496
      STATES(3) = 0
      CONSTS(6) = 0.012
      CONSTS(7) = 0.196
      CONSTS(8) = 0
      CONSTS(9) = 0.00246
      CONSTS(10) = 0.244000
      CONSTS(11) =  CONSTS(4)*0.690000
      CONSTS(12) =  CONSTS(3)*CONSTS(4)
      CONSTS(13) = CONSTS(11)/(1.00000+CONSTS(8)/CONSTS(9))
      CONSTS(14) = 1.00000 - CONSTS(12)/CONSTS(2)
      CONSTS(15) =  CONSTS(4)*0.100000
      CONSTS(16) =  CONSTS(14)*CONSTS(10)
      CONSTS(17) =  CONSTS(4)*0.210000
      CONSTS(18) = CONSTS(13)+CONSTS(15)+CONSTS(17)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) =  - CONSTS(1)*STATES(1)
      RATES(2) =  (1.00000/CONSTS(5))*( CONSTS(1)*STATES(1)*CONSTS(16) -  CONSTS(18)*STATES(2))
      RATES(3) =  (1.00000/CONSTS(7))*( CONSTS(15)*STATES(2) -  CONSTS(6)*STATES(3))
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END