Cardinal
Loading...
Searching...
No Matches
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
26class CellTally : public TallyBase
27{
28public:
29 static InputParameters validParams();
30
31 CellTally(const InputParameters & parameters);
32
38 virtual std::pair<unsigned int, openmc::Filter *> spatialFilter() override;
39
44 virtual void setRelaxation(relaxation::RelaxationEnum relaxation_type,
45 const Real & relaxation_factor) override;
46
47protected:
58 virtual Real storeResultsInner(const std::vector<unsigned int> & var_numbers,
59 unsigned int local_score,
60 const std::vector<OMCTensor> & tally_vals,
61 bool norm_by_src_rate = true) override;
62
69
74 std::vector<OpenMCCellAverageProblem::cellInfo> getTallyCells() const;
75
77 std::map<OpenMCCellAverageProblem::cellInfo, bool> _cell_has_tally;
78
80 openmc::CellInstanceFilter * _cell_filter;
81
94
97};
Definition CellTally.h:27
openmc::CellInstanceFilter * _cell_filter
OpenMC mesh filter for this unstructured mesh tally.
Definition CellTally.h:80
CellTally(const InputParameters &parameters)
virtual void setRelaxation(relaxation::RelaxationEnum relaxation_type, const Real &relaxation_factor) override
void checkCellMappedSubdomains()
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
static InputParameters validParams()
std::vector< OpenMCCellAverageProblem::cellInfo > getTallyCells() const
const Real & _equal_tally_volume_abs_tol
Absolute tolerance for checking equal tally mapped volumes.
Definition CellTally.h:96
std::map< OpenMCCellAverageProblem::cellInfo, bool > _cell_has_tally
Whether a cell index, instance pair should be added to the tally filter.
Definition CellTally.h:77
const bool & _check_equal_mapped_tally_volumes
Definition CellTally.h:93
virtual std::pair< unsigned int, openmc::Filter * > spatialFilter() override
Definition TallyBase.h:36
RelaxationEnum
Type of relaxation.
Definition CardinalEnums.h:275