#include <OpenMCInitAction.h>
◆ OpenMCInitAction()
| OpenMCInitAction::OpenMCInitAction |
( |
const InputParameters & |
parameters | ) |
|
◆ act()
| virtual void OpenMCInitAction::act |
( |
| ) |
|
|
overridevirtual |
◆ initOpenMC()
| void OpenMCInitAction::initOpenMC |
( |
const std::string & |
xml_directory | ) |
|
|
protected |
Call the OpenMC initialization handle
- Parameters
-
| [in] | xml_directory | directory in which OpenMC settings xml files are located |
◆ isOpenMCCellAverageProblemRequested()
| bool OpenMCInitAction::isOpenMCCellAverageProblemRequested |
( |
std::string & |
xml_directory, |
|
|
Real & |
scaling |
|
) |
| const |
|
protected |
◆ isOpenMCMeshGeneratorRequested()
| bool OpenMCInitAction::isOpenMCMeshGeneratorRequested |
( |
std::string & |
xml_directory, |
|
|
Real & |
scaling |
|
) |
| const |
|
protected |
Check whether an OpenMCMeshGenerator have been requested in the input file and returns the associated path to the XML directory if an OpenMCMeshGenerator is present in the input file.
If multiple OpenMCMeshGenerators are requested but the xml_directory values are not exactly the same, it returns an error because we cannot initialize OpenMC more than once. Additionally, the scaling factor should be the same for all instances of OpenMCMeshGenerators or an error will be raised.
- Parameters
-
| [out] | xml_directory | directory in which OpenMC settings xml files are located |
| [out] | scaling | scaling factor for OpenMC |
- Returns
- whether an OpenMCMeshGenerator have been requested in the input file
◆ validParams()
| static InputParameters OpenMCInitAction::validParams |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: