CYCAMORE
Loading...
Searching...
No Matches
cycamore::FuelFab Class Reference

FuelFab takes in 2 streams of material and mixes them in ratios in order to supply material that matches some neutronics properties of reqeusted material. More...

#include <fuel_fab.h>

Inheritance diagram for cycamore::FuelFab:

Public Member Functions

virtual void AcceptMatlTrades (const std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > &responses)
 
virtual void AcceptMatlTrades (const std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > &responses)
 
virtual Json::Value annotations ()
 
virtual cyclus::Agent * Clone ()
 
virtual void EnterNotify ()
 
virtual void EnterNotify ()
 
 FuelFab (cyclus::Context *ctx)
 
 FuelFab (cyclus::Context *ctx)
 
virtual std::set< cyclus::BidPortfolio< cyclus::Material >::Ptr > GetMatlBids (cyclus::CommodMap< cyclus::Material >::type &commod_requests)
 
virtual std::set< cyclus::BidPortfolio< cyclus::Material >::Ptr > GetMatlBids (cyclus::CommodMap< cyclus::Material >::type &commod_requests)
 
virtual std::set< cyclus::RequestPortfolio< cyclus::Material >::Ptr > GetMatlRequests ()
 
virtual std::set< cyclus::RequestPortfolio< cyclus::Material >::Ptr > GetMatlRequests ()
 
virtual void GetMatlTrades (const std::vector< cyclus::Trade< cyclus::Material > > &trades, std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > &responses)
 
virtual void GetMatlTrades (const std::vector< cyclus::Trade< cyclus::Material > > &trades, std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > &responses)
 
virtual void InfileToDb (cyclus::InfileTree *tree, cyclus::DbInit di)
 
virtual void InitFrom (cycamore::FuelFab *m)
 
virtual void InitFrom (cyclus::QueryableBackend *b)
 
virtual void InitInv (cyclus::Inventories &inv)
 
virtual std::string schema ()
 
virtual void Snapshot (cyclus::DbInit di)
 
virtual cyclus::Inventories SnapshotInv ()
 
virtual void Tick ()
 
virtual void Tick ()
 
virtual void Tock ()
 
virtual void Tock ()
 
virtual std::string version ()
 
virtual std::string version ()
 
virtual ~FuelFab ()
 
virtual ~FuelFab ()
 

Private Member Functions

void RecordPosition ()
 Records an agent's latitude and longitude to the output db.
 
void RecordPosition ()
 Records an agent's latitude and longitude to the output db.
 

Private Attributes

cyclus::toolkit::Position coordinates
 
std::vector< intcycpp_shape_fill
 
std::vector< intcycpp_shape_fill_commod_prefs
 
std::vector< intcycpp_shape_fill_commods
 
std::vector< intcycpp_shape_fill_recipe
 
std::vector< intcycpp_shape_fill_size
 
std::vector< intcycpp_shape_fiss
 
std::vector< intcycpp_shape_fiss_commod_prefs
 
std::vector< intcycpp_shape_fiss_commods
 
std::vector< intcycpp_shape_fiss_recipe
 
std::vector< intcycpp_shape_fiss_size
 
std::vector< intcycpp_shape_latitude
 
std::vector< intcycpp_shape_longitude
 
std::vector< intcycpp_shape_outcommod
 
std::vector< intcycpp_shape_spectrum
 
std::vector< intcycpp_shape_throughput
 
std::vector< intcycpp_shape_topup
 
std::vector< intcycpp_shape_topup_commod
 
std::vector< intcycpp_shape_topup_pref
 
std::vector< intcycpp_shape_topup_recipe
 
std::vector< intcycpp_shape_topup_size
 
cyclus::toolkit::ResBuf< cyclus::Material > fill
 
std::vector< double > fill_commod_prefs
 
std::vector< std::string > fill_commods
 
std::string fill_recipe
 
double fill_size
 
cyclus::toolkit::ResBuf< cyclus::Material > fiss
 
std::vector< double > fiss_commod_prefs
 
std::vector< std::string > fiss_commods
 
std::string fiss_recipe
 
double fiss_size
 
double latitude
 
double longitude
 
std::string outcommod
 
std::map< cyclus::Request< cyclus::Material > *, std::string > req_inventories_
 
std::string spectrum
 
double throughput
 
cyclus::toolkit::ResBuf< cyclus::Material > topup
 
std::string topup_commod
 
double topup_pref
 
std::string topup_recipe
 
double topup_size
 

Detailed Description

FuelFab takes in 2 streams of material and mixes them in ratios in order to supply material that matches some neutronics properties of reqeusted material.

It uses an equivalence type method [1] inspired by a similar approach in the COSI fuel cycle simulator.

The FuelFab has 3 input inventories: fissile stream, filler stream, and an optional top-up inventory. All materials received into each inventory are always combined into a single material (i.e. a single fissile material, a single filler material, etc.). The input streams and requested fuel composition are each assigned weights based on summing:

N * (p_i - p_U238) / (p_Pu239 - p_U238)

for each nuclide where:

- p = nu*sigma_f - sigma_a   for the nuclide
- p_U238 is p for pure U238
- p_Pu239 is p for pure Pu239
- N is the nuclide's atom fraction
- nu is the average # neutrons per fission
- sigma_f is the microscopic fission cross-section
- sigma_a is the microscopic neutron absorption cross-section

The cross sections are from the simple cross section library in PyNE. They can be set to either a thermal or fast neutron spectrum. A linear interpolation is performed using the weights of the fissile, filler, and target streams. The interpolation is used to compute a mixing ratio of the input streams that matches the target weight. In the event that the target weight is higher than the fissile stream weight, the FuelFab will attempt to use the top-up and fissile input streams together instead of the fissile and filler streams. All supplied material will always have the same weight as the requested material.

The supplying of mixed material is constrained by available inventory quantities and a per time step throughput limit. Requests for fuel material larger than the throughput can never be met. Fissile inventory can be requested/received via one or more commodities. The DRE request preference for each of these commodities can also optionally be specified. By default, the top-up inventory size is zero, and it is not used for mixing.

[1] Baker, A. R., and R. W. Ross. "Comparison of the value of plutonium and
uranium isotopes in fast reactors." Proceedings of the Conference on
Breeding. Economics, and Safety in Large Fast Power Reactors. 1963.

Definition at line 58 of file build/cycamore/fuel_fab.h.

Constructor & Destructor Documentation

◆ FuelFab() [1/2]

cycamore::FuelFab::FuelFab ( cyclus::Context * ctx)

Definition at line 134 of file build/cycamore/fuel_fab.cc.

◆ ~FuelFab() [1/2]

virtual cycamore::FuelFab::~FuelFab ( )
inlinevirtual

Definition at line 65 of file build/cycamore/fuel_fab.h.

◆ FuelFab() [2/2]

cycamore::FuelFab::FuelFab ( cyclus::Context * ctx)

◆ ~FuelFab() [2/2]

virtual cycamore::FuelFab::~FuelFab ( )
inlinevirtual

Definition at line 110 of file src/fuel_fab.h.

Member Function Documentation

◆ AcceptMatlTrades() [1/2]

virtual void cycamore::FuelFab::AcceptMatlTrades ( const std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > & responses)
virtual

◆ AcceptMatlTrades() [2/2]

virtual void cycamore::FuelFab::AcceptMatlTrades ( const std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > & responses)
virtual

◆ annotations()

virtual Json::Value cycamore::FuelFab::annotations ( )
inlinevirtual

Definition at line 535 of file build/cycamore/fuel_fab.h.

◆ Clone()

virtual cyclus::Agent * cycamore::FuelFab::Clone ( )
inlinevirtual

Definition at line 436 of file build/cycamore/fuel_fab.h.

◆ EnterNotify() [1/2]

void cycamore::FuelFab::EnterNotify ( )
virtual

◆ EnterNotify() [2/2]

virtual void cycamore::FuelFab::EnterNotify ( )
virtual

◆ GetMatlBids() [1/2]

virtual std::set< cyclus::BidPortfolio< cyclus::Material >::Ptr > cycamore::FuelFab::GetMatlBids ( cyclus::CommodMap< cyclus::Material >::type & commod_requests)
virtual

◆ GetMatlBids() [2/2]

virtual std::set< cyclus::BidPortfolio< cyclus::Material >::Ptr > cycamore::FuelFab::GetMatlBids ( cyclus::CommodMap< cyclus::Material >::type & commod_requests)
virtual

◆ GetMatlRequests() [1/2]

std::set< cyclus::RequestPortfolio< Material >::Ptr > cycamore::FuelFab::GetMatlRequests ( )
virtual

◆ GetMatlRequests() [2/2]

virtual std::set< cyclus::RequestPortfolio< cyclus::Material >::Ptr > cycamore::FuelFab::GetMatlRequests ( )
virtual

◆ GetMatlTrades() [1/2]

virtual void cycamore::FuelFab::GetMatlTrades ( const std::vector< cyclus::Trade< cyclus::Material > > & trades,
std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > & responses )
virtual

◆ GetMatlTrades() [2/2]

virtual void cycamore::FuelFab::GetMatlTrades ( const std::vector< cyclus::Trade< cyclus::Material > > & trades,
std::vector< std::pair< cyclus::Trade< cyclus::Material >, cyclus::Material::Ptr > > & responses )
virtual

◆ InfileToDb()

virtual void cycamore::FuelFab::InfileToDb ( cyclus::InfileTree * tree,
cyclus::DbInit di )
inlinevirtual

Definition at line 198 of file build/cycamore/fuel_fab.h.

◆ InitFrom() [1/2]

virtual void cycamore::FuelFab::InitFrom ( cycamore::FuelFab * m)
inlinevirtual

Definition at line 68 of file build/cycamore/fuel_fab.h.

References CYCAMORE_VERSION.

◆ InitFrom() [2/2]

◆ InitInv()

virtual void cycamore::FuelFab::InitInv ( cyclus::Inventories & inv)
inlinevirtual

Definition at line 714 of file build/cycamore/fuel_fab.h.

◆ RecordPosition() [1/2]

void cycamore::FuelFab::RecordPosition ( )
private

Records an agent's latitude and longitude to the output db.

Definition at line 499 of file build/cycamore/fuel_fab.cc.

References latitude, and longitude.

Referenced by EnterNotify().

◆ RecordPosition() [2/2]

void cycamore::FuelFab::RecordPosition ( )
private

Records an agent's latitude and longitude to the output db.

◆ schema()

virtual std::string cycamore::FuelFab::schema ( )
inlinevirtual

Definition at line 442 of file build/cycamore/fuel_fab.h.

◆ Snapshot()

virtual void cycamore::FuelFab::Snapshot ( cyclus::DbInit di)
inlinevirtual

Definition at line 732 of file build/cycamore/fuel_fab.h.

◆ SnapshotInv()

virtual cyclus::Inventories cycamore::FuelFab::SnapshotInv ( )
inlinevirtual

Definition at line 721 of file build/cycamore/fuel_fab.h.

◆ Tick() [1/2]

virtual void cycamore::FuelFab::Tick ( )
inlinevirtual

Definition at line 755 of file build/cycamore/fuel_fab.h.

◆ Tick() [2/2]

virtual void cycamore::FuelFab::Tick ( )
inlinevirtual

Definition at line 116 of file src/fuel_fab.h.

◆ Tock() [1/2]

virtual void cycamore::FuelFab::Tock ( )
inlinevirtual

Definition at line 756 of file build/cycamore/fuel_fab.h.

◆ Tock() [2/2]

virtual void cycamore::FuelFab::Tock ( )
inlinevirtual

Definition at line 117 of file src/fuel_fab.h.

◆ version() [1/2]

virtual std::string cycamore::FuelFab::version ( )
inlinevirtual

Definition at line 67 of file build/cycamore/fuel_fab.h.

◆ version() [2/2]

virtual std::string cycamore::FuelFab::version ( )
inlinevirtual

Definition at line 112 of file src/fuel_fab.h.

Member Data Documentation

◆ coordinates

cyclus::toolkit::Position cycamore::FuelFab::coordinates
private

Definition at line 895 of file build/cycamore/fuel_fab.h.

◆ cycpp_shape_fill

std::vector<int> cycamore::FuelFab::cycpp_shape_fill
private

Definition at line 797 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_fill_commod_prefs

std::vector<int> cycamore::FuelFab::cycpp_shape_fill_commod_prefs
private

Definition at line 782 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_fill_commods

std::vector<int> cycamore::FuelFab::cycpp_shape_fill_commods
private

Definition at line 777 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_fill_recipe

std::vector<int> cycamore::FuelFab::cycpp_shape_fill_recipe
private

Definition at line 787 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_fill_size

std::vector<int> cycamore::FuelFab::cycpp_shape_fill_size
private

Definition at line 792 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_fiss

std::vector<int> cycamore::FuelFab::cycpp_shape_fiss
private

Definition at line 824 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_fiss_commod_prefs

std::vector<int> cycamore::FuelFab::cycpp_shape_fiss_commod_prefs
private

Definition at line 809 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_fiss_commods

std::vector<int> cycamore::FuelFab::cycpp_shape_fiss_commods
private

Definition at line 804 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_fiss_recipe

std::vector<int> cycamore::FuelFab::cycpp_shape_fiss_recipe
private

Definition at line 814 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_fiss_size

std::vector<int> cycamore::FuelFab::cycpp_shape_fiss_size
private

Definition at line 819 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_latitude

std::vector<int> cycamore::FuelFab::cycpp_shape_latitude
private

Definition at line 884 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_longitude

std::vector<int> cycamore::FuelFab::cycpp_shape_longitude
private

Definition at line 891 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_outcommod

std::vector<int> cycamore::FuelFab::cycpp_shape_outcommod
private

Definition at line 859 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_spectrum

std::vector<int> cycamore::FuelFab::cycpp_shape_spectrum
private

Definition at line 873 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_throughput

std::vector<int> cycamore::FuelFab::cycpp_shape_throughput
private

Definition at line 866 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_topup

std::vector<int> cycamore::FuelFab::cycpp_shape_topup
private

Definition at line 852 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_topup_commod

std::vector<int> cycamore::FuelFab::cycpp_shape_topup_commod
private

Definition at line 831 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_topup_pref

std::vector<int> cycamore::FuelFab::cycpp_shape_topup_pref
private

Definition at line 836 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_topup_recipe

std::vector<int> cycamore::FuelFab::cycpp_shape_topup_recipe
private

Definition at line 842 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ cycpp_shape_topup_size

std::vector<int> cycamore::FuelFab::cycpp_shape_topup_size
private

Definition at line 847 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ fill

cyclus::toolkit::ResBuf< cyclus::Material > cycamore::FuelFab::fill
private

Definition at line 796 of file build/cycamore/fuel_fab.h.

Referenced by GetMatlRequests(), and InitFrom().

◆ fill_commod_prefs

std::vector< double > cycamore::FuelFab::fill_commod_prefs
private

Definition at line 781 of file build/cycamore/fuel_fab.h.

Referenced by EnterNotify(), GetMatlRequests(), and InitFrom().

◆ fill_commods

std::vector< std::string > cycamore::FuelFab::fill_commods
private

Definition at line 776 of file build/cycamore/fuel_fab.h.

Referenced by EnterNotify(), GetMatlRequests(), and InitFrom().

◆ fill_recipe

std::string cycamore::FuelFab::fill_recipe
private

Definition at line 786 of file build/cycamore/fuel_fab.h.

Referenced by GetMatlRequests(), and InitFrom().

◆ fill_size

double cycamore::FuelFab::fill_size
private

Definition at line 791 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ fiss

cyclus::toolkit::ResBuf< cyclus::Material > cycamore::FuelFab::fiss
private

Definition at line 823 of file build/cycamore/fuel_fab.h.

Referenced by GetMatlRequests(), and InitFrom().

◆ fiss_commod_prefs

std::vector< double > cycamore::FuelFab::fiss_commod_prefs
private

Definition at line 808 of file build/cycamore/fuel_fab.h.

Referenced by EnterNotify(), GetMatlRequests(), and InitFrom().

◆ fiss_commods

std::vector< std::string > cycamore::FuelFab::fiss_commods
private

Definition at line 803 of file build/cycamore/fuel_fab.h.

Referenced by EnterNotify(), GetMatlRequests(), and InitFrom().

◆ fiss_recipe

std::string cycamore::FuelFab::fiss_recipe
private

Definition at line 813 of file build/cycamore/fuel_fab.h.

Referenced by GetMatlRequests(), and InitFrom().

◆ fiss_size

double cycamore::FuelFab::fiss_size
private

Definition at line 818 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ latitude

double cycamore::FuelFab::latitude
private

Definition at line 883 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom(), and RecordPosition().

◆ longitude

double cycamore::FuelFab::longitude
private

Definition at line 890 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom(), and RecordPosition().

◆ outcommod

std::string cycamore::FuelFab::outcommod
private

Definition at line 858 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ req_inventories_

std::map< cyclus::Request< cyclus::Material > *, std::string > cycamore::FuelFab::req_inventories_
private

Definition at line 879 of file build/cycamore/fuel_fab.h.

Referenced by GetMatlRequests().

◆ spectrum

std::string cycamore::FuelFab::spectrum
private

Definition at line 872 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ throughput

double cycamore::FuelFab::throughput
private

Definition at line 865 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().

◆ topup

cyclus::toolkit::ResBuf< cyclus::Material > cycamore::FuelFab::topup
private

Definition at line 851 of file build/cycamore/fuel_fab.h.

Referenced by GetMatlRequests(), and InitFrom().

◆ topup_commod

std::string cycamore::FuelFab::topup_commod
private

Definition at line 830 of file build/cycamore/fuel_fab.h.

Referenced by GetMatlRequests(), and InitFrom().

◆ topup_pref

double cycamore::FuelFab::topup_pref
private

Definition at line 835 of file build/cycamore/fuel_fab.h.

Referenced by GetMatlRequests(), and InitFrom().

◆ topup_recipe

std::string cycamore::FuelFab::topup_recipe
private

Definition at line 841 of file build/cycamore/fuel_fab.h.

Referenced by GetMatlRequests(), and InitFrom().

◆ topup_size

double cycamore::FuelFab::topup_size
private

Definition at line 846 of file build/cycamore/fuel_fab.h.

Referenced by InitFrom().


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