# Tracking dynamical increments du and accompanying variables during a DynamicalSystems run

**URL:** https://discourse.julialang.org/t/tracking-dynamical-increments-du-and-accompanying-variables-during-a-dynamicalsystems-run/107558
**Category:** Modelling & Simulations
**Tags:** question, package
**Created:** [December 13, 2023, 10:20am UTC](https://discourse.julialang.org/t/tracking-dynamical-increments-du-and-accompanying-variables-during-a-dynamicalsystems-run/107558 "2023-12-13T10:20:47Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Niall](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/niall/32/22517_2.png) [@Niall](https://discourse.julialang.org/u/Niall)
#### Post date: [December 14, 2023, 8:32am UTC](https://discourse.julialang.org/t/tracking-dynamical-increments-du-and-accompanying-variables-during-a-dynamicalsystems-run/107558/3 "2023-12-14T08:32:56Z")

</div>

Thanks. 😀 My situation is this: I’m writing a course for second-year biology students on using dynamical modelling to model cellular, physiological and ecological system, and am intending to use DynamicalSystems as the basis for the course. Students will need to debug their dynamical models, and so will need to investigate how features of their model change dynamically over time.

For example, when simulating glycolysis, they might want to explore how oscillations arise by calling `trajectory()` and have it return a history of how two different flows `du` of material between two compounds ADP and F6P vary over time. Or they might want to define their own variable `energy`, have it updated on each step, and study its history after a run to see how it varies.

I realise that I could have them `step!()` through the simulation to update variables, but I’m assuming it’s more efficient to use `trajectory()`, and in any case, I want the students to concentrate on the biological content, rather than on implementation details. I also gained the impression from your reply to [another](https://discourse.julialang.org/t/debugging-an-anonymous-function-passed-to-dynamicalsystems/106890/4) post of mine, that it would be an abuse of their intent to store changing values in a parameter.

---

_[View the full topic](https://discourse.julialang.org/t/tracking-dynamical-increments-du-and-accompanying-variables-during-a-dynamicalsystems-run/107558)._
