Cardinal
OpenMCTallyNuclides.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 "GeneralUserObject.h"
22 
26 class OpenMCTallyNuclides : public GeneralUserObject
27 {
28 public:
29  static InputParameters validParams();
30 
31  OpenMCTallyNuclides(const InputParameters & parameters);
32 
34  virtual void execute() override {}
35 
36  virtual void initialize() override {}
37  virtual void finalize() override {}
38 
40  virtual void setValue();
41 
42 protected:
44  int32_t _tally_index;
45 
47  const std::vector<std::string> & _names;
48 };
virtual void initialize() override
Definition: OpenMCTallyNuclides.h:36
const std::vector< std::string > & _names
Nuclide names.
Definition: OpenMCTallyNuclides.h:47
Definition: OpenMCTallyNuclides.h:26
int32_t _tally_index
The tally index.
Definition: OpenMCTallyNuclides.h:44
OpenMCTallyNuclides(const InputParameters &parameters)
virtual void setValue()
Instead, we want to have a separate method that we can call from the OpenMC problem.
static InputParameters validParams()
virtual void execute() override
We don't want this user object to execute in MOOSE's control.
Definition: OpenMCTallyNuclides.h:34
virtual void finalize() override
Definition: OpenMCTallyNuclides.h:37