Examples
This page contains examples which go through the process of defining, parametrising and simulation systems in psymple.
It is recommended to go through these examples after covering, or with reference to, the material in the user guide, which has a bigger focus on the syntax and best practices of using psymple. Some of the examples covered in the user guide are covered here, and vice-versa.
These examples are arranged roughly in order of difficulty and complexity, with the later examples also providing less commentary on the implementation.
-
Population dynamics
Population dynamics models, including exponential growth, the logistic equation, and predator-prey models.
-
Mixing problems
Mixing of solutions in a single tank or across any number of tanks.
-
Second-order systems
How to simulate complex second-order or higher-order systems.