====== Tutorial 2 - Creating a compartment model ======
===== 1/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**
* [[Tutorial_2-Creating_compartments|Creating compartments (2/7)]]
**References**
* [[Tutorials|Back to Tutorials]]
* [[start|Home]]