Adding volume trigger via different methods.

This commit is contained in:
Patrick Shriwise 2019-10-05 12:33:00 -05:00
parent 9415bbb715
commit 8d1e8711f5
2 changed files with 47 additions and 5 deletions

View file

@ -12,11 +12,18 @@
namespace openmc {
enum class ThresholdType {
VARIANCE = 0,
STD_DEV = 1,
REL_ERR = 2
};
//==============================================================================
// Volume calculation class
//==============================================================================
class VolumeCalculation {
public:
// Aliases, types
struct Result {
@ -88,6 +95,7 @@ public:
int domain_type_; //!< Type of domain (cell, material, etc.)
size_t n_samples_; //!< Number of samples to use
double threshold_ {-1.0}; //!< Error threshold for domain volumes
ThresholdType threshold_type_;
Position lower_left_; //!< Lower-left position of bounding box
Position upper_right_; //!< Upper-right position of bounding box
std::vector<int> domain_ids_; //!< IDs of domains to find volumes of