arfc / transition-scenarios

A repository to hold transition scenarios with Cyclus.
Other
3 stars 12 forks source link

Update advanced reactor deployment scheme #141

Closed abachma2 closed 2 years ago

abachma2 commented 2 years ago

I have updated the functions in scripts/create_AR_DeployInst.py to redeploy advanced reactors on a 1:1 basis. This is done by looking at the defined deployments at timestep current-lifetime of reactor. Then the number of reactors to redeploy is calculated by rounding up on the demand of energy at the current timestep divided by the energy output of the reactor in question. It is not a direct replacement of the same number of reactors to reduce any oversupply of power that may be caused.

Example: 4 of Type1 reactors are deployed at time 3, with a lifetime of 5 timesteps. They supply 100 MW for a total power supply of 500 MW against a demand of 480 MWe.

At timestep 8, a total of 410 MW are already deployed so only 3 Type1 reactors need to be deployed to meet the demand of 480 MW.

I have updated the tests for this module (scripts/tests/test_create_AR_DeployInst.py), and all tests pass.

nsryan2 commented 2 years ago

Ok, everything looks good to me! I'll merge if it's all set