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. | |
void | RecordPosition () |
Records an agent's latitude and longitude to the output db. | |
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 41 of file build/cycamore/separations.h.
cycamore::Separations::Separations | ( | cyclus::Context * | ctx | ) |
Definition at line 13 of file build/cycamore/separations.cc.
|
inlinevirtual |
Definition at line 48 of file build/cycamore/separations.h.
cycamore::Separations::Separations | ( | cyclus::Context * | ctx | ) |
|
inlinevirtual |
Definition at line 67 of file src/separations.h.
|
virtual |
|
virtual |
|
inlinevirtual |
Definition at line 435 of file build/cycamore/separations.h.
|
virtual |
Definition at line 357 of file build/cycamore/separations.cc.
References leftover, and streambufs.
|
virtual |
|
inlinevirtual |
Definition at line 71 of file build/cycamore/separations.h.
|
virtual |
Definition at line 52 of file build/cycamore/separations.cc.
References feed_commod_prefs, feed_commods, RecordPosition(), streambufs, and streams_.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Definition at line 197 of file build/cycamore/separations.cc.
References feed, feed_commod_prefs, feed_commods, feed_recipe, and throughput.
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Definition at line 118 of file 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_, and throughput.
|
inlinevirtual |
Definition at line 78 of file 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.
|
inlinevirtual |
Definition at line 307 of file 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.
|
virtual |
Definition at line 39 of file build/cycamore/separations.cc.
References feed, leftover, and streambufs.
|
virtual |
|
private |
Definition at line 384 of file build/cycamore/separations.cc.
Referenced by Tick().
|
private |
|
private |
Records an agent's latitude and longitude to the output db.
Definition at line 372 of file build/cycamore/separations.cc.
References latitude, and longitude.
Referenced by EnterNotify().
|
private |
Records an agent's latitude and longitude to the output db.
|
inlinevirtual |
Definition at line 348 of file build/cycamore/separations.h.
|
inlinevirtual |
Definition at line 566 of file 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, latitude, leftover_commod, leftoverbuf_size, longitude, streams_, and throughput.
|
virtual |
Definition at line 19 of file build/cycamore/separations.cc.
References feed, leftover, and streambufs.
|
virtual |
|
virtual |
Definition at line 104 of file build/cycamore/separations.cc.
References feed, leftover, leftover_commod, Record(), cycamore::SepMaterial(), streambufs, streams_, and throughput.
|
virtual |
|
virtual |
Definition at line 355 of file build/cycamore/separations.cc.
|
virtual |
|
inlinevirtual |
Definition at line 50 of file build/cycamore/separations.h.
References CYCAMORE_VERSION.
|
inlinevirtual |
Definition at line 69 of file src/separations.h.
References CYCAMORE_VERSION.
|
private |
Definition at line 679 of file build/cycamore/separations.h.
|
private |
Definition at line 622 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and InitFrom().
|
private |
Definition at line 601 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 594 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 608 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 615 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 668 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 650 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), and InitFrom().
|
private |
Definition at line 636 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 643 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 675 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 657 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 629 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 621 of file build/cycamore/separations.h.
Referenced by GetMatlRequests(), InitFrom(), InitFrom(), InitInv(), SnapshotInv(), and Tick().
|
private |
Definition at line 600 of file build/cycamore/separations.h.
Referenced by EnterNotify(), GetMatlRequests(), InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 593 of file build/cycamore/separations.h.
Referenced by EnterNotify(), GetMatlRequests(), InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 607 of file build/cycamore/separations.h.
Referenced by GetMatlRequests(), InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 614 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 667 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), RecordPosition(), and Snapshot().
|
private |
Definition at line 649 of file build/cycamore/separations.h.
Referenced by CheckDecommissionCondition(), InitFrom(), InitFrom(), InitInv(), SnapshotInv(), and Tick().
|
private |
Definition at line 635 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), Snapshot(), and Tick().
|
private |
Definition at line 642 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), and Snapshot().
|
private |
Definition at line 674 of file build/cycamore/separations.h.
Referenced by InfileToDb(), InitFrom(), InitFrom(), RecordPosition(), and Snapshot().
|
private |
Definition at line 663 of file build/cycamore/separations.h.
Referenced by CheckDecommissionCondition(), EnterNotify(), InitInv(), SnapshotInv(), and Tick().
|
private |
Definition at line 656 of file build/cycamore/separations.h.
Referenced by EnterNotify(), InfileToDb(), InitFrom(), InitFrom(), Snapshot(), and Tick().
|
private |
Definition at line 628 of file build/cycamore/separations.h.
Referenced by GetMatlRequests(), InfileToDb(), InitFrom(), InitFrom(), Snapshot(), and Tick().