minimc 0.5.1
Loading...
Searching...
No Matches
Driver Class Referenceabstract

A Driver owns all the data needed to perform radiation transport. More...

#include <Driver.hpp>

Inheritance diagram for Driver:
Collaboration diagram for Driver:

Public Member Functions

 Driver (const pugi::xml_node &root)
 Creates objects necessary for a radiation transport.
 
virtual ~Driver () noexcept
 Virtual destructor (C++ Core Guidelines C.127)
 
virtual EstimatorSet Solve ()=0
 Solves the problem. More...
 

Static Public Member Functions

static std::unique_ptr< DriverCreate (const std::filesystem::path &xml_filepath)
 Factory method to create new Driver from XML document. More...
 

Public Attributes

const RNG::result_type batchsize
 Total histories for fixed-source; cycle weight for k-eigenvalue (C++ Core Guidelines C.131)
 

Protected Attributes

const World world
 Global, read-only description of geometric and material properties.
 
const PerturbationSet perturbations
 All perturbations whose effect on one or more Estimator objects is being estimated.
 
const RNG::result_type seed
 Histories are assigned a seed in [seed, seed + batchsize)
 
const EstimatorSet init_estimator_set
 Initial value of an EstimatorSet used to initialize workers.
 
const size_t threads
 Number of threads dedicated to particle transport.
 

Detailed Description

A Driver owns all the data needed to perform radiation transport.

Member Function Documentation

◆ Create()

static std::unique_ptr< Driver > Driver::Create ( const std::filesystem::path &  xml_filepath)
static

Factory method to create new Driver from XML document.

Returns
A std::unique_ptr to the constructed Driver (C++ Core Guidelines R.30)

◆ Solve()

virtual EstimatorSet Driver::Solve ( )
pure virtual

Solves the problem.

Implemented in FixedSource, and KEigenvalue.


The documentation for this class was generated from the following file: