tutorial_2-creating_a_compartment_model
Tutorial 2 - Creating a compartment model
Page 1 of 7
Overview
In this tutorial we will create a simple system consisting of two compartments. After creating the basic objects we will vectorize the model.
Mathematical model
Consider a tank of a fixed volume that contains contaminated water. A “healthy” fish is placed in the tank, and is thus also contaminated. The mass balance for the contaminating substance will then be:
dMwater/dt = -kuptake * Mwater + kexcretion * Mfish
dMfish/dt = -kexcretion * Mfish + kuptake * Mwater
where
| Symbol | Name | Type |
|---|---|---|
| kexcretion | excretion rate constant | Parameter |
| kuptake | uptake rate constant | Parameter |
Next
References
tutorial_2-creating_a_compartment_model.txt · Last modified: by boris
