Cardinal
Loading...
Searching...
No Matches
AddTallyAction.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 "MooseObjectAction.h"
22
23#include "TallyBase.h"
24
26class AddTallyAction : public MooseObjectAction
27{
28public:
29 static InputParameters validParams();
30
31 AddTallyAction(const InputParameters & parameters);
32
33 virtual void act() override;
34
35protected:
43 void addMeshTally(unsigned int instance = 0, const Point & translation = Point(0.0, 0.0, 0.0));
44
51 void addTally();
52
58
63 void readMeshTranslations(const std::vector<std::vector<double>> & data);
64
66 std::vector<Point> _mesh_translations;
67
72 std::vector<std::shared_ptr<TallyBase>> _linked_mesh_tallies;
73};
This action adds tallies for use in simulations that couple OpenMC.
Definition AddTallyAction.h:27
void addMeshTally(unsigned int instance=0, const Point &translation=Point(0.0, 0.0, 0.0))
void fillMeshTranslations()
void readMeshTranslations(const std::vector< std::vector< double > > &data)
virtual void act() override
std::vector< Point > _mesh_translations
The number of mesh translations.
Definition AddTallyAction.h:66
static InputParameters validParams()
AddTallyAction(const InputParameters &parameters)
std::vector< std::shared_ptr< TallyBase > > _linked_mesh_tallies
Definition AddTallyAction.h:72