mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Add user setting for free gas threshold (#3593)
This commit is contained in:
parent
50071aa3bd
commit
2c15480cc9
8 changed files with 49 additions and 8 deletions
|
|
@ -126,6 +126,7 @@ SolverType solver_type {SolverType::MONTE_CARLO};
|
|||
std::unordered_set<int> sourcepoint_batch;
|
||||
std::unordered_set<int> statepoint_batch;
|
||||
double source_rejection_fraction {0.05};
|
||||
double free_gas_threshold {400.0};
|
||||
std::unordered_set<int> source_write_surf_id;
|
||||
int64_t ssw_max_particles;
|
||||
int64_t ssw_max_files;
|
||||
|
|
@ -651,6 +652,10 @@ void read_settings_xml(pugi::xml_node root)
|
|||
std::stod(get_node_value(root, "source_rejection_fraction"));
|
||||
}
|
||||
|
||||
if (check_for_node(root, "free_gas_threshold")) {
|
||||
free_gas_threshold = std::stod(get_node_value(root, "free_gas_threshold"));
|
||||
}
|
||||
|
||||
// Survival biasing
|
||||
if (check_for_node(root, "survival_biasing")) {
|
||||
survival_biasing = get_node_value_bool(root, "survival_biasing");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue