21 #include "GeneralUserObject.h" 22 #include "openmc/volume_calc.h" 53 openmc::Position
position(
const Point & pt)
const;
86 std::vector<openmc::VolumeCalculation::Result>
_results;
std::vector< openmc::VolumeCalculation::Result > _results
Results of the volume calculation.
Definition: OpenMCVolumeCalculation.h:86
Real _trigger_threshold
Threshold for terminating the trigger.
Definition: OpenMCVolumeCalculation.h:71
Real _scaling
Length multiplier applied to [Mesh] to get into OpenMC centimeters.
Definition: OpenMCVolumeCalculation.h:74
const MooseEnum _trigger
Trigger for deciding when to terminate the stochastic volume calculation.
Definition: OpenMCVolumeCalculation.h:68
virtual void resetVolumeCalculation()
Erase previously-added volume calculation.
const unsigned int & _n_samples
Number of stochastic samples for calculation.
Definition: OpenMCVolumeCalculation.h:65
unsigned int _calc_index
Index of volume calculation we add in OpenMC.
Definition: OpenMCVolumeCalculation.h:92
Definition: CardinalEnums.h:166
openmc::Position position(const Point &pt) const
static InputParameters validParams()
OpenMCVolumeCalculation(const InputParameters ¶meters)
Definition: OpenMCVolumeCalculation.h:28
virtual void initialize()
Definition: OpenMCVolumeCalculation.h:35
Point _upper_right
Upper right of the box within which to compute OpenMC volumes.
Definition: OpenMCVolumeCalculation.h:80
virtual void execute()
Definition: OpenMCVolumeCalculation.h:37
std::unique_ptr< openmc::VolumeCalculation > _volume_calc
Volume calculation object.
Definition: OpenMCVolumeCalculation.h:83
virtual void initializeVolumeCalculation()
Initialize the volume calculation (not in initialize() because we want to control this from the Probl...
virtual void computeVolumes()
Compute the cell volumes.
Point _lower_left
Lower left of the box within which to compute OpenMC volumes.
Definition: OpenMCVolumeCalculation.h:77
virtual void finalize()
Definition: OpenMCVolumeCalculation.h:36
void cellVolume(const unsigned int &index, Real &vol, Real &std_dev) const
std::map< int, int > _index_to_calc_index
Map from cell index to its volume calculation result.
Definition: OpenMCVolumeCalculation.h:89