Define a Connector plugin.
More...
#include <ConnectorPlugin.hxx>
Define a Connector plugin.
This allows to have direct interaction with Serpent or MCNP (writing files, reading output, setting special cards, ...). IT IS MANDATORY TO AFFECT TO MURE A Serpent::Connector or a MCNP::Connector VIA the gMURE->SetConnectorPlugin() jus after the "int main()" declaration. See MURE::SetConnectorPlugin().
- Author
- J. Hajnrych
-
PTO
- Version
- 1.0
◆ ConnectorPlugin() [1/2]
ConnectorPlugin::ConnectorPlugin |
( |
| ) |
|
◆ ~ConnectorPlugin()
ConnectorPlugin::~ConnectorPlugin |
( |
| ) |
|
|
virtual |
◆ ConnectorPlugin() [2/2]
◆ BuildDetectors()
virtual void ConnectorPlugin::BuildDetectors |
( |
| ) |
|
|
pure virtual |
◆ BuildMCFile()
virtual void ConnectorPlugin::BuildMCFile |
( |
string |
FileString = "" | ) |
|
|
pure virtual |
◆ BuildMultiGroupDetectors()
virtual void ConnectorPlugin::BuildMultiGroupDetectors |
( |
| ) |
|
|
pure virtual |
◆ BuildPinCells()
virtual void ConnectorPlugin::BuildPinCells |
( |
bool |
Auto = false | ) |
|
|
pure virtual |
Build Pincells. MURE has implemented the Serpent "pin" cell in a PinCell class. This is a very useful and elegant way of defining general pins. This methods transforms these PinCells in real MCNP Cells or virtual Serpent Cells. The Auto flag is used only in the "Serpent" version.
- Parameters
-
Auto | : when true, it means that it is called from automatic tallies building |
Implemented in MCNP::Connector, and Serpent::Connector.
◆ BuildTHMultiGroupDetectors()
virtual void ConnectorPlugin::BuildTHMultiGroupDetectors |
( |
| ) |
|
|
pure virtual |
◆ BuildXSDIR()
virtual void ConnectorPlugin::BuildXSDIR |
( |
| ) |
|
|
pure virtual |
◆ Clone()
◆ FindDetectorMCUserFile()
virtual void ConnectorPlugin::FindDetectorMCUserFile |
( |
| ) |
|
|
pure virtual |
◆ FindMissingVolume()
virtual void ConnectorPlugin::FindMissingVolume |
( |
| ) |
|
|
pure virtual |
◆ GetMCDetectorOutputFileName()
virtual string ConnectorPlugin::GetMCDetectorOutputFileName |
( |
string |
InputFileName, |
|
|
bool |
OnlyKeff = false |
|
) |
| |
|
inlinevirtual |
◆ GetMCExecCommandString()
virtual string ConnectorPlugin::GetMCExecCommandString |
( |
string |
InputFileName, |
|
|
string |
Arg = "" , |
|
|
string |
FileArg = "" |
|
) |
| |
|
inlinevirtual |
MC exec command line. This return the string to exec (via system()) to run a MC. It takes input file name (e.g. inp000), arguments (e.g. "task N n=) and file argument (e.g. s=inps).
- Parameters
-
InputFileName | : input file name |
Arg | : argument between exec name and input file name (task ...) |
FileArg | : argument after input file name (s=...) |
Reimplemented in MCNP::Connector, and Serpent::Connector.
◆ GetMCGlobalOutputFileName()
string ConnectorPlugin::GetMCGlobalOutputFileName |
( |
string |
InputFileName | ) |
|
|
inline |
◆ GetMCSource()
MCSource * ConnectorPlugin::GetMCSource |
( |
| ) |
|
|
inline |
< return the MC particle source
◆ GetNewGroupBin()
◆ GetNewNode()
MathNode * ConnectorPlugin::GetNewNode |
( |
int |
sign | ) |
|
|
virtual |
◆ GetNewSimpleBin()
◆ IsSerpentConnector()
bool ConnectorPlugin::IsSerpentConnector |
( |
| ) |
|
|
inline |
< used for Tally group bin on surface for serpent
◆ IsTHMultiGroupTalliesUsed()
bool ConnectorPlugin::IsTHMultiGroupTalliesUsed |
( |
| ) |
|
|
inline |
< return true for Thermal hydraulics Multi group flux MC run
◆ IsVolumeCalculationNeeded()
bool ConnectorPlugin::IsVolumeCalculationNeeded |
( |
| ) |
|
|
protected |
scan tallies to find if a bin need a volume that is, for now, unknown
◆ Print() [1/3]
virtual string ConnectorPlugin::Print |
( |
Cell * |
TheCell | ) |
|
|
pure virtual |
◆ Print() [2/3]
virtual string ConnectorPlugin::Print |
( |
Material * |
mat | ) |
|
|
pure virtual |
◆ Print() [3/3]
◆ PrintId() [1/2]
virtual string ConnectorPlugin::PrintId |
( |
Cell * |
cell | ) |
|
|
pure virtual |
◆ PrintId() [2/2]
virtual string ConnectorPlugin::PrintId |
( |
Material * |
material | ) |
|
|
pure virtual |
◆ PrintMaterialId()
virtual string ConnectorPlugin::PrintMaterialId |
( |
int |
id | ) |
|
|
inlinevirtual |
◆ PrintModeratorMaterial()
virtual string ConnectorPlugin::PrintModeratorMaterial |
( |
Material * |
mat | ) |
|
|
pure virtual |
◆ SetMCSource()
void ConnectorPlugin::SetMCSource |
( |
MCSource * |
source | ) |
|
set the MC particle source to the Connector
◆ SumOutputDetectorFile()
virtual void ConnectorPlugin::SumOutputDetectorFile |
( |
string |
DetectorBaseFileName, |
|
|
int |
N, |
|
|
string |
SumDetectorFileName |
|
) |
| |
|
pure virtual |
Sum MC detector output in multi run mode. The multi run mode (set via MURE::SetRunMultiMC) allow to run, for each MC step, N MC calculations to smooth fluactuations ; Then, this method is used to buid the sum result of each individual MC run, in a unique Detector output file ("m" file of MCNP or "_det0.m" file for Serpent.
- Parameters
-
DetectorBaseFileName | : base name of individual run (real name are DetectorBaseFileNameX where X=0..N) |
N | : number of multi-run in a MC step |
SumDetectorFileName | : sum of all individual run in this file (it has the same format than each individual one) |
Implemented in MCNP::Connector, and Serpent::Connector.
◆ UpdateKeff()
virtual void ConnectorPlugin::UpdateKeff |
( |
| ) |
|
|
pure virtual |
◆ UpdateMultiGroupSigmaPhiDetectors()
virtual void ConnectorPlugin::UpdateMultiGroupSigmaPhiDetectors |
( |
| ) |
|
|
pure virtual |
◆ UpdateSigmaPhiDetectors()
virtual void ConnectorPlugin::UpdateSigmaPhiDetectors |
( |
| ) |
|
|
pure virtual |
◆ UpdateTallyBinVolume()
virtual void ConnectorPlugin::UpdateTallyBinVolume |
( |
| ) |
|
|
pure virtual |
◆ UpdateTHMultiGroupSigmaPhiDetectors()
virtual void ConnectorPlugin::UpdateTHMultiGroupSigmaPhiDetectors |
( |
| ) |
|
|
pure virtual |
◆ WriteMCFileWithoutDetector()
virtual void ConnectorPlugin::WriteMCFileWithoutDetector |
( |
string |
FileName = "inp" , |
|
|
bool |
tmpvol = false |
|
) |
| |
|
inlinevirtual |
◆ fIsSerpentConnector
bool ConnectorPlugin::fIsSerpentConnector |
|
protected |
◆ fMCDetectorOutputSuffix
string ConnectorPlugin::fMCDetectorOutputSuffix |
|
protected |
◆ fMCGlobalOutputSuffix
string ConnectorPlugin::fMCGlobalOutputSuffix |
|
protected |
"o" file for MCNP and it should be "_res.m" file for Serpent
◆ fPinCellBuilt
bool ConnectorPlugin::fPinCellBuilt |
|
protected |
whether or not PinCell have already been built
◆ fRebuildDetector
bool ConnectorPlugin::fRebuildDetector |
|
protected |
whether or not rebuild detectors (for thermo-hydraulics)
◆ fSource
◆ fTHMultigroupTallies
bool ConnectorPlugin::fTHMultigroupTallies |
|
protected |
True in Thermal hydraulics multigroup calculation.
The documentation for this class was generated from the following files: