CYCAMORE
|
Separations processes feed material into one or more streams containing specific elements and/or nuclides. More...
#include <separations.h>
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::Separations *m) |
virtual void | InitFrom (cyclus::QueryableBackend *b) |
virtual void | InitInv (cyclus::Inventories &inv) |
virtual void | InitInv (cyclus::Inventories &inv) |
virtual std::string | schema () |
Separations (cyclus::Context *ctx) | |
Separations (cyclus::Context *ctx) | |
virtual void | Snapshot (cyclus::DbInit di) |
virtual cyclus::Inventories | SnapshotInv () |
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 | ~Separations () |
virtual | ~Separations () |
Private Member Functions | |
void | Record (std::string name, double val, std::string type) |
void | Record (std::string name, double val, std::string type) |
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... | |
Private Attributes | |
cyclus::toolkit::Position | coordinates |
std::vector< int > | cycpp_shape_feed |
std::vector< int > | cycpp_shape_feed_commod_prefs |
std::vector< int > | cycpp_shape_feed_commods |
std::vector< int > | cycpp_shape_feed_recipe |
std::vector< int > | cycpp_shape_feedbuf_size |
std::vector< int > | cycpp_shape_latitude |
std::vector< int > | cycpp_shape_leftover |
std::vector< int > | cycpp_shape_leftover_commod |
std::vector< int > | cycpp_shape_leftoverbuf_size |
std::vector< int > | cycpp_shape_longitude |
std::vector< int > | cycpp_shape_streams_ |
std::vector< int > | cycpp_shape_throughput |
cyclus::toolkit::ResBuf< cyclus::Material > | feed |
std::vector< double > | feed_commod_prefs |
std::vector< std::string > | feed_commods |
std::string | feed_recipe |
double | feedbuf_size |
double | latitude |
cyclus::toolkit::ResBuf< cyclus::Material > | leftover |
std::string | leftover_commod |
double | leftoverbuf_size |
double | longitude |
std::map< std::string, cyclus::toolkit::ResBuf< cyclus::Material > > | streambufs |
std::map< std::string, std::pair< double, std::map< int, double > > > | streams_ |
double | throughput |
Separations processes feed material into one or more streams containing specific elements and/or nuclides.
It uses mass-based efficiencies.
User defined separations streams are specified as groups of component-efficiency pairs where 'component' means either a particular element or a particular nuclide. Each component's paired efficiency represents the mass fraction of that component in the feed that is separated into that stream. The efficiencies of a particular component across all streams must sum up to less than or equal to one. If less than one, the remainining material is sent to a waste inventory and (potentially) traded away from there.
The facility receives material into a feed inventory that it processes with a specified throughput each time step. Each output stream has a corresponding output inventory size/limit. If the facility is unable to reduce its stocks by trading and hits this limit for any of its output streams, further processing/separations of feed material will halt until room is again available in the output streams.
Definition at line 39 of file _tmp_build/cycamore/separations.h.
cycamore::Separations::Separations | ( | cyclus::Context * | ctx | ) |
Definition at line 16 of file _tmp_build/cycamore/separations.cc.
Referenced by cycamore::ConstructSeparations().
|
inlinevirtual |
Definition at line 46 of file _tmp_build/cycamore/separations.h.
cycamore::Separations::Separations | ( | cyclus::Context * | ctx | ) |
|
inlinevirtual |
Definition at line 65 of file src/separations.h.
|
virtual |
Referenced by GetMatlRequests(), and version().
|
virtual |
|
inlinevirtual |
Definition at line 433 of file _tmp_build/cycamore/separations.h.
|
virtual |
Definition at line 358 of file _tmp_build/cycamore/separations.cc.
References leftover, and streambufs.
Referenced by version().
|
virtual |
|
inlinevirtual |
Definition at line 69 of file _tmp_build/cycamore/separations.h.
References InitFrom().
|
virtual |
Definition at line 55 of file _tmp_build/cycamore/separations.cc.
References feed_commod_prefs, feed_commods, RecordPosition(), streambufs, streams_, and cycamore::string.
Referenced by version().
|
virtual |
|
virtual |
Referenced by GetMatlRequests(), and version().
|
virtual |
|
virtual |
Definition at line 198 of file _tmp_build/cycamore/separations.cc.
References AcceptMatlTrades(), feed, feed_commod_prefs, feed_commods, feed_recipe, GetMatlBids(), GetMatlTrades(), leftover, leftover_commod, streambufs, cycamore::string, and throughput.
Referenced by version().
|
virtual |
|
virtual |
Referenced by GetMatlRequests(), and version().
|
virtual |
|
inlinevirtual |
Definition at line 116 of file _tmp_build/cycamore/separations.h.
References cycpp_shape_feed, cycpp_shape_feed_commod_prefs, cycpp_shape_feed_commods, cycpp_shape_feed_recipe, cycpp_shape_feedbuf_size, cycpp_shape_latitude, cycpp_shape_leftover, cycpp_shape_leftover_commod, cycpp_shape_leftoverbuf_size, cycpp_shape_longitude, cycpp_shape_streams_, cycpp_shape_throughput, feed_commod_prefs, feed_commods, feed_recipe, feedbuf_size, latitude, leftover_commod, leftoverbuf_size, longitude, streams_, cycamore::string, and throughput.
|
inlinevirtual |
Definition at line 76 of file _tmp_build/cycamore/separations.h.
References cycpp_shape_feed, cycpp_shape_feed_commod_prefs, cycpp_shape_feed_commods, cycpp_shape_feed_recipe, cycpp_shape_feedbuf_size, cycpp_shape_latitude, cycpp_shape_leftover, cycpp_shape_leftover_commod, cycpp_shape_leftoverbuf_size, cycpp_shape_longitude, cycpp_shape_streams_, cycpp_shape_throughput, feed, feed_commod_prefs, feed_commods, feed_recipe, feedbuf_size, latitude, leftover, leftover_commod, leftoverbuf_size, longitude, streams_, and throughput.
Referenced by Clone().
|
inlinevirtual |
Definition at line 305 of file _tmp_build/cycamore/separations.h.
References cycpp_shape_feed, cycpp_shape_feed_commod_prefs, cycpp_shape_feed_commods, cycpp_shape_feed_recipe, cycpp_shape_feedbuf_size, cycpp_shape_latitude, cycpp_shape_leftover, cycpp_shape_leftover_commod, cycpp_shape_leftoverbuf_size, cycpp_shape_longitude, cycpp_shape_streams_, cycpp_shape_throughput, feed, feed_commod_prefs, feed_commods, feed_recipe, feedbuf_size, latitude, leftover, leftover_commod, leftoverbuf_size, longitude, streams_, cycamore::string, and throughput.
|
virtual |
|
virtual |
Definition at line 42 of file _tmp_build/cycamore/separations.cc.
References feed, leftover, and streambufs.
Referenced by Snapshot(), and version().
|
private |
|
private |
Definition at line 385 of file _tmp_build/cycamore/separations.cc.
|
private |
Records an agent's latitude and longitude to the output db.
|
private |
Records an agent's latitude and longitude to the output db.
Definition at line 373 of file _tmp_build/cycamore/separations.cc.
References latitude, longitude, and cycamore::string.
Referenced by EnterNotify(), and version().
|
inlinevirtual |
Definition at line 346 of file _tmp_build/cycamore/separations.h.
|
inlinevirtual |
Definition at line 560 of file _tmp_build/cycamore/separations.h.
References cycpp_shape_feed_commod_prefs, cycpp_shape_feed_commods, cycpp_shape_feed_recipe, cycpp_shape_feedbuf_size, cycpp_shape_latitude, cycpp_shape_leftover_commod, cycpp_shape_leftoverbuf_size, cycpp_shape_longitude, cycpp_shape_streams_, cycpp_shape_throughput, feed_commod_prefs, feed_commods, feed_recipe, feedbuf_size, InitInv(), latitude, leftover_commod, leftoverbuf_size, longitude, SnapshotInv(), streams_, and throughput.
|
virtual |
|
virtual |
Definition at line 22 of file _tmp_build/cycamore/separations.cc.
References feed, leftover, and streambufs.
Referenced by Snapshot(), and version().
|
virtual |
Definition at line 107 of file _tmp_build/cycamore/separations.cc.
References feed, leftover, leftover_commod, Record(), cycamore::SepMaterial(), streambufs, streams_, cycamore::string, and throughput.
Referenced by version().
|
virtual |
|
virtual |
Definition at line 356 of file _tmp_build/cycamore/separations.cc.
Referenced by version().
|
virtual |
|
inlinevirtual |
Definition at line 48 of file _tmp_build/cycamore/separations.h.
References AcceptMatlTrades(), CheckDecommissionCondition(), CYCAMORE_VERSION, EnterNotify(), GetMatlBids(), GetMatlRequests(), GetMatlTrades(), Tick(), and Tock().
|
inlinevirtual |
Definition at line 67 of file src/separations.h.
References AcceptMatlTrades(), CheckDecommissionCondition(), coordinates, CYCAMORE_VERSION, EnterNotify(), feed, feed_commod_prefs, feed_commods, feed_recipe, feedbuf_size, GetMatlBids(), GetMatlRequests(), GetMatlTrades(), InitInv(), latitude, leftover, leftover_commod, leftoverbuf_size, longitude, Record(), RecordPosition(), SnapshotInv(), streambufs, streams_, cycamore::string, throughput, Tick(), and Tock().
|
private |
Definition at line 673 of file _tmp_build/cycamore/separations.h.
Referenced by version().
|
private |
Definition at line 616 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), and InitFrom().
|
private |
Definition at line 595 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 588 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 602 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 609 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 662 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 644 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), and InitFrom().
|
private |
Definition at line 630 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 637 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 669 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 651 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 623 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and Snapshot().
|
private |
Definition at line 615 of file _tmp_build/cycamore/separations.h.
Referenced by GetMatlRequests(), InitFrom(), InitInv(), SnapshotInv(), Tick(), and version().
|
private |
Definition at line 594 of file _tmp_build/cycamore/separations.h.
Referenced by EnterNotify(), GetMatlRequests(), InfileToDb(), InitFrom(), Snapshot(), and version().
|
private |
Definition at line 587 of file _tmp_build/cycamore/separations.h.
Referenced by EnterNotify(), GetMatlRequests(), InfileToDb(), InitFrom(), Snapshot(), and version().
|
private |
Definition at line 601 of file _tmp_build/cycamore/separations.h.
Referenced by GetMatlRequests(), InfileToDb(), InitFrom(), Snapshot(), and version().
|
private |
Definition at line 608 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), Snapshot(), and version().
|
private |
Definition at line 661 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), RecordPosition(), Snapshot(), and version().
|
private |
Definition at line 643 of file _tmp_build/cycamore/separations.h.
Referenced by CheckDecommissionCondition(), GetMatlRequests(), InitFrom(), InitInv(), SnapshotInv(), Tick(), and version().
|
private |
Definition at line 629 of file _tmp_build/cycamore/separations.h.
Referenced by GetMatlRequests(), InfileToDb(), InitFrom(), Snapshot(), Tick(), and version().
|
private |
Definition at line 636 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), Snapshot(), and version().
|
private |
Definition at line 668 of file _tmp_build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), RecordPosition(), Snapshot(), and version().
|
private |
Definition at line 657 of file _tmp_build/cycamore/separations.h.
Referenced by CheckDecommissionCondition(), EnterNotify(), GetMatlRequests(), InitInv(), SnapshotInv(), Tick(), and version().
|
private |
Definition at line 650 of file _tmp_build/cycamore/separations.h.
Referenced by EnterNotify(), InfileToDb(), InitFrom(), Snapshot(), Tick(), and version().
|
private |
Definition at line 622 of file _tmp_build/cycamore/separations.h.
Referenced by GetMatlRequests(), InfileToDb(), InitFrom(), Snapshot(), Tick(), and version().