Tutorial 2 - Vectorizing the model
In this lesson will you learn how to add materials to the model and basic use of index lists.
Consider a water tank which is contaminated with not one, but many, substances.
This would mean that the number of state variables increase with every substance:
MFish,Arsenic, MFish,Lead, MFish,Mercury etc.
Rather than creating copies of the compartments and transfers of our model, we can vectorize it. This is done by adding material, where each material corresponds to a contaminant.
Create a new Material
by clicking the
button on the title bar
of this window, or right-click the window and select Create | Material
from the pop-up menu.
Name the material
by clicking in the Name
column and writing “Arsenic”.
In the unit column, enter “mg”.
In the same way, create material
for “Lead” and “Mercury”, assigning the same unit of “mg”.