Cardinal
OpenMCNuclideDensities.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 OpenMCNuclideDensities : public GeneralUserObject
27 {
28 public:
29  static InputParameters validParams();
30 
31  OpenMCNuclideDensities(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  const int32_t & _material_id;
45 
47  int32_t _material_index;
48 
50  const std::vector<std::string> & _names;
51 
53  const std::vector<double> & _densities;
54 };
static InputParameters validParams()
const std::vector< double > & _densities
Nuclide densities.
Definition: OpenMCNuclideDensities.h:53
int32_t _material_index
The material index.
Definition: OpenMCNuclideDensities.h:47
Definition: OpenMCNuclideDensities.h:26
OpenMCNuclideDensities(const InputParameters &parameters)
virtual void setValue()
Instead, we want to have a separate method that we can call from the OpenMC problem.
const std::vector< std::string > & _names
Nuclide names.
Definition: OpenMCNuclideDensities.h:50
const int32_t & _material_id
The material ID.
Definition: OpenMCNuclideDensities.h:44
virtual void finalize() override
Definition: OpenMCNuclideDensities.h:37
virtual void execute() override
We don't want this user object to execute in MOOSE's control.
Definition: OpenMCNuclideDensities.h:34
virtual void initialize() override
Definition: OpenMCNuclideDensities.h:36