- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am modelling a water storage tank and am using a kinetic variable, storageVolume, to model tank volume (and net inflow). I don't set the volume directly, I'm only modifying storageVolume.rate in my scripts. If I put a Tracked Variable Table on the dashboard, I can see that the volume is correctly updated as the rate is changed, but if I put a Tracked Variable Line plot on the dashboard, it does not register any points.
As a quick hack, after I modify storageVolume.rate, I can do something like this:
storageVolume.value += 0.0001;
storageVolume.value -= 0.0001;
The above will make the plot work, whilst doing storageVolume.value = storageVolume.value will not.
This feels hacky - is there a better approach?
On a related topic, how can I generate a line plot of storageVolume.rate?
Solved! Go to Solution.