Closed robfairh closed 5 years ago
@gwenchee any ideas about this?
@FlanFlanagan
Timeseriespower is a table that’s always been there and timeseriessupplypower was something that we added.
Are you saying that the timeseriessupplypower is used in timeseriesinst? The calc_diff function?
Timeseriesinst uses calc_demand and calc_supply for those calculations. So the deployment of facilities shouldn't be affected by the presence of that timeseriessupplypower. But I am not completely sure. That's why I am asking. The issue that I noticed is that tester.py makes use of timeseriessupplypower which doesn't start at t=0. I am also asking if we should do something about it or not.
If there is no power supply in time step 0 then it should be fine to use it?
On Mon, 4 Mar 2019 at 12:15 PM, robfairh notifications@github.com wrote:
Timeseriesinst uses calc_demand and calc_supply for those calculations. So the deployment of facilities shouldn't be affected by the presence of that timeseriessupplypower. But I am not completely sure. That's why I am asking. The issue that I noticed is that tester.py makes use of timeseriessupplypower which doesn't start at t=0. I am also asking if we should do something about it or not.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/arfc/d3ploy/issues/196#issuecomment-469383755, or mute the thread https://github.com/notifications/unsubscribe-auth/AcCTfHLQ4dWTA7drEJUCHDjACxQz4U2fks5vTXC-gaJpZM4bXmyk .
-- Gwendolyn J. Chee Master's Student Department of Nuclear, Plasma and Radiological Engineering University of Illinois at Urbana-Champaign Email: gchee2@illinois.edu
timeseriessupplypower starts at the first timestep where power is not 0. Even though, reactors were deployed, there is no power produced by them.
If we are actually looking at the supply of power, then the table should start at timestep 0 or when the first reactor is deployed. If we are looking at the under supply of power, then we are not taking into consideration the timesteps where the reactors are deployed and don't produce any power.
I think that both tables should be the same. I don't know if I am explaining the problem properly.
What should we do about this issue @robfairh
we should edit tester so that it reflects the power supply is 0 in time steps 1 and 2 since the reactor facilities are deployed at time step 1
This is cycamore/src/reactor.cc now:
I think it should be like this:
What do you think @gwenchee ?? I am not brave enough ...
I did it and it seems to be working. cycamore_unit_tests worked fine.
Timeseriespower:
Timeseriessupplypower:
Should I make a PR to cycamore? @gwenchee
Ya do it!
addressed by https://github.com/cyclus/cycamore/pull/499
closed with merging of that PR
There are two tables for Power. The first one is 'timeseriespower', which starts in the beginning of the simulation. The first one is 'timeseriessupplypower', it starts when the first reactor produces power.
I don't know if all the functions are consistent in the choice of table. For calculating the 'under_supply' it uses the second one which leads to an inaccurate value:
The first values should be consider as under supply as there is no power generated during those times.
This issue can be closed when we make sure that the use of both tables is consistent and we have a value for supply (even if it is 0) when the reactor is deployed and not when it starts producing power.