mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Adding volume trigger via different methods.
This commit is contained in:
parent
9415bbb715
commit
8d1e8711f5
2 changed files with 47 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue