Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic power reactor #65

Merged
merged 6 commits into from
Feb 24, 2025
Merged

Add dynamic power reactor #65

merged 6 commits into from
Feb 24, 2025

Conversation

nsryan2
Copy link
Member

@nsryan2 nsryan2 commented Feb 24, 2025

Summary of changes

DPR is a Cyclus reactor archetype based on Cycamore's Reactor, except that it has the ability to update the power output over time.

Outside of refueling, the power output of the reactor can be modified by a percentage in the Tock phase of each time step. This feature is optional, and will default to 100% of the power_cap variable the user identifies. At each time step, the reactor will progress through the percentages; as such, there must be a percentage for each time step (if the length of the power_percent_list is shorter than the number of time steps, the reactor will default to 100%).

To simulate 10 time steps, a user could provide a list like:

<power_percent_list>
    <val>0.3</val>
    <val>1</val>
    <val>1</val>
    <val>1</val>
    <val>1</val>
    <val>1</val>
    <val>0.9</val>
    <val>0.5</val>
    <val>1</val>
    <val>1</val>
</power_percent_list>

If the simulation was extended to 11 time steps with out the list changing, the 11th time step would have a power output of 1 (or 100%).

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Associated Issues and PRs

  • Issue: #

Associated Developers

  • Dev: @

Checklist for Reviewers

Reviewers should use this link to get to the
Review Checklist before they begin their review.

@nsryan2 nsryan2 added the New Feature Adds a new feature label Feb 24, 2025
@nsryan2 nsryan2 self-assigned this Feb 24, 2025
@nsryan2 nsryan2 merged commit cf897dd into arfc:main Feb 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature Adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant