CYCAMORE
Namespaces | Classes | Typedefs | Functions | Variables
cycamore Namespace Reference

Namespaces

 fuelfabtests
 
 reactortests
 

Classes

class  DeployInst
 
class  Enrichment
 The Enrichment facility is a simple Agent that enriches natural uranium in a Cyclus simulation. More...
 
class  EnrichmentTest
 
class  FillConverter
 
class  FissConverter
 
class  FuelFab
 FuelFab takes in 2 streams of material and mixes them in ratios in order to supply material that matches some neutronics properties of reqeusted material. More...
 
class  GrowthRegion
 This region determines if there is a need to meet a certain capacity (as defined via input) at each time step. More...
 
class  GrowthRegionTests
 
class  ManagerInst
 
class  Mixer
 Mixer mixes N streams with fixed, static, user-specified ratios into a single output stream. More...
 
class  MixerTest
 
class  NatUConverter
 The NatUConverter is a simple Converter class for material to determine the amount of natural uranium required for their proposed enrichment. More...
 
class  Reactor
 Reactor is a simple, general reactor based on static compositional transformations to model fuel burnup. More...
 
class  Separations
 Separations processes feed material into one or more streams containing specific elements and/or nuclides. More...
 
class  Sink
 This facility acts as a sink of materials and products with a fixed throughput (per time step) capacity and a lifetime capacity defined by a total inventory size. More...
 
class  Source
 This facility acts as a source of material with a fixed throughput (per time step) capacity and a lifetime capacity defined by a total inventory size. More...
 
class  SourceTest
 
class  SWUConverter
 The SWUConverter is a simple Converter class for material to determine the amount of SWU required for their proposed enrichment. More...
 
class  TopupConverter
 

Typedefs

typedef std::map< int, std::vector< std::string > > BuildSched
 
typedef std::vector< std::pair< int, std::pair< std::string, std::string > > > Demand
 A container of (time, (demand type, demand parameters)) More...
 
typedef std::pair< double, std::map< int, double > > Stream
 
typedef std::map< std::string, StreamStreamSet
 
typedef std::vector< std::pair< std::pair< double, double >, std::map< std::string, double > > > t_instream
 

Functions

void AddCommodityDemand_ (std::string commod, Demand &demand)
 add a demand for a commodity on which this region request that facilities be built More...
 
double AtomToMassFrac (double atomfrac, Composition::Ptr c1, Composition::Ptr c2)
 
double AtomToMassFrac (double atomfrac, cyclus::Composition::Ptr c1, cyclus::Composition::Ptr c2)
 
Composition::Ptr c_heu ()
 
Composition::Ptr c_leu ()
 
cyclus::Composition::Ptr c_natu ()
 
Composition::Ptr c_natu1 ()
 
Composition::Ptr c_natu2 ()
 
Composition::Ptr c_nou235 ()
 
cyclus::Composition::Ptr c_pustream ()
 
cyclus::Composition::Ptr c_uox ()
 
cyclus::Agent * ConstructDeployInst (cyclus::Context *ctx)
 
cyclus::Agent * ConstructEnrichment (cyclus::Context *ctx)
 
cyclus::Agent * ConstructFuelFab (cyclus::Context *ctx)
 
cyclus::Agent * ConstructGrowthRegion (cyclus::Context *ctx)
 
cyclus::Agent * ConstructManagerInst (cyclus::Context *ctx)
 
cyclus::Agent * ConstructMixer (cyclus::Context *ctx)
 
cyclus::Agent * ConstructReactor (cyclus::Context *ctx)
 
cyclus::Agent * ConstructSeparations (cyclus::Context *ctx)
 
cyclus::Agent * ConstructSink (cyclus::Context *ctx)
 
cyclus::Agent * ConstructSource (cyclus::Context *ctx)
 
bool Contains (std::vector< std::string > vec, std::string s)
 
double CosiWeight (cyclus::Composition::Ptr c, const std::string &spectrum)
 
double HighFrac (double w_low, double w_target, double w_high, double eps)
 
double LowFrac (double w_low, double w_target, double w_high, double eps)
 
void OrderBuilds (cyclus::toolkit::Commodity &commodity, double unmetdemand)
 orders builds given a commodity and an unmet demand for production capacity of that commodity More...
 
void Register_ (cyclus::Agent *agent)
 register a child More...
 
cyclus::Material::Ptr SepMaterial (std::map< int, double > effs, cyclus::Material::Ptr mat)
 SepMaterial returns a material object that represents the composition and quantity resulting from the separation of material from mat using the given mass-based efficiencies. More...
 
Material::Ptr SepMaterial (std::map< int, double > effs, Material::Ptr mat)
 
bool SortBids (cyclus::Bid< cyclus::Material > *i, cyclus::Bid< cyclus::Material > *j)
 
 TEST (SeparationsTests, SepMaterial)
 
 TEST (SeparationsTests, SeparationEfficiency)
 
 TEST (SeparationsTests, SeparationEfficiencyThrowing)
 
 TEST (SeparationsTests, SepMixElemAndNuclide)
 
 TEST (SeparationsTests, Retire)
 
 TEST (MixerTests, MultipleFissStreams)
 
 TEST (MixerTests, CompleteMixingProcess)
 
 TEST_F (GrowthRegionTests, init)
 
 TEST_F (SourceTest, Clone)
 
 TEST_F (SourceTest, Print)
 
 TEST_F (EnrichmentTest, RequestQty)
 
 TEST_F (SourceTest, AddBids)
 
 TEST_F (SourceTest, Response)
 
 TEST_F (EnrichmentTest, CheckSWUConstraint)
 
 TEST_F (EnrichmentTest, CheckCapConstraint)
 
 TEST_F (EnrichmentTest, RequestEnrich)
 
 TEST_F (MixerTest, StreamDefaultRatio)
 
 TEST_F (MixerTest, StreamRatio)
 
 TEST_F (EnrichmentTest, TradeTails)
 
 TEST_F (MixerTest, MixingComposition)
 
 TEST_F (EnrichmentTest, TailsQty)
 
 TEST_F (MixerTest, Throughput)
 
 TEST_F (EnrichmentTest, BidPrefs)
 
 TEST_F (EnrichmentTest, NoBidPrefs)
 
 TEST_F (EnrichmentTest, ZeroU235)
 
 TEST_F (EnrichmentTest, Request)
 
 TEST_F (EnrichmentTest, ValidReq)
 
 TEST_F (EnrichmentTest, ConstraintConverters)
 
 TEST_F (EnrichmentTest, Enrich)
 
 TEST_F (EnrichmentTest, Response)
 
void Unregister_ (cyclus::Agent *agent)
 unregister a child More...
 
bool ValidWeights (double w_low, double w_target, double w_high)
 

Variables

cyclus::toolkit::BuildingManager buildmanager_
 manager for building things More...
 
cycamore::GrowthRegion commodity_demand
 
cycamore::GrowthRegion int
 
cyclus::toolkit::SupplyDemandManager sdmanager_
 manager for Supply and demand More...
 
cycamore::GrowthRegion string
 

Typedef Documentation

typedef std::map< int, std::vector< std::string > > cycamore::BuildSched

Definition at line 15 of file _tmp_build/cycamore/deploy_inst.h.

typedef std::vector< std::pair< int, std::pair< std::string, std::string > > > cycamore::Demand

A container of (time, (demand type, demand parameters))

Definition at line 25 of file _tmp_build/cycamore/growth_region.h.

typedef std::pair< double, std::map< int, double > > cycamore::Stream

Definition at line 48 of file _tmp_build/cycamore/separations.cc.

typedef std::map< std::string, Stream > cycamore::StreamSet

Definition at line 49 of file _tmp_build/cycamore/separations.cc.

typedef std::vector< std::pair< std::pair< double, double >, std::map< std::string, double > > > cycamore::t_instream

Definition at line 17 of file _tmp_build/cycamore/mixer_tests.cc.

Function Documentation

void cycamore::AddCommodityDemand_ ( std::string  commod,
Demand demand 
)

add a demand for a commodity on which this region request that facilities be built

double cycamore::AtomToMassFrac ( double  atomfrac,
Composition::Ptr  c1,
Composition::Ptr  c2 
)
double cycamore::AtomToMassFrac ( double  atomfrac,
cyclus::Composition::Ptr  c1,
cyclus::Composition::Ptr  c2 
)
Composition::Ptr cycamore::c_heu ( )

Definition at line 46 of file _tmp_build/cycamore/enrichment_tests.cc.

References m.

Referenced by TEST_F().

Composition::Ptr cycamore::c_leu ( )

Definition at line 40 of file _tmp_build/cycamore/enrichment_tests.cc.

References m.

Referenced by TEST_F().

cyclus::Composition::Ptr cycamore::c_natu ( )

Definition at line 30 of file _tmp_build/cycamore/mixer_tests.cc.

References m.

Referenced by cycamore::MixerTest::GetStreamBuffer(), TEST(), and TEST_F().

Composition::Ptr cycamore::c_natu1 ( )

Definition at line 28 of file _tmp_build/cycamore/enrichment_tests.cc.

References m.

Referenced by TEST_F().

Composition::Ptr cycamore::c_natu2 ( )

Definition at line 34 of file _tmp_build/cycamore/enrichment_tests.cc.

References m.

Referenced by TEST_F().

Composition::Ptr cycamore::c_nou235 ( )

Definition at line 23 of file _tmp_build/cycamore/enrichment_tests.cc.

References m.

Referenced by TEST_F().

cyclus::Composition::Ptr cycamore::c_pustream ( )

Definition at line 19 of file _tmp_build/cycamore/mixer_tests.cc.

References m.

Referenced by cycamore::MixerTest::GetStreamBuffer(), TEST(), and TEST_F().

cyclus::Composition::Ptr cycamore::c_uox ( )

Definition at line 39 of file _tmp_build/cycamore/mixer_tests.cc.

References m.

Referenced by cycamore::MixerTest::GetStreamBuffer(), TEST(), and TEST_F().

cyclus::Agent * cycamore::ConstructDeployInst ( cyclus::Context *  ctx)
cyclus::Agent * cycamore::ConstructEnrichment ( cyclus::Context *  ctx)
cyclus::Agent * cycamore::ConstructFuelFab ( cyclus::Context *  ctx)
cyclus::Agent * cycamore::ConstructGrowthRegion ( cyclus::Context *  ctx)
cyclus::Agent * cycamore::ConstructManagerInst ( cyclus::Context *  ctx)
cyclus::Agent * cycamore::ConstructMixer ( cyclus::Context *  ctx)

Definition at line 186 of file _tmp_build/cycamore/mixer.cc.

References cycamore::Mixer::Mixer().

cyclus::Agent * cycamore::ConstructReactor ( cyclus::Context *  ctx)

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

References cycamore::Reactor::Reactor().

cyclus::Agent * cycamore::ConstructSeparations ( cyclus::Context *  ctx)
cyclus::Agent * cycamore::ConstructSink ( cyclus::Context *  ctx)

Definition at line 444 of file _tmp_build/cycamore/sink.cc.

References cycamore::Sink::Sink().

cyclus::Agent * cycamore::ConstructSource ( cyclus::Context *  ctx)

Definition at line 140 of file _tmp_build/cycamore/source.cc.

References cycamore::Source::Source().

bool cycamore::Contains ( std::vector< std::string >  vec,
std::string  s 
)
double cycamore::CosiWeight ( cyclus::Composition::Ptr  c,
const std::string &  spectrum 
)
double cycamore::HighFrac ( double  w_low,
double  w_target,
double  w_high,
double  eps 
)
double cycamore::LowFrac ( double  w_low,
double  w_target,
double  w_high,
double  eps 
)
void cycamore::OrderBuilds ( cyclus::toolkit::Commodity &  commodity,
double  unmetdemand 
)

orders builds given a commodity and an unmet demand for production capacity of that commodity

Parameters
commoditythe commodity being demanded
unmetdemandthe unmet demand
void cycamore::Register_ ( cyclus::Agent *  agent)

register a child

cyclus::Material::Ptr cycamore::SepMaterial ( std::map< int, double >  effs,
cyclus::Material::Ptr  mat 
)

SepMaterial returns a material object that represents the composition and quantity resulting from the separation of material from mat using the given mass-based efficiencies.

Each key in effs represents a nuclide or element (canonical PyNE form), and each value is the corresponding mass-based separations efficiency for that nuclide or element. Note that this returns an untracked material that should only be used for its composition and qty

  • not in any real inventories, etc.
Material::Ptr cycamore::SepMaterial ( std::map< int, double >  effs,
Material::Ptr  mat 
)

Definition at line 150 of file _tmp_build/cycamore/separations.cc.

Referenced by TEST(), and cycamore::Separations::Tick().

bool cycamore::SortBids ( cyclus::Bid< cyclus::Material > *  i,
cyclus::Bid< cyclus::Material > *  j 
)
cycamore::TEST ( SeparationsTests  ,
SepMaterial   
)

Definition at line 17 of file _tmp_build/cycamore/separations_tests.cc.

References SepMaterial().

cycamore::TEST ( SeparationsTests  ,
SeparationEfficiency   
)

Definition at line 48 of file _tmp_build/cycamore/separations_tests.cc.

References string.

cycamore::TEST ( SeparationsTests  ,
SeparationEfficiencyThrowing   
)

Definition at line 141 of file _tmp_build/cycamore/separations_tests.cc.

References string.

cycamore::TEST ( SeparationsTests  ,
SepMixElemAndNuclide   
)

Definition at line 239 of file _tmp_build/cycamore/separations_tests.cc.

References m, and string.

cycamore::TEST ( SeparationsTests  ,
Retire   
)

Definition at line 284 of file _tmp_build/cycamore/separations_tests.cc.

References m, and string.

cycamore::TEST ( MixerTests  ,
MultipleFissStreams   
)
cycamore::TEST ( MixerTests  ,
CompleteMixingProcess   
)

Definition at line 397 of file _tmp_build/cycamore/mixer_tests.cc.

References c_natu(), c_pustream(), c_uox(), m, and string.

cycamore::TEST_F ( GrowthRegionTests  ,
init   
)
cycamore::TEST_F ( SourceTest  ,
Clone   
)
cycamore::TEST_F ( SourceTest  ,
Print   
)
cycamore::TEST_F ( EnrichmentTest  ,
RequestQty   
)

Definition at line 54 of file _tmp_build/cycamore/enrichment_tests.cc.

References c_natu1(), m, and string.

Referenced by cycamore::MixerTest::GetStreamBuffer().

cycamore::TEST_F ( SourceTest  ,
AddBids   
)
cycamore::TEST_F ( SourceTest  ,
Response   
)
cycamore::TEST_F ( EnrichmentTest  ,
CheckSWUConstraint   
)

Definition at line 90 of file _tmp_build/cycamore/enrichment_tests.cc.

References c_heu(), c_natu1(), m, and string.

cycamore::TEST_F ( EnrichmentTest  ,
CheckCapConstraint   
)

Definition at line 131 of file _tmp_build/cycamore/enrichment_tests.cc.

References c_heu(), c_natu1(), m, and string.

cycamore::TEST_F ( EnrichmentTest  ,
RequestEnrich   
)

Definition at line 170 of file _tmp_build/cycamore/enrichment_tests.cc.

References c_heu(), c_leu(), c_natu1(), m, and string.

cycamore::TEST_F ( MixerTest  ,
StreamDefaultRatio   
)
cycamore::TEST_F ( MixerTest  ,
StreamRatio   
)
cycamore::TEST_F ( EnrichmentTest  ,
TradeTails   
)

Definition at line 226 of file _tmp_build/cycamore/enrichment_tests.cc.

References c_leu(), c_natu1(), and string.

cycamore::TEST_F ( MixerTest  ,
MixingComposition   
)
cycamore::TEST_F ( EnrichmentTest  ,
TailsQty   
)

Definition at line 263 of file _tmp_build/cycamore/enrichment_tests.cc.

References c_leu(), c_natu1(), m, and string.

cycamore::TEST_F ( MixerTest  ,
Throughput   
)
cycamore::TEST_F ( EnrichmentTest  ,
BidPrefs   
)

Definition at line 318 of file _tmp_build/cycamore/enrichment_tests.cc.

References c_natu1(), c_natu2(), m, and string.

cycamore::TEST_F ( EnrichmentTest  ,
NoBidPrefs   
)

Definition at line 369 of file _tmp_build/cycamore/enrichment_tests.cc.

References c_natu1(), c_natu2(), and string.

cycamore::TEST_F ( EnrichmentTest  ,
ZeroU235   
)

Definition at line 409 of file _tmp_build/cycamore/enrichment_tests.cc.

References c_natu1(), c_nou235(), and string.

cycamore::TEST_F ( EnrichmentTest  ,
Request   
)
cycamore::TEST_F ( EnrichmentTest  ,
ValidReq   
)
cycamore::TEST_F ( EnrichmentTest  ,
ConstraintConverters   
)
cycamore::TEST_F ( EnrichmentTest  ,
Enrich   
)
cycamore::TEST_F ( EnrichmentTest  ,
Response   
)
void cycamore::Unregister_ ( cyclus::Agent *  agent)

unregister a child

bool cycamore::ValidWeights ( double  w_low,
double  w_target,
double  w_high 
)

Variable Documentation

cyclus::toolkit::BuildingManager cycamore::buildmanager_

manager for building things

Definition at line 107 of file src/growth_region.h.

cycamore::GrowthRegion cycamore::commodity_demand
cycamore::GrowthRegion cycamore::int

Referenced by helper::hasher().

cyclus::toolkit::SupplyDemandManager cycamore::sdmanager_

manager for Supply and demand

Definition at line 110 of file src/growth_region.h.

cycamore::GrowthRegion cycamore::string

Referenced by cycamore::Mixer::AcceptMatlTrades(), cycamore::GrowthRegion::AddCommodityDemand_(), cycamore::DeployInst::Build(), Contains(), cycamore::FissConverter::convert(), cycamore::FillConverter::convert(), cycamore::TopupConverter::convert(), cycamore::Mixer::EnterNotify(), cycamore::Separations::EnterNotify(), storage::Storage::EnterNotify(), cycamore::Sink::GetGenRsrcRequests(), cycamore::Mixer::GetMatlRequests(), cycamore::Separations::GetMatlRequests(), cycamore::Reactor::GetMatlRequests(), cycamore::FuelFab::GetMatlRequests(), cycamore::Enrichment::GetMatlTrades(), cycamore::MixerTest::GetStreamBuffer(), cycamore::Sink::InfileToDb(), cycamore::ManagerInst::InfileToDb(), cycamore::Mixer::InfileToDb(), cycamore::GrowthRegion::InfileToDb(), cycamore::DeployInst::InfileToDb(), storage::Storage::InfileToDb(), cycamore::Reactor::InfileToDb(), cycamore::Separations::InfileToDb(), cycamore::Source::InfileToDb(), cycamore::FuelFab::InfileToDb(), cycamore::Enrichment::InfileToDb(), cycamore::Sink::InitFrom(), storage::Storage::InitFrom(), cycamore::Reactor::InitFrom(), cycamore::FuelFab::InitFrom(), cycamore::Mixer::InitFrom(), cycamore::Enrichment::InitFrom(), cycamore::Source::InitFrom(), cycamore::Separations::InitFrom(), cycamore::Sink::input_commodity_preferences(), cycamore::Reactor::Load(), main(), cycamore::Reactor::PeekSpent(), cycamore::Reactor::PopSpent(), storage::Storage::ready_time(), cycamore::Reactor::retired(), cycamore::MixerTest::SetInputInv(), cycamore::Enrichment::Snapshot(), cycamore::Sink::str(), storage::Storage::str(), cycamore::Source::str(), cycamore::Enrichment::Tails(), cycamore::MixerTest::TearDown(), TEST(), cycamore::reactortests::TEST(), cycamore::fuelfabtests::TEST(), TEST(), TEST_F(), TEST_F(), storage::TEST_F(), cycamore::SourceTest::throughput(), cycamore::Mixer::Tick(), cycamore::Separations::Tick(), cycamore::Sink::Tick(), cycamore::Reactor::Tick(), cycamore::Mixer::Tock(), cycamore::FuelFab::Tock(), cycamore::Source::Tock(), cycamore::Sink::version(), cycamore::Separations::version(), cycamore::Reactor::version(), and cycamore::Enrichment::version().