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 0 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 CONSTS(1) is W in component ParaIPump (UnitRPM).
C CONSTS(2) is Kp0 in component ParaIPump (UnitKp0).
C CONSTS(3) is Kp1 in component ParaIPump (UnitKp1).
C CONSTS(4) is Kp2 in component ParaIPump (UnitKp2).
C CONSTS(5) is Kp3 in component ParaIPump (UnitKp3).
C CONSTS(6) is Kp4 in component ParaIPump (UnitKp4).
C CONSTS(7) is Kp5 in component ParaIPump (UnitKp5).
C CONSTS(8) is Kp6 in component ParaIPump (UnitKp6).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 3600
      CONSTS(2) = 19.51840
      CONSTS(3) = -3.03610e-3
      CONSTS(4) = -1.23045
      CONSTS(5) = 5.78974e-4
      CONSTS(6) = -5.8777e-8
      CONSTS(7) = -1.27539e-6
      CONSTS(8) = 2.04834e-10
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END