I’m using the Matlab toolkit and am trying to run a step by step analysis where nodal demands can change based on outputs generated from previous timesteps. I was hoping to use code similar to the ClosePipesSim.m example, but the function setNodeBaseDemands, which I’m trying to use, doesn’t seem to work. For example, writing:
with the intention of changing the 5th node to a demand of 40 is doing nothing.
I’ve also tried manually adjusting the demand:
where index is the node number to be changed and variable a vector with new values. This does update the nodal demands but doesn’t seem to change the outputs of the analysis. I’ve also tried changing the demand pattern with a similar result. Is this possible to do, and does anyone know if there’s a basic mistake in this method or if it is genuinely challenging?