Sometimes one is interested in modelling processes that, when compared with the simulation time span, appear instantaneous. Very rapid processes will make life very difficult for the solver. The solver will either miss the transfer or it will crash when error tolerances cannot be met.
By associating an event with a transfer, we can perform the transfer outside of the solution. The solver will chug along until the event fires. It will then stop, we can mess with the current states, and then continue the simulation without the solver suspecting anything.
The unit of the transfer will change when it is discrete. Instead of mg/day or 1/day, the unit becomes either mg, or a fraction (unitless).
For our experiment, let us pretend that every Tuesday, a garbage truck appears and dumps a random amount of poison to the soil.
For this we need:
Create time point
Create event
Create a source block
Create a transfer block
Run a simulation
You can download the solution here