Cardinal
CellTally.h
Go to the documentation of this file.
1 /********************************************************************/
2 /* SOFTWARE COPYRIGHT NOTIFICATION */
3 /* Cardinal */
4 /* */
5 /* (c) 2021 UChicago Argonne, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by UChicago Argonne, LLC */
9 /* Under Contract No. DE-AC02-06CH11357 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* Prepared by Battelle Energy Alliance, LLC */
13 /* Under Contract No. DE-AC07-05ID14517 */
14 /* With the U. S. Department of Energy */
15 /* */
16 /* See LICENSE for full restrictions */
17 /********************************************************************/
18 
19 #pragma once
20 
21 #include "TallyBase.h"
23 
24 #include "openmc/tallies/filter_cell.h"
25 
26 class CellTally : public TallyBase
27 {
28 public:
29  static InputParameters validParams();
30 
31  CellTally(const InputParameters & parameters);
32 
38  virtual std::pair<unsigned int, openmc::Filter *> spatialFilter() override;
39 
40 protected:
51  virtual Real storeResultsInner(const std::vector<unsigned int> & var_numbers,
52  unsigned int local_score,
53  const std::vector<OMCTensor> & tally_vals,
54  bool norm_by_src_rate = true) override;
55 
62 
67  std::vector<OpenMCCellAverageProblem::cellInfo> getTallyCells() const;
68 
70  std::map<OpenMCCellAverageProblem::cellInfo, bool> _cell_has_tally;
71 
73  openmc::CellInstanceFilter * _cell_filter;
74 
87 
90 };
openmc::CellInstanceFilter * _cell_filter
OpenMC mesh filter for this unstructured mesh tally.
Definition: CellTally.h:73
const bool & _check_equal_mapped_tally_volumes
Definition: CellTally.h:86
Definition: CellTally.h:26
std::vector< OpenMCCellAverageProblem::cellInfo > getTallyCells() const
virtual std::pair< unsigned int, openmc::Filter * > spatialFilter() override
const Real & _equal_tally_volume_abs_tol
Absolute tolerance for checking equal tally mapped volumes.
Definition: CellTally.h:89
void checkCellMappedSubdomains()
std::map< OpenMCCellAverageProblem::cellInfo, bool > _cell_has_tally
Whether a cell index, instance pair should be added to the tally filter.
Definition: CellTally.h:70
Definition: TallyBase.h:35
virtual Real storeResultsInner(const std::vector< unsigned int > &var_numbers, unsigned int local_score, const std::vector< OMCTensor > &tally_vals, bool norm_by_src_rate=true) override
CellTally(const InputParameters &parameters)
static InputParameters validParams()