abbyevewilliams / nerc-pk-project

MIT License
1 stars 0 forks source link

Allow for more than one compartment #10

Open creed130 opened 3 hours ago

creed130 commented 3 hours ago

Make V_p1 an array and allow for num_compartments to be an attribute of the Model class that defines the size of the array.

creed130 commented 2 hours ago
    transition = Q_p1 * (q_c / V_c - q_p1 / V_p1)
    transition = 0
    for i in len(Q_p):
        transition += Q_p[i] * (q_c / V_c - q_p1 / V_p[i])