Skip to content

Instantly share code, notes, and snippets.

@rwcarlsen
Created July 23, 2015 15:13
Show Gist options
  • Save rwcarlsen/41347ee7e3f986926467 to your computer and use it in GitHub Desktop.
Save rwcarlsen/41347ee7e3f986926467 to your computer and use it in GitHub Desktop.
storage facility state
#pragma cyclus {}
std::vector<std::string> in_commods;
#pragma cyclus {"default": []}
std::vector<double> in_commod_prefs; // optional with {default: []}
#pragma cyclus {}
std::string out_commod;
#pragma cyclus {"default": ""}
std::string in_recipe;
#pragma cyclus {"default": [], "internal": True}
std::list<double> in_commod_prefs; // optional with {default: []}
#pragma cyclus {}
int storage_time;
#pragma cyclus {"default": 1e299}
double throughput;
#pragma cyclus {"default": 1e299}
double max_inv_size;
#pragma cyclus {}
cyclus::toolkit::ResBuf<cyclus::Material> inbuf; // adjust size depending on other bufs and max_inv_size
#pragma cyclus {}
cyclus::toolkit::ResBuf<cyclus::Material> inventory; // infinite size
#pragma cyclus {}
cyclus::toolkit::ResBuf<cyclus::Material> outbuf; // infinite size
//// A policy for requesting material
cyclus::toolkit::MatlBuyPolicy buy_policy;
//// A policy for sending material
cyclus::toolkit::MatlSellPolicy sell_policy;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment