mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Commit including most of the sampling work in distribution_spatial.cpp and testing
This commit is contained in:
parent
80077ed3fd
commit
9f6d536959
18 changed files with 4669 additions and 39 deletions
|
|
@ -111,7 +111,6 @@ IndependentSource::IndependentSource(pugi::xml_node node)
|
|||
// If no spatial distribution specified, make it a point source
|
||||
space_ = UPtrSpace {new SpatialPoint()};
|
||||
}
|
||||
|
||||
// Determine external source angular distribution
|
||||
if (check_for_node(node, "angle")) {
|
||||
// Get pointer to angular distribution
|
||||
|
|
@ -131,11 +130,9 @@ IndependentSource::IndependentSource(pugi::xml_node node)
|
|||
fatal_error(fmt::format(
|
||||
"Invalid angular distribution for external source: {}", type));
|
||||
}
|
||||
|
||||
} else {
|
||||
angle_ = UPtrAngle {new Isotropic()};
|
||||
}
|
||||
|
||||
// Determine external source energy distribution
|
||||
if (check_for_node(node, "energy")) {
|
||||
pugi::xml_node node_dist = node.child("energy");
|
||||
|
|
@ -144,7 +141,6 @@ IndependentSource::IndependentSource(pugi::xml_node node)
|
|||
// Default to a Watt spectrum with parameters 0.988 MeV and 2.249 MeV^-1
|
||||
energy_ = UPtrDist {new Watt(0.988e6, 2.249e-6)};
|
||||
}
|
||||
|
||||
// Determine external source time distribution
|
||||
if (check_for_node(node, "time")) {
|
||||
pugi::xml_node node_dist = node.child("time");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue