Alternative Random Ray Volume Estimators (#3060)

Co-authored-by: Olek <45364492+yardasol@users.noreply.github.com>
This commit is contained in:
John Tramm 2024-08-23 11:56:26 -05:00 committed by GitHub
parent 86fc40a645
commit 5bc04b5d78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
47 changed files with 2517 additions and 727 deletions

View file

@ -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);