CYCLUS
|
Classes | |
class | AgentManaged |
class | Assays |
class | BasicFunctionFactory |
class | Builder |
class | BuildingManager |
struct | BuildOrder |
struct | CommodInfo |
class | Commodity |
struct | CommodityCompare |
class | CommodityProducer |
class | CommodityProducerManager |
class | CommodityRecipeContext |
class | ExpFunctionFactory |
class | ExponentialFunction |
class | LinearFunction |
class | LinFunctionFactory |
class | MatlBuyPolicy |
class | MatlSellPolicy |
class | MatQuery |
class | PiecewiseFunction |
class | PiecewiseFunctionFactory |
class | Position |
class | ResBuf |
class | ResMap |
class | SupplyDemandManager |
class | SymbFunctionFactory |
class | SymFunction |
Typedefs | |
typedef std::vector< Material::Ptr > | MatVec |
typedef std::vector< Product::Ptr > | ProdVec |
typedef std::vector< Resource::Ptr > | ResVec |
typedef boost::variant< std::function< void(cyclus::Agent *, int, bool, std::string)>, std::function< void(cyclus::Agent *, int, int, std::string)>, std::function< void(cyclus::Agent *, int, float, std::string)>, std::function< void(cyclus::Agent *, int, double, std::string)>, std::function< void(cyclus::Agent *, int, std::string, std::string)> | time_series_listener_t) |
Enumerations | |
enum | TimeSeriesType : int { POWER , ENRICH_SWU , ENRICH_FEED } |
Variables | |
std::map< std::string, std::vector< time_series_listener_t > > | TIME_SERIES_LISTENERS |
typedef std::vector<Material::Ptr> cyclus::toolkit::MatVec |
typedef std::vector<Product::Ptr> cyclus::toolkit::ProdVec |
typedef std::vector<Resource::Ptr> cyclus::toolkit::ResVec |
typedef boost::variant< std::function<void(cyclus::Agent*, int, bool, std::string)>, std::function<void(cyclus::Agent*, int, int, std::string)>, std::function<void(cyclus::Agent*, int, float, std::string)>, std::function<void(cyclus::Agent*, int, double, std::string)>, std::function<void(cyclus::Agent*, int, std::string, std::string)> cyclus::toolkit::time_series_listener_t) |
Stores global information for the time series call backs.
Definition at line 37 of file timeseries.h.
Time series types to be used in the RecordTimeSeries() functions.
These types have the following units which must be adhered to strictly:
Enumerator | |
---|---|
POWER | |
ENRICH_SWU | |
ENRICH_FEED |
Definition at line 24 of file timeseries.h.
void cyclus::toolkit::AddJsonToXml | ( | Json::Value & | node, |
std::stringstream & | ss, | ||
std::string | parent_name, | ||
std::string | indent ) |
Definition at line 15 of file infile_converters.cc.
void cyclus::toolkit::AddXmlToJson | ( | InfileTree * | xnode, |
Json::Value & | jnode, | ||
std::string | parent_name ) |
Definition at line 122 of file infile_converters.cc.
inline double UraniumQty(Material::Ptr mat) { return UraniumQty(mat.get()); }
product_qty | the amount of product Uranium, assuming feed is comprised of only U-235 and U-238 |
assays | the assay of product, feed, and tails |
Definition at line 85 of file enrichment.cc.
void cyclus::toolkit::JsonInsertOrAppend | ( | Json::Value & | node, |
std::string | key, | ||
Json::Value & | val ) |
Definition at line 104 of file infile_converters.cc.
std::string cyclus::toolkit::JsonToPy | ( | std::string | infile | ) |
Convert JSON string to Python simulation string.
Definition at line 94 of file pyhooks.cc.
std::string cyclus::toolkit::JsonToXml | ( | std::string | s | ) |
Converts a JSON string into an equivalent XML string.
Definition at line 81 of file infile_converters.cc.
void cyclus::toolkit::PyCallListeners | ( | std::string | tsname, |
Agent * | agent, | ||
void * | cpp_ctx, | ||
int | time, | ||
boost::spirit::hold_any | value ) |
Calls the Python listeners.
Definition at line 100 of file pyhooks.cc.
std::string cyclus::toolkit::PyToJson | ( | std::string | infile | ) |
Convert Python simulation string to JSON.
Definition at line 88 of file pyhooks.cc.
std::string cyclus::toolkit::PyToXml | ( | std::string | s | ) |
Converts a Python string into an equivalent XML string.
Definition at line 164 of file infile_converters.cc.
void cyclus::toolkit::RecordTimeSeries | ( | cyclus::Agent * | agent, |
double | value, | ||
std::string | units = "" ) |
Records a per-time step quantity for a given type.
void cyclus::toolkit::RecordTimeSeries | ( | std::string | tsname, |
cyclus::Agent * | agent, | ||
T | value, | ||
std::string | units = "" ) |
Records a per-time step quantity for a string.
Definition at line 48 of file timeseries.h.
void cyclus::toolkit::RecordTimeSeries< ENRICH_FEED > | ( | cyclus::Agent * | agent, |
double | value, | ||
std::string | units ) |
Definition at line 19 of file timeseries.cc.
void cyclus::toolkit::RecordTimeSeries< ENRICH_SWU > | ( | cyclus::Agent * | agent, |
double | value, | ||
std::string | units ) |
Definition at line 14 of file timeseries.cc.
void cyclus::toolkit::RecordTimeSeries< POWER > | ( | cyclus::Agent * | agent, |
double | value, | ||
std::string | units ) |
Definition at line 9 of file timeseries.cc.
std::vector< Resource::Ptr > cyclus::toolkit::ResCast | ( | std::vector< Material::Ptr > | rs | ) |
Casts a vector of Materials into a vector of Resources.
Definition at line 51 of file res_manip.cc.
std::vector< Resource::Ptr > cyclus::toolkit::ResCast | ( | std::vector< Product::Ptr > | rs | ) |
Casts a vector of Products into a vector of Resources.
Definition at line 59 of file res_manip.cc.
std::vector< Resource::Ptr > cyclus::toolkit::ResCast | ( | std::vector< Resource::Ptr > | rs | ) |
Casts a vector of Resources into a vector of Resources.
This is actually basically a no-op that enables ResBuf to work for plain Resource types.
Definition at line 67 of file res_manip.cc.
Material::Ptr cyclus::toolkit::Squash | ( | std::vector< Material::Ptr > | ms | ) |
Squash combines all materials in ms and returns the resulting single material.
Definition at line 21 of file res_manip.cc.
Product::Ptr cyclus::toolkit::Squash | ( | std::vector< Product::Ptr > | ps | ) |
Squash combines all products in ps and returns the resulting single product.
Definition at line 7 of file res_manip.cc.
Resource::Ptr cyclus::toolkit::Squash | ( | std::vector< Resource::Ptr > | rs | ) |
Squash combines all resources in rs and returns the resulting single resource.
Definition at line 34 of file res_manip.cc.
product_qty | the amount of product Uranium |
assays | the assay of product, feed, and tails |
Definition at line 122 of file enrichment.cc.
product_qty | the amount of product Uranium |
assays | the assay of product, feed, and tails |
Definition at line 94 of file enrichment.cc.
double cyclus::toolkit::UraniumAssay | ( | Material::Ptr | mat | ) |
mat | the material inquired about |
Definition at line 36 of file enrichment.cc.
double cyclus::toolkit::UraniumAssayAtom | ( | Material::Ptr | mat | ) |
mat | the material inquired about |
Definition at line 41 of file enrichment.cc.
double cyclus::toolkit::UraniumAssayMass | ( | Material::Ptr | mat | ) |
mat | the material inquired about |
Definition at line 60 of file enrichment.cc.
double cyclus::toolkit::UraniumQty | ( | Material::Ptr | mat | ) |
inline double UraniumAssay(Material::Ptr mat) { return UraniumAssay(mat.get()); }
mat | the material inquired about |
Definition at line 79 of file enrichment.cc.
frac | the fraction input, this will throw if the fraction value is not in [0,1) |
Definition at line 103 of file enrichment.cc.
std::string cyclus::toolkit::XmlToJson | ( | std::string | s | ) |
Converts an XML string into an equivalent JSON string.
Definition at line 146 of file infile_converters.cc.
std::string cyclus::toolkit::XmlToPy | ( | std::string | s | ) |
Converts an XML string into an equivalent JSON string.
Definition at line 168 of file infile_converters.cc.
std::map< std::string, std::vector< time_series_listener_t > > cyclus::toolkit::TIME_SERIES_LISTENERS |
Definition at line 6 of file timeseries.cc.