mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Determine whether nuclides are fissionable in volume calc mode (#3047)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
parent
390005e841
commit
78ee851990
2 changed files with 20 additions and 1 deletions
|
|
@ -63,6 +63,19 @@ Nuclide::Nuclide(hid_t group, const vector<double>& temperature)
|
|||
read_attribute(group, "atomic_weight_ratio", awr_);
|
||||
|
||||
if (settings::run_mode == RunMode::VOLUME) {
|
||||
// Determine whether nuclide is fissionable and then exit
|
||||
int mt;
|
||||
hid_t rxs_group = open_group(group, "reactions");
|
||||
for (auto name : group_names(rxs_group)) {
|
||||
if (starts_with(name, "reaction_")) {
|
||||
hid_t rx_group = open_group(rxs_group, name.c_str());
|
||||
read_attribute(rx_group, "mt", mt);
|
||||
if (is_fission(mt)) {
|
||||
fissionable_ = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue