mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Alternative Random Ray Volume Estimators (#3060)
Co-authored-by: Olek <45364492+yardasol@users.noreply.github.com>
This commit is contained in:
parent
86fc40a645
commit
5bc04b5d78
47 changed files with 2517 additions and 727 deletions
|
|
@ -269,6 +269,20 @@ void get_run_parameters(pugi::xml_node node_base)
|
|||
} else {
|
||||
fatal_error("Specify random ray source in settings XML");
|
||||
}
|
||||
if (check_for_node(random_ray_node, "volume_estimator")) {
|
||||
std::string temp_str =
|
||||
get_node_value(random_ray_node, "volume_estimator", true, true);
|
||||
if (temp_str == "simulation_averaged") {
|
||||
FlatSourceDomain::volume_estimator_ =
|
||||
RandomRayVolumeEstimator::SIMULATION_AVERAGED;
|
||||
} else if (temp_str == "naive") {
|
||||
FlatSourceDomain::volume_estimator_ = RandomRayVolumeEstimator::NAIVE;
|
||||
} else if (temp_str == "hybrid") {
|
||||
FlatSourceDomain::volume_estimator_ = RandomRayVolumeEstimator::HYBRID;
|
||||
} else {
|
||||
fatal_error("Unrecognized volume estimator: " + temp_str);
|
||||
}
|
||||
}
|
||||
if (check_for_node(random_ray_node, "source_shape")) {
|
||||
std::string temp_str =
|
||||
get_node_value(random_ray_node, "source_shape", true, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue