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 6 entries in each of the rate and state variable arrays.
C There are a total of 7 entries in the constant variable array.
C
C
C VOI is time in component environment (minute).
C STATES(1) is x_7 in component x_7 (picomolar).
C CONSTS(1) is k_t in component model_parameters (per_minute).
C CONSTS(2) is B_maxSAv in component model_parameters (picomolar).
C CONSTS(3) is k_onSAv in component model_parameters (per_picomolar_per_minute).
C STATES(2) is x_8 in component x_8 (picomolar).
C CONSTS(4) is k_offSAv in component model_parameters (per_minute).
C STATES(3) is x_9 in component x_9 (picomolar).
C CONSTS(5) is k_exSAv in component model_parameters (per_minute).
C STATES(4) is x_10 in component x_10 (picomolar).
C CONSTS(6) is k_di in component model_parameters (per_minute).
C CONSTS(7) is k_de in component model_parameters (per_minute).
C STATES(5) is x_11 in component x_11 (picomolar).
C STATES(6) is x_12 in component x_12 (picomolar).
C RATES(1) is d/dt x_7 in component x_7 (picomolar).
C RATES(2) is d/dt x_8 in component x_8 (picomolar).
C RATES(3) is d/dt x_9 in component x_9 (picomolar).
C RATES(4) is d/dt x_10 in component x_10 (picomolar).
C RATES(5) is d/dt x_11 in component x_11 (picomolar).
C RATES(6) is d/dt x_12 in component x_12 (picomolar).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 76
CONSTS(1) = 0.03294
CONSTS(2) = 129
CONSTS(3) = 2.294e-6
STATES(2) = 999.293
CONSTS(4) = 0.006799
STATES(3) = 0
CONSTS(5) = 0.011
STATES(4) = 0
CONSTS(6) = 0.003179
CONSTS(7) = 0.0164
STATES(5) = 0
STATES(6) = 0
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = (( CONSTS(1)*CONSTS(2) - CONSTS(1)*STATES(1)) - CONSTS(3)*STATES(1)*STATES(2))+ CONSTS(4)*STATES(3)
RATES(2) = - CONSTS(3)*STATES(1)*STATES(2)+ CONSTS(4)*STATES(3)+ CONSTS(5)*STATES(4)
RATES(3) = ( CONSTS(3)*STATES(1)*STATES(2) - CONSTS(4)*STATES(3)) - CONSTS(1)*STATES(3)
RATES(4) = (( CONSTS(1)*STATES(3) - CONSTS(5)*STATES(4)) - CONSTS(6)*STATES(4)) - CONSTS(7)*STATES(4)
RATES(5) = CONSTS(6)*STATES(4)
RATES(6) = CONSTS(7)*STATES(4)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
