CYCAMORE
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cycamore::Reactor Class Reference

Reactor is a simple, general reactor based on static compositional transformations to model fuel burnup. More...

#include <reactor.h>

Inheritance diagram for cycamore::Reactor:
Inheritance graph
[legend]
Collaboration diagram for cycamore::Reactor:
Collaboration graph
[legend]

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 bool CheckDecommissionCondition ()
 
virtual bool CheckDecommissionCondition ()
 
virtual cyclus::Agent * Clone ()
 
virtual void EnterNotify ()
 
virtual void EnterNotify ()
 
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::Reactor *m)
 
virtual void InitFrom (cyclus::QueryableBackend *b)
 
virtual void InitInv (cyclus::Inventories &inv)
 
 Reactor (cyclus::Context *ctx)
 
 Reactor (cyclus::Context *ctx)
 
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 ~Reactor ()
 
virtual ~Reactor ()
 

Private Member Functions

bool Discharge ()
 Discharge a batch from the core if there is room in the spent fuel inventory. More...
 
bool Discharge ()
 Discharge a batch from the core if there is room in the spent fuel inventory. More...
 
std::string fuel_incommod (cyclus::Material::Ptr m)
 
std::string fuel_incommod (cyclus::Material::Ptr m)
 
std::string fuel_inrecipe (cyclus::Material::Ptr m)
 
std::string fuel_inrecipe (cyclus::Material::Ptr m)
 
std::string fuel_outcommod (cyclus::Material::Ptr m)
 
std::string fuel_outcommod (cyclus::Material::Ptr m)
 
std::string fuel_outrecipe (cyclus::Material::Ptr m)
 
std::string fuel_outrecipe (cyclus::Material::Ptr m)
 
double fuel_pref (cyclus::Material::Ptr m)
 
double fuel_pref (cyclus::Material::Ptr m)
 
void index_res (cyclus::Resource::Ptr m, std::string incommod)
 Store fuel info index for the given resource received on incommod. More...
 
void index_res (cyclus::Resource::Ptr m, std::string incommod)
 Store fuel info index for the given resource received on incommod. More...
 
void Load ()
 Top up core inventory as much as possible. More...
 
void Load ()
 Top up core inventory as much as possible. More...
 
std::map< std::string, cyclus::toolkit::MatVec > PeekSpent ()
 Returns all spent assemblies indexed by outcommod without removing them from the spent fuel buffer. More...
 
std::map< std::string, cyclus::toolkit::MatVec > PeekSpent ()
 Returns all spent assemblies indexed by outcommod without removing them from the spent fuel buffer. More...
 
std::map< std::string, cyclus::toolkit::MatVec > PopSpent ()
 Returns all spent assemblies indexed by outcommod - removing them from the spent fuel buffer. More...
 
std::map< std::string, cyclus::toolkit::MatVec > PopSpent ()
 Returns all spent assemblies indexed by outcommod - removing them from the spent fuel buffer. More...
 
void PushSpent (std::map< std::string, cyclus::toolkit::MatVec > leftover)
 Complement of PopSpent - must be called with all materials passed that were not traded away to other agents. More...
 
void PushSpent (std::map< std::string, cyclus::toolkit::MatVec > leftover)
 Complement of PopSpent - must be called with all materials passed that were not traded away to other agents. More...
 
void Record (std::string name, std::string val)
 Records a reactor event to the output db with the given name and note val. More...
 
void Record (std::string name, std::string val)
 Records a reactor event to the output db with the given name and note val. More...
 
void RecordPosition ()
 Records an agent's latitude and longitude to the output db. More...
 
void RecordPosition ()
 Records an agent's latitude and longitude to the output db. More...
 
void RecordSideProduct (bool produce)
 Records production of side products from the reactor. More...
 
void RecordSideProduct (bool produce)
 Records production of side products from the reactor. More...
 
bool retired ()
 
bool retired ()
 
void Transmute ()
 Transmute the batch that is about to be discharged from the core to its fully burnt state as defined by its outrecipe. More...
 
void Transmute (int n_assem)
 Transmute the specified number of assemblies in the core to their fully burnt state as defined by their outrecipe. More...
 
void Transmute ()
 Transmute the batch that is about to be discharged from the core to its fully burnt state as defined by its outrecipe. More...
 
void Transmute (int n_assem)
 Transmute the specified number of assemblies in the core to their fully burnt state as defined by their outrecipe. More...
 

Private Attributes

double assem_size
 
cyclus::toolkit::Position coordinates
 
cyclus::toolkit::ResBuf< cyclus::Material > core
 
int cycle_step
 
int cycle_time
 
std::vector< intcycpp_shape_assem_size
 
std::vector< intcycpp_shape_core
 
std::vector< intcycpp_shape_cycle_step
 
std::vector< intcycpp_shape_cycle_time
 
std::vector< intcycpp_shape_decom_transmute_all
 
std::vector< intcycpp_shape_discharged
 
std::vector< intcycpp_shape_fresh
 
std::vector< intcycpp_shape_fuel_incommods
 
std::vector< intcycpp_shape_fuel_inrecipes
 
std::vector< intcycpp_shape_fuel_outcommods
 
std::vector< intcycpp_shape_fuel_outrecipes
 
std::vector< intcycpp_shape_fuel_prefs
 
std::vector< intcycpp_shape_hybrid_
 
std::vector< intcycpp_shape_latitude
 
std::vector< intcycpp_shape_longitude
 
std::vector< intcycpp_shape_n_assem_batch
 
std::vector< intcycpp_shape_n_assem_core
 
std::vector< intcycpp_shape_n_assem_fresh
 
std::vector< intcycpp_shape_n_assem_spent
 
std::vector< intcycpp_shape_power_cap
 
std::vector< intcycpp_shape_power_name
 
std::vector< intcycpp_shape_pref_change_commods
 
std::vector< intcycpp_shape_pref_change_times
 
std::vector< intcycpp_shape_pref_change_values
 
std::vector< intcycpp_shape_recipe_change_commods
 
std::vector< intcycpp_shape_recipe_change_in
 
std::vector< intcycpp_shape_recipe_change_out
 
std::vector< intcycpp_shape_recipe_change_times
 
std::vector< intcycpp_shape_refuel_time
 
std::vector< intcycpp_shape_res_indexes
 
std::vector< intcycpp_shape_side_product_quantity
 
std::vector< intcycpp_shape_side_products
 
std::vector< intcycpp_shape_spent
 
bool decom_transmute_all
 
bool discharged
 
cyclus::toolkit::ResBuf< cyclus::Material > fresh
 
std::vector< std::string > fuel_incommods
 
std::vector< std::string > fuel_inrecipes
 
std::vector< std::string > fuel_outcommods
 
std::vector< std::string > fuel_outrecipes
 
std::vector< double > fuel_prefs
 
bool hybrid_
 
double latitude
 
double longitude
 
int n_assem_batch
 
int n_assem_core
 
int n_assem_fresh
 
int n_assem_spent
 
double power_cap
 
std::string power_name
 
std::vector< std::string > pref_change_commods
 
std::vector< intpref_change_times
 
std::vector< double > pref_change_values
 
std::vector< std::string > recipe_change_commods
 
std::vector< std::string > recipe_change_in
 
std::vector< std::string > recipe_change_out
 
std::vector< intrecipe_change_times
 
int refuel_time
 
std::map< int, intres_indexes
 
std::vector< double > side_product_quantity
 
std::vector< std::string > side_products
 
cyclus::toolkit::ResBuf< cyclus::Material > spent
 
std::set< std::string > uniq_outcommods_
 

Detailed Description

Reactor is a simple, general reactor based on static compositional transformations to model fuel burnup.

The user specifies a set of input fuels and corresponding burnt compositions that fuel is transformed to when it is discharged from the core. No incremental transmutation takes place. Rather, at the end of an operational cycle, the batch being discharged from the core is instantaneously transmuted from its original fresh fuel composition into its spent fuel form.

Each fuel is identified by a specific input commodity and has an associated input recipe (nuclide composition), output recipe, output commidity, and preference. The preference identifies which input fuels are preferred when requesting. Changes in these preferences can be specified as a function of time using the pref_change variables. Changes in the input-output recipe compositions can also be specified as a function of time using the recipe_change variables.

The reactor treats fuel as individual assemblies that are never split, combined or otherwise treated in any non-discrete way. Fuel is requested in full-or-nothing assembly sized quanta. If real-world assembly modeling is unnecessary, parameters can be adjusted (e.g. n_assem_core, assem_size, n_assem_batch). At the end of every cycle, a full batch is discharged from the core consisting of n_assem_batch assemblies of assem_size kg. The reactor also has a specifiable refueling time period following the end of each cycle at the end of which it will resume operation on the next cycle if it has enough fuel for a full core; otherwise it waits until it has enough fresh fuel assemblies.

In addition to its core, the reactor has an on-hand fresh fuel inventory and a spent fuel inventory whose capacities are specified by n_assem_fresh and n_assem_spent respectively. Each time step the reactor will attempt to acquire enough fresh fuel to fill its fresh fuel inventory (and its core if the core isn't currently full). If the fresh fuel inventory has zero capacity, fuel will be ordered just-in-time after the end of each operational cycle before the next begins. If the spent fuel inventory becomes full, the reactor will halt operation at the end of the next cycle until there is more room. Each time step, the reactor will try to trade away as much of its spent fuel inventory as possible.

When the reactor reaches the end of its lifetime, it will discharge all material from its core and trade away all its spent fuel as quickly as possible. Full decommissioning will be delayed until all spent fuel is gone. If the reactor has a full core when it is decommissioned (i.e. is mid-cycle) when the reactor is decommissioned, half (rounded up to nearest int) of its assemblies are transmuted to their respective burnt compositions.

Definition at line 57 of file _tmp_build/cycamore/reactor.h.

Constructor & Destructor Documentation

◆ Reactor() [1/2]

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

Definition at line 15 of file _tmp_build/cycamore/reactor.cc.

Referenced by cycamore::ConstructReactor().

◆ ~Reactor() [1/2]

virtual cycamore::Reactor::~Reactor ( )
inlinevirtual

Definition at line 65 of file _tmp_build/cycamore/reactor.h.

◆ Reactor() [2/2]

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

◆ ~Reactor() [2/2]

virtual cycamore::Reactor::~Reactor ( )
inlinevirtual

Definition at line 111 of file src/reactor.h.

Member Function Documentation

◆ AcceptMatlTrades() [1/2]

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

Referenced by GetMatlRequests(), and version().

◆ AcceptMatlTrades() [2/2]

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

◆ annotations()

Json::Value cycamore::Reactor::annotations ( )
virtual

Definition at line 224 of file _tmp_build/cycamore/reactor.cc.

Referenced by version().

◆ CheckDecommissionCondition() [1/2]

bool cycamore::Reactor::CheckDecommissionCondition ( )
virtual

Definition at line 1351 of file _tmp_build/cycamore/reactor.cc.

References core, and spent.

Referenced by Tick(), and version().

◆ CheckDecommissionCondition() [2/2]

virtual bool cycamore::Reactor::CheckDecommissionCondition ( )
virtual

◆ Clone()

cyclus::Agent * cycamore::Reactor::Clone ( )
virtual

Definition at line 31 of file _tmp_build/cycamore/reactor.cc.

References InitFrom().

Referenced by version().

Here is the call graph for this function:

◆ Discharge() [1/2]

bool cycamore::Reactor::Discharge ( )
private

Discharge a batch from the core if there is room in the spent fuel inventory.

Returns true if a batch was successfully discharged.

Definition at line 1658 of file _tmp_build/cycamore/reactor.cc.

References core, fuel_outcommods, n_assem_batch, n_assem_spent, PeekSpent(), Record(), and spent.

Referenced by retired(), and Tick().

Here is the call graph for this function:

◆ Discharge() [2/2]

bool cycamore::Reactor::Discharge ( )
private

Discharge a batch from the core if there is room in the spent fuel inventory.

Returns true if a batch was successfully discharged.

◆ EnterNotify() [1/2]

void cycamore::Reactor::EnterNotify ( )
virtual

◆ EnterNotify() [2/2]

virtual void cycamore::Reactor::EnterNotify ( )
virtual

◆ fuel_incommod() [1/2]

std::string cycamore::Reactor::fuel_incommod ( cyclus::Material::Ptr  m)
private

Referenced by Load(), and version().

◆ fuel_incommod() [2/2]

std::string cycamore::Reactor::fuel_incommod ( cyclus::Material::Ptr  m)
private

◆ fuel_inrecipe() [1/2]

std::string cycamore::Reactor::fuel_inrecipe ( cyclus::Material::Ptr  m)
private

Referenced by Load(), and version().

◆ fuel_inrecipe() [2/2]

std::string cycamore::Reactor::fuel_inrecipe ( cyclus::Material::Ptr  m)
private

◆ fuel_outcommod() [1/2]

std::string cycamore::Reactor::fuel_outcommod ( cyclus::Material::Ptr  m)
private

Referenced by Load(), PeekSpent(), PopSpent(), and version().

◆ fuel_outcommod() [2/2]

std::string cycamore::Reactor::fuel_outcommod ( cyclus::Material::Ptr  m)
private

◆ fuel_outrecipe() [1/2]

std::string cycamore::Reactor::fuel_outrecipe ( cyclus::Material::Ptr  m)
private

Referenced by Load(), Transmute(), and version().

◆ fuel_outrecipe() [2/2]

std::string cycamore::Reactor::fuel_outrecipe ( cyclus::Material::Ptr  m)
private

◆ fuel_pref() [1/2]

double cycamore::Reactor::fuel_pref ( cyclus::Material::Ptr  m)
private

Referenced by Load(), and version().

◆ fuel_pref() [2/2]

double cycamore::Reactor::fuel_pref ( cyclus::Material::Ptr  m)
private

◆ GetMatlBids() [1/2]

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

Referenced by GetMatlRequests(), and version().

◆ GetMatlBids() [2/2]

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

◆ GetMatlRequests() [1/2]

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

◆ GetMatlRequests() [2/2]

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

◆ GetMatlTrades() [1/2]

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

Referenced by GetMatlRequests(), and version().

◆ GetMatlTrades() [2/2]

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

◆ index_res() [1/2]

void cycamore::Reactor::index_res ( cyclus::Resource::Ptr  m,
std::string  incommod 
)
private

Store fuel info index for the given resource received on incommod.

Definition at line 1737 of file _tmp_build/cycamore/reactor.cc.

References fuel_incommods, and res_indexes.

Referenced by GetMatlRequests(), and retired().

◆ index_res() [2/2]

void cycamore::Reactor::index_res ( cyclus::Resource::Ptr  m,
std::string  incommod 
)
private

Store fuel info index for the given resource received on incommod.

◆ InfileToDb()

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

◆ InitFrom() [1/2]

void cycamore::Reactor::InitFrom ( cycamore::Reactor m)
virtual

◆ InitFrom() [2/2]

void cycamore::Reactor::InitFrom ( cyclus::QueryableBackend *  b)
virtual

◆ InitInv()

void cycamore::Reactor::InitInv ( cyclus::Inventories &  inv)
virtual

Definition at line 1076 of file _tmp_build/cycamore/reactor.cc.

References core, fresh, and spent.

Referenced by version().

◆ Load() [1/2]

void cycamore::Reactor::Load ( )
private

Top up core inventory as much as possible.

Definition at line 1685 of file _tmp_build/cycamore/reactor.cc.

References core, fresh, fuel_incommod(), fuel_incommods, fuel_inrecipe(), fuel_inrecipes, fuel_outcommod(), fuel_outcommods, fuel_outrecipe(), fuel_outrecipes, fuel_pref(), fuel_prefs, n_assem_core, Record(), res_indexes, and cycamore::string.

Referenced by retired(), and Tick().

Here is the call graph for this function:

◆ Load() [2/2]

void cycamore::Reactor::Load ( )
private

Top up core inventory as much as possible.

◆ PeekSpent() [1/2]

std::map< std::string, MatVec > cycamore::Reactor::PeekSpent ( )
private

Returns all spent assemblies indexed by outcommod without removing them from the spent fuel buffer.

Definition at line 1647 of file _tmp_build/cycamore/reactor.cc.

References fuel_outcommod(), spent, and cycamore::string.

Referenced by Discharge(), GetMatlRequests(), and retired().

Here is the call graph for this function:

◆ PeekSpent() [2/2]

std::map<std::string, cyclus::toolkit::MatVec> cycamore::Reactor::PeekSpent ( )
private

Returns all spent assemblies indexed by outcommod without removing them from the spent fuel buffer.

◆ PopSpent() [1/2]

std::map< std::string, MatVec > cycamore::Reactor::PopSpent ( )
private

Returns all spent assemblies indexed by outcommod - removing them from the spent fuel buffer.

Definition at line 1748 of file _tmp_build/cycamore/reactor.cc.

References fuel_outcommod(), PushSpent(), spent, and cycamore::string.

Referenced by GetMatlRequests(), and retired().

Here is the call graph for this function:

◆ PopSpent() [2/2]

std::map<std::string, cyclus::toolkit::MatVec> cycamore::Reactor::PopSpent ( )
private

Returns all spent assemblies indexed by outcommod - removing them from the spent fuel buffer.

◆ PushSpent() [1/2]

void cycamore::Reactor::PushSpent ( std::map< std::string, cyclus::toolkit::MatVec >  leftover)
private

Complement of PopSpent - must be called with all materials passed that were not traded away to other agents.

Referenced by GetMatlRequests(), PopSpent(), and retired().

◆ PushSpent() [2/2]

void cycamore::Reactor::PushSpent ( std::map< std::string, cyclus::toolkit::MatVec >  leftover)
private

Complement of PopSpent - must be called with all materials passed that were not traded away to other agents.

◆ Record() [1/2]

void cycamore::Reactor::Record ( std::string  name,
std::string  val 
)
private

Records a reactor event to the output db with the given name and note val.

Definition at line 1796 of file _tmp_build/cycamore/reactor.cc.

Referenced by Discharge(), GetMatlRequests(), Load(), retired(), Tick(), Tock(), and Transmute().

◆ Record() [2/2]

void cycamore::Reactor::Record ( std::string  name,
std::string  val 
)
private

Records a reactor event to the output db with the given name and note val.

◆ RecordPosition() [1/2]

void cycamore::Reactor::RecordPosition ( )
private

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

Definition at line 1806 of file _tmp_build/cycamore/reactor.cc.

References latitude, longitude, and cycamore::string.

Referenced by EnterNotify(), and retired().

◆ RecordPosition() [2/2]

void cycamore::Reactor::RecordPosition ( )
private

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

◆ RecordSideProduct() [1/2]

void cycamore::Reactor::RecordSideProduct ( bool  produce)
private

Records production of side products from the reactor.

Definition at line 1774 of file _tmp_build/cycamore/reactor.cc.

References hybrid_, side_product_quantity, and side_products.

Referenced by retired(), and Tock().

◆ RecordSideProduct() [2/2]

void cycamore::Reactor::RecordSideProduct ( bool  produce)
private

Records production of side products from the reactor.

◆ retired() [1/2]

bool cycamore::Reactor::retired ( )
inlineprivate

Definition at line 114 of file _tmp_build/cycamore/reactor.h.

References Discharge(), index_res(), Load(), PeekSpent(), PopSpent(), PushSpent(), Record(), RecordSideProduct(), cycamore::string, and Transmute().

Referenced by GetMatlRequests(), Tick(), and Tock().

Here is the call graph for this function:

◆ retired() [2/2]

bool cycamore::Reactor::retired ( )
inlineprivate

◆ schema()

std::string cycamore::Reactor::schema ( )
virtual

Definition at line 38 of file _tmp_build/cycamore/reactor.cc.

Referenced by version().

◆ Snapshot()

void cycamore::Reactor::Snapshot ( cyclus::DbInit  di)
virtual

◆ SnapshotInv()

cyclus::Inventories cycamore::Reactor::SnapshotInv ( )
virtual

Definition at line 1064 of file _tmp_build/cycamore/reactor.cc.

References core, fresh, and spent.

Referenced by version().

◆ Tick() [1/2]

void cycamore::Reactor::Tick ( )
virtual

◆ Tick() [2/2]

virtual void cycamore::Reactor::Tick ( )
virtual

◆ Tock() [1/2]

void cycamore::Reactor::Tock ( )
virtual

Definition at line 1593 of file _tmp_build/cycamore/reactor.cc.

References core, cycle_step, cycle_time, discharged, n_assem_core, power_cap, Record(), RecordSideProduct(), refuel_time, and retired().

Referenced by version().

Here is the call graph for this function:

◆ Tock() [2/2]

virtual void cycamore::Reactor::Tock ( )
virtual

◆ Transmute() [1/4]

void cycamore::Reactor::Transmute ( )
private

Transmute the batch that is about to be discharged from the core to its fully burnt state as defined by its outrecipe.

Definition at line 1628 of file _tmp_build/cycamore/reactor.cc.

References n_assem_batch.

Referenced by retired(), and Tick().

◆ Transmute() [2/4]

void cycamore::Reactor::Transmute ( int  n_assem)
private

Transmute the specified number of assemblies in the core to their fully burnt state as defined by their outrecipe.

Definition at line 1630 of file _tmp_build/cycamore/reactor.cc.

References core, fuel_outrecipe(), and Record().

Here is the call graph for this function:

◆ Transmute() [3/4]

void cycamore::Reactor::Transmute ( )
private

Transmute the batch that is about to be discharged from the core to its fully burnt state as defined by its outrecipe.

◆ Transmute() [4/4]

void cycamore::Reactor::Transmute ( int  n_assem)
private

Transmute the specified number of assemblies in the core to their fully burnt state as defined by their outrecipe.

◆ version() [1/2]

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

◆ version() [2/2]

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

Member Data Documentation

◆ assem_size

double cycamore::Reactor::assem_size
private

◆ coordinates

cyclus::toolkit::Position cycamore::Reactor::coordinates
private

Definition at line 375 of file _tmp_build/cycamore/reactor.h.

Referenced by retired().

◆ core

cyclus::toolkit::ResBuf< cyclus::Material > cycamore::Reactor::core
private

◆ cycle_step

int cycamore::Reactor::cycle_step
private

◆ cycle_time

int cycamore::Reactor::cycle_time
private

◆ cycpp_shape_assem_size

std::vector<int> cycamore::Reactor::cycpp_shape_assem_size
private

Definition at line 211 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_core

std::vector<int> cycamore::Reactor::cycpp_shape_core
private

Definition at line 330 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), and InitFrom().

◆ cycpp_shape_cycle_step

std::vector<int> cycamore::Reactor::cycpp_shape_cycle_step
private

Definition at line 251 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_cycle_time

std::vector<int> cycamore::Reactor::cycpp_shape_cycle_time
private

Definition at line 241 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_decom_transmute_all

std::vector<int> cycamore::Reactor::cycpp_shape_decom_transmute_all
private

Definition at line 298 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_discharged

std::vector<int> cycamore::Reactor::cycpp_shape_discharged
private

Definition at line 345 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_fresh

std::vector<int> cycamore::Reactor::cycpp_shape_fresh
private

Definition at line 325 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), and InitFrom().

◆ cycpp_shape_fuel_incommods

std::vector<int> cycamore::Reactor::cycpp_shape_fuel_incommods
private

Definition at line 158 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_fuel_inrecipes

std::vector<int> cycamore::Reactor::cycpp_shape_fuel_inrecipes
private

Definition at line 163 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_fuel_outcommods

std::vector<int> cycamore::Reactor::cycpp_shape_fuel_outcommods
private

Definition at line 175 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_fuel_outrecipes

std::vector<int> cycamore::Reactor::cycpp_shape_fuel_outrecipes
private

Definition at line 180 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_fuel_prefs

std::vector<int> cycamore::Reactor::cycpp_shape_fuel_prefs
private

Definition at line 170 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_hybrid_

std::vector<int> cycamore::Reactor::cycpp_shape_hybrid_
private

Definition at line 289 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_latitude

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

Definition at line 364 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_longitude

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

Definition at line 371 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_n_assem_batch

std::vector<int> cycamore::Reactor::cycpp_shape_n_assem_batch
private

Definition at line 218 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_n_assem_core

std::vector<int> cycamore::Reactor::cycpp_shape_n_assem_core
private

Definition at line 223 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_n_assem_fresh

std::vector<int> cycamore::Reactor::cycpp_shape_n_assem_fresh
private

Definition at line 228 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_n_assem_spent

std::vector<int> cycamore::Reactor::cycpp_shape_n_assem_spent
private

Definition at line 233 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_power_cap

std::vector<int> cycamore::Reactor::cycpp_shape_power_cap
private

Definition at line 259 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_power_name

std::vector<int> cycamore::Reactor::cycpp_shape_power_name
private

Definition at line 266 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_pref_change_commods

std::vector<int> cycamore::Reactor::cycpp_shape_pref_change_commods
private

Definition at line 312 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_pref_change_times

std::vector<int> cycamore::Reactor::cycpp_shape_pref_change_times
private

Definition at line 307 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_pref_change_values

std::vector<int> cycamore::Reactor::cycpp_shape_pref_change_values
private

Definition at line 317 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_recipe_change_commods

std::vector<int> cycamore::Reactor::cycpp_shape_recipe_change_commods
private

Definition at line 193 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_recipe_change_in

std::vector<int> cycamore::Reactor::cycpp_shape_recipe_change_in
private

Definition at line 198 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_recipe_change_out

std::vector<int> cycamore::Reactor::cycpp_shape_recipe_change_out
private

Definition at line 203 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_recipe_change_times

std::vector<int> cycamore::Reactor::cycpp_shape_recipe_change_times
private

Definition at line 188 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_refuel_time

std::vector<int> cycamore::Reactor::cycpp_shape_refuel_time
private

Definition at line 246 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_res_indexes

std::vector<int> cycamore::Reactor::cycpp_shape_res_indexes
private

Definition at line 354 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_side_product_quantity

std::vector<int> cycamore::Reactor::cycpp_shape_side_product_quantity
private

Definition at line 282 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_side_products

std::vector<int> cycamore::Reactor::cycpp_shape_side_products
private

Definition at line 275 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), and Snapshot().

◆ cycpp_shape_spent

std::vector<int> cycamore::Reactor::cycpp_shape_spent
private

Definition at line 335 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), and InitFrom().

◆ decom_transmute_all

bool cycamore::Reactor::decom_transmute_all
private

Definition at line 297 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), retired(), Snapshot(), and Tick().

◆ discharged

bool cycamore::Reactor::discharged
private

Definition at line 344 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), retired(), Snapshot(), Tick(), and Tock().

◆ fresh

cyclus::toolkit::ResBuf< cyclus::Material > cycamore::Reactor::fresh
private

◆ fuel_incommods

std::vector< std::string > cycamore::Reactor::fuel_incommods
private

◆ fuel_inrecipes

std::vector< std::string > cycamore::Reactor::fuel_inrecipes
private

◆ fuel_outcommods

std::vector< std::string > cycamore::Reactor::fuel_outcommods
private

◆ fuel_outrecipes

std::vector< std::string > cycamore::Reactor::fuel_outrecipes
private

Definition at line 179 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), Load(), retired(), Snapshot(), and Tick().

◆ fuel_prefs

std::vector< double > cycamore::Reactor::fuel_prefs
private

◆ hybrid_

bool cycamore::Reactor::hybrid_
private

◆ latitude

double cycamore::Reactor::latitude
private

◆ longitude

double cycamore::Reactor::longitude
private

◆ n_assem_batch

int cycamore::Reactor::n_assem_batch
private

◆ n_assem_core

int cycamore::Reactor::n_assem_core
private

◆ n_assem_fresh

int cycamore::Reactor::n_assem_fresh
private

◆ n_assem_spent

int cycamore::Reactor::n_assem_spent
private

Definition at line 232 of file _tmp_build/cycamore/reactor.h.

Referenced by Discharge(), InfileToDb(), InitFrom(), retired(), and Snapshot().

◆ power_cap

double cycamore::Reactor::power_cap
private

Definition at line 258 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), retired(), Snapshot(), and Tock().

◆ power_name

std::string cycamore::Reactor::power_name
private

Definition at line 265 of file _tmp_build/cycamore/reactor.h.

Referenced by InfileToDb(), InitFrom(), retired(), and Snapshot().

◆ pref_change_commods

std::vector< std::string > cycamore::Reactor::pref_change_commods
private

◆ pref_change_times

std::vector< int > cycamore::Reactor::pref_change_times
private

◆ pref_change_values

std::vector< double > cycamore::Reactor::pref_change_values
private

◆ recipe_change_commods

std::vector< std::string > cycamore::Reactor::recipe_change_commods
private

◆ recipe_change_in

std::vector< std::string > cycamore::Reactor::recipe_change_in
private

◆ recipe_change_out

std::vector< std::string > cycamore::Reactor::recipe_change_out
private

◆ recipe_change_times

std::vector< int > cycamore::Reactor::recipe_change_times
private

◆ refuel_time

int cycamore::Reactor::refuel_time
private

◆ res_indexes

std::map< int, int > cycamore::Reactor::res_indexes
private

◆ side_product_quantity

std::vector< double > cycamore::Reactor::side_product_quantity
private

◆ side_products

std::vector< std::string > cycamore::Reactor::side_products
private

◆ spent

cyclus::toolkit::ResBuf< cyclus::Material > cycamore::Reactor::spent
private

◆ uniq_outcommods_

std::set< std::string > cycamore::Reactor::uniq_outcommods_
private

Definition at line 359 of file _tmp_build/cycamore/reactor.h.

Referenced by GetMatlRequests(), and retired().


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