CLASS
5.1
Fuel Cycle Simulator
|
#include <Reactor.hxx>
Public Member Functions | |
Constructor/Desctructor | |
Reactor () | |
Normal Constructor. More... | |
Reactor (CLASSLogger *log) | |
CLASSLogger Constructor. More... | |
Reactor (CLASSLogger *log, CLASSBackEnd *backend, cSecond creationtime, cSecond lifetime, double Power, double HMMass, double CapacityFactor=1) | |
Special Constructor for reprocessed fuel using cycletime and Burn-Up. More... | |
Reactor (CLASSLogger *log, FabricationPlant *fabricationplant, CLASSBackEnd *backend, cSecond creationtime, cSecond lifetime, double Power, double HMMass, double CapacityFactor=1) | |
Special Constructor for reprocessed fuel using cycletime and Burn-Up. More... | |
Reactor (CLASSLogger *log, PhysicsModels *fueltypeDB, FabricationPlant *fabricationplant, CLASSBackEnd *Pool, cSecond creationtime, cSecond lifetime, cSecond cycletime, double HMMass, double BurnUp) | |
Special Constructor for reprocessed fuel using cycletime and Burn-Up. More... | |
Reactor (CLASSLogger *log, PhysicsModels *fueltypeDB, FabricationPlant *fabricationplant, CLASSBackEnd *backend, cSecond creationtime, cSecond lifetime, double Power, double HMMass, double BurnUp, double CapacityFactor) | |
Special Constructor for reprocessed fuel using Power and Burn-Up. More... | |
Reactor (CLASSLogger *log, EvolutionData *evolutivedb, CLASSBackEnd *backend, cSecond creationtime, cSecond lifetime, double power, double HMMass, double BurnUp, double CapacityFactor) | |
Special Constructor for fixed fuel using Power and Burn-Up. More... | |
Reactor (CLASSLogger *log, EvolutionData *evolutivedb, CLASSBackEnd *backend, cSecond creationtime, cSecond lifetime, cSecond cycletime, double HMMass, double BurnUp) | |
Special Constructor for fixed fuel using Power and Burn-Up. More... | |
~Reactor () | |
Normal Destructor. More... | |
Get Method | |
IsotopicVector | GetIVReactor () const |
Return the IV contain in the Reactor. More... | |
IsotopicVector | GetIVBeginCycle () const |
(Note : IVBegin != IVIn, only if using ReactorScheduler) More... | |
IsotopicVector | GetIVOutCycle () const |
Return the Out Cycle IV. More... | |
IsotopicVector | GetIVInCycle () const |
(Note : IVIn != IVBegin, only if using ReactorScheduler) More... | |
cSecond | GetNextCycleTime (cSecond time) |
bool | IsFuelFixed () const |
True if using fixed fuel, False otherwise. More... | |
double | GetHeavyMetalMass () const |
Return the HeavyMetal Mass in the Core at the begining of the cycle. More... | |
double | GetBurnUp () const |
Return the Burn Up of the Fuel at the end of the cycle. More... | |
double | GetCapacityFactor () const |
Return the capacity factor of the reactor. More... | |
double | GetPower () const |
Return the cycle time of the Reactor. More... | |
map< cSecond, double > | GetPowerEvolution () |
Get Reactor Power Evolution. More... | |
map< cSecond, double > | GetHMMassEvolution () |
Get Reactor HMMassEvolution. More... | |
map< cSecond, double > | GetSchedulePowerEvolution () |
Get Reactor theoritical Power evolution following Scheduler. More... | |
map< cSecond, double > | GetScheduleHMMassEvolution () |
Get Reactor theoritical HMMass Evolution following Scheduler. More... | |
EvolutionData | GetEvolutionDB () const |
Return the Evolution database of the fuel. More... | |
CLASSBackEnd * | GetOutBackEndFacility () const |
Return the pointer to Associeted BackEnd Facility. More... | |
FabricationPlant * | GetFabricationPlant () const |
Return the pointer to the FabricationPlant. More... | |
ReactorScheduler * | GetScheduler () const |
return the ReactorScheduler More... | |
Set Method | |
void | SetReactorScheduler (ReactorScheduler *reactorscheduler) |
Set the ReactorScheduler. More... | |
void | SetHMMass (double Mass) |
Set the heavy metal mass in the core at the begining of the cycle. More... | |
void | SetCycleTime (double cycletime) |
Set the cycle time (Power fixed) More... | |
void | SetPower (double Power) |
Set the power (burnup cte) More... | |
void | SetBurnUp (double BU) |
Set the burnUp reach at end of cycle (Power cte) More... | |
void | SetIVReactor (IsotopicVector isotopicvector) |
Set the IV inside the Reactor core. More... | |
void | SetIVBeginCycle (IsotopicVector isotopicvector) |
Set the IV at the beginging of the Reactor cycle. More... | |
void | SetIVOutCycle (IsotopicVector isotopicvector) |
Set the IV Going out at the end of the cycle. More... | |
void | SetIVInCycle (IsotopicVector isotopicvector) |
Set the IV coming In at the beginning of the cycle. More... | |
void | SetOutBackEndFacility (CLASSBackEnd *pool) |
Return the pointer to OutBackEnd Facility. More... | |
void | SetStorage (Storage *storage) |
Set the pointer to the Storage. More... | |
void | SetFabricationPlant (FabricationPlant *FP) |
Set the Pointer to the FabricationPlant. More... | |
void | SetEvolutionDB (EvolutionData evolutionDB) |
Set the pointer to the DB evolution of the Reactor. More... | |
Evolution & Modification Method | |
void | Evolution (cSecond t) |
Performs the Evolution until time t. More... | |
void | Dump () |
Write modification (IV In/Out, filling the TF...) More... | |
void | SetNewFuel (EvolutionData ivdb) |
Change the Evolutive DB of the Reactor. More... | |
void | CheckListConsistency (PhysicsModels *fueltypeDB, FabricationPlant *fabricationplant) |
Check if FP/EqM lists are identical. More... | |
void | AddScheduleEntry (cSecond time, ReactorModel *Model, double BurnUp, double Power, double HMMass) |
Change the Model and/or BurnUp and/or Power and/or HMMass from time time. More... | |
void | AddScheduleEntry (cSecond time, EvolutionData *Model, double BurnUp, double Power, double HMMass) |
Change the Model and/or BurnUp and/or Power and/or HMMass from time time. More... | |
void | AddScheduleEntry (cSecond time, PhysicsModels *Model, double BurnUp, double Power, double HMMass) |
Change the Model and/or BurnUp and/or Power and/or HMMass from time time. More... | |
![]() | |
CLASSFacility (int type=0) | |
Normal Constructor. More... | |
CLASSFacility (CLASSLogger *log, int type=0) | |
Special Constructor. More... | |
CLASSFacility (CLASSLogger *log, cSecond cycletime, int type=0) | |
Special Constructor. More... | |
CLASSFacility (CLASSLogger *log, cSecond creationtime, cSecond lifetime, int type=0) | |
Special Constructor. More... | |
CLASSFacility (CLASSLogger *log, cSecond startingtime, cSecond lifetime, cSecond cycletime, int type=0) | |
Special Constructor. More... | |
int | GetId () const |
Return the Facility Parc'Is. More... | |
IsotopicVector | GetInsideIV () const |
Return the IV contained in the Facility. More... | |
int | GetFacilityType () const |
Return the Facility Type id. More... | |
cSecond | GetInternalTime () const |
Return Creation Time. More... | |
cSecond | GetCycleTime () const |
Return the cycle time of the Facility. More... | |
cSecond | GetCreationTime () const |
Return the creation time of the Facility. More... | |
cSecond | GetLifeTime () const |
Return the life time of the Facility. More... | |
Scenario * | GetParc () |
return the pointer to the Park More... | |
IsotopicVector | GetCumulativeIVIn () |
return the cumulative sum of all incoming IV More... | |
IsotopicVector | GetCumulativeIVOut () |
return the cumulative sum of all outcoming IV More... | |
void | SetId (int id) |
Set The Facility Parc'Id. More... | |
void | SetParc (Scenario *parc) |
Set the Pointer to the Parc. More... | |
void | SetFacilityType (int type) |
void | SetInsideIV (IsotopicVector const &isotopicvector) |
Set the IV inside the Facility. More... | |
void | SetCreationTime (cSecond CTtime) |
Set the creation Time. More... | |
void | SetLifeTime (cSecond Ltime) |
Set the life time of the facility. More... | |
void | SetShutDownTime (cSecond SDTime) |
Set the shutdown time of the facility. More... | |
void | SetInCycleTime (cSecond ICtime) |
Set the In cycle time. More... | |
void | SetInternalTime (cSecond INtime) |
Set the Internal Time. More... | |
virtual void | SetCycleTime (cSecond Ctime) |
Set the cycle time (Cycle of the loading Plan) More... | |
virtual void | ApplyZAIThreshold (int z=90) |
Put all nuclei below the threshold in -2 -2 -2 ZAI... More... | |
void | AddCumulativeIVIn (IsotopicVector const &IV) |
Add the Input IsotopicVector in the cumulative IV IN. More... | |
void | AddCumulativeIVOut (IsotopicVector const &IV) |
Add the Input IsotopicVector in the cumulative IV OUT. More... | |
![]() | |
CLASSObject () | |
Normal Constructor. More... | |
CLASSObject (CLASSLogger *log) | |
Log Constructor. More... | |
virtual CLASSObject * | Clone () |
Correct way to copy a CLASSObject in case of derivation. More... | |
void | SetLog (CLASSLogger *log) |
Set the CLASSLogger. More... | |
CLASSLogger * | GetLog () |
Return the Pointer to the Log. More... | |
Protected Member Functions | |
ClassDef (Reactor, 4) | |
Protected Attributes | |
bool | fFixedFuel |
true if the fuel is fixed (not reprocessed) More... | |
bool | fIsStorage |
true if a storage has been define (to approximate the reprocessing using fixed fuel) More... | |
double | fPower |
Power (in Watt) More... | |
double | fElectricPower |
ElectrocPower (in Watt) More... | |
double | fEfficiencyFactor |
ElectrocPower (in Watt) More... | |
double | fCapacityFactor |
Capacity factor [0-1]. More... | |
IsotopicVector | fIVBeginCycle |
Fuel IV at the beginning of a cycle. More... | |
IsotopicVector | fIVInCycle |
IVBegin add at the beginning of the cycle. More... | |
IsotopicVector | fIVOutCycle |
IV wich get out at the end of a cycle. More... | |
EvolutionData | fEvolutionDB |
Pointer to the actual evolution DataBase. More... | |
CLASSBackEnd * | fOutBackEndFacility |
Pointer to the BackEnd Facility which collect the spend fuel. More... | |
ReactorScheduler * | fReactorScheduler |
Pointer to the ReactorScheduler. More... | |
FabricationPlant * | fFabricationPlant |
Pointer to the FabricationPlant. More... | |
Storage * | fStorage |
Pointer to the Stock (only for reprocessing fuel in fixed base...) More... | |
double | fHeavyMetalMass |
In tons. More... | |
double | fBurnUp |
In GWd/tHM. More... | |
map< cSecond, double > | fPowerEvolution |
Evolution Of Reactor Power. More... | |
map< cSecond, double > | fHMMassEvolution |
Evolution Of Reactor HM Mass. More... | |
map< cSecond, double > | fSchedulePowerEvolution |
Evolution Of theoritical Reactor Power following Scheduler. More... | |
map< cSecond, double > | fScheduleHMMassEvolution |
Evolution Of theoritical Reactor HMMass following Scheduler. More... | |
![]() | |
bool | fIsStarted |
True if Running, False Otherwise. More... | |
bool | fIsShutDown |
True if the facility is stoped, False Otherwise. More... | |
bool | fIsAtEndOfCycle |
True if Reaching the end of a Facility cycle. More... | |
cSecond | fInternalTime |
Internal Clock [s]. More... | |
cSecond | fInCycleTime |
Time spent since the beginning of the last Cycle [s]. More... | |
cSecond | fCycleTime |
Cycle duration Time [s]. More... | |
IsotopicVector | fInsideIV |
All IV in the Facility (fuel for reactor, total for all others...) More... | |
IsotopicVector | fCumulativeIVIn |
All IV in the Facility (fuel for reactor, total for all others...) More... | |
IsotopicVector | fCumulativeIVOut |
All IV in the Facility (fuel for reactor, total for all others...) More... | |
![]() | |
CLASSLogger * | fLog |
Pointer to the Log. More... | |
Defines the Reactor.
The aim of this class is to deal the evolution of the fuel inside a reactor. The fuel state in the reactor is describe in the IsotopicVector. Its evolution is contained in an EvolutionData
Reactor::Reactor | ( | ) |
Normal Constructor.
Reactor::Reactor | ( | CLASSLogger * | log | ) |
CLASSLogger Constructor.
Use create an empty Reactor loading a CLASSLogger
log | used for the log. |
Reactor::Reactor | ( | CLASSLogger * | log, |
CLASSBackEnd * | backend, | ||
cSecond | creationtime, | ||
cSecond | lifetime, | ||
double | Power, | ||
double | HMMass, | ||
double | CapacityFactor = 1 |
||
) |
Special Constructor for reprocessed fuel using cycletime and Burn-Up.
Make a new reactor
log | used for the log, |
backend | CLASSBackend which get the fuel after the cooling, |
creationtime | creation time in [s], |
lifetime | working time duration in [s], |
Power | Thermal power of the reactor in [W], |
HMMass | Mass of Heavy Metal in the Reactor in [t] of heavy metal, |
CapacityFactor | effective charge of the reactor, fraction between 0 & 1. |
Reactor::Reactor | ( | CLASSLogger * | log, |
FabricationPlant * | fabricationplant, | ||
CLASSBackEnd * | backend, | ||
cSecond | creationtime, | ||
cSecond | lifetime, | ||
double | Power, | ||
double | HMMass, | ||
double | CapacityFactor = 1 |
||
) |
Special Constructor for reprocessed fuel using cycletime and Burn-Up.
Make a new reactor
log | used for the log. |
backend | CLASSBackend which get the fuel after the cooling, |
creationtime | creation time in [s], |
lifetime | working time duration in [s], |
cycletime | duration of a cycle in [s], |
Power | Thermal power of the reactor in [W], |
HMMass | Mass of Heavy Metal in the Reactor in [t] of heavy metal, |
CapacityFactor | effective charge of the reactor, fraction between 0 & 1. |
Reactor::Reactor | ( | CLASSLogger * | log, |
PhysicsModels * | fueltypeDB, | ||
FabricationPlant * | fabricationplant, | ||
CLASSBackEnd * | Pool, | ||
cSecond | creationtime, | ||
cSecond | lifetime, | ||
cSecond | cycletime, | ||
double | HMMass, | ||
double | BurnUp | ||
) |
Special Constructor for reprocessed fuel using cycletime and Burn-Up.
Make a new reactor
log | used for the log, |
fueltypeDB | Databank describing the evolution of the fuel; |
backend | CLASSBackend which get the fuel after the cooling, |
creationtime | creation time in [s], |
lifetime | working time duration in [s], |
cycletime | duration of a cycle in [s], |
HMMass | Mass of Heavy Metal in the Reactor in [t] of heavy metal, |
BurnUp | Burnup reach by the fuel at the end of the cycle in [GWd/t]. |
Reactor::Reactor | ( | CLASSLogger * | log, |
PhysicsModels * | fueltypeDB, | ||
FabricationPlant * | fabricationplant, | ||
CLASSBackEnd * | backend, | ||
cSecond | creationtime, | ||
cSecond | lifetime, | ||
double | Power, | ||
double | HMMass, | ||
double | BurnUp, | ||
double | CapacityFactor | ||
) |
Special Constructor for reprocessed fuel using Power and Burn-Up.
Make a new reactor
log | used for the log, |
fueltypeDB | Databank describing the evolution of the fuel, |
backend | CLASSBackend which get the fuel after the cooling, |
creationtime | creation time in [s], |
lifetime | working time duration in [s], |
Power | Thermal power of the reactor in [W], |
HMMass | Mass of Heavy Metal in the Reactor in [t] of heavy metal, |
BurnUp | Burnup reach by the fuel at the end of the cycle in [GWd/t], |
CapacityFactor | effective charge of the reactor, fraction between 0 & 1. |
Reactor::Reactor | ( | CLASSLogger * | log, |
EvolutionData * | evolutivedb, | ||
CLASSBackEnd * | backend, | ||
cSecond | creationtime, | ||
cSecond | lifetime, | ||
double | power, | ||
double | HMMass, | ||
double | BurnUp, | ||
double | CapacityFactor | ||
) |
Special Constructor for fixed fuel using Power and Burn-Up.
Make a new reactor
log | used for the log, |
evolutivedb | EvolutionData describing the evolution of the fuel, |
backend | CLASSBackend which get the fuel after the cooling, |
creationtime | creation time in [s], |
lifetime | working time duration in [s], |
Power | Thermal power of the reactor in [W], |
HMMass | Mass of Heavy Metal in the Reactor in [t] of heavy metal, |
BurnUp | Burnup reach by the fuel at the end of the cycle in [GWd/t], |
CapacityFactor | effective charge of the reactor, fraction between 0 & 1. |
Reactor::Reactor | ( | CLASSLogger * | log, |
EvolutionData * | evolutivedb, | ||
CLASSBackEnd * | backend, | ||
cSecond | creationtime, | ||
cSecond | lifetime, | ||
cSecond | cycletime, | ||
double | HMMass, | ||
double | BurnUp | ||
) |
Special Constructor for fixed fuel using Power and Burn-Up.
Make a new reactor
log | used for the log, |
evolutivedb | EvolutionData describing the evolution of the fuel, |
backend | CLASSBackend which get the fuel after the cooling, |
creationtime | creation time in [s], |
lifetime | working time duration in [s] |
Power | Thermal power of the reactor in [W], |
HMMass | Mass of Heavy Metal in the Reactor in [t] of heavy metal, |
BurnUp | Burnup reach by the fuel at the end of the cycle in [GWd/t], |
Reactor::~Reactor | ( | ) |
Normal Destructor.
|
inline |
Change the Model and/or BurnUp and/or Power and/or HMMass from time time.
HMMass | Add A new schedule entry |
|
inline |
Change the Model and/or BurnUp and/or Power and/or HMMass from time time.
|
inline |
Change the Model and/or BurnUp and/or Power and/or HMMass from time time.
void Reactor::CheckListConsistency | ( | PhysicsModels * | fueltypeDB, |
FabricationPlant * | fabricationplant | ||
) |
Check if FP/EqM lists are identical.
|
protected |
|
virtual |
Write modification (IV In/Out, filling the TF...)
Reimplemented from CLASSFacility.
|
virtual |
Performs the Evolution until time t.
Implements CLASSFacility.
|
inline |
Return the Burn Up of the Fuel at the end of the cycle.
|
inline |
Return the capacity factor of the reactor.
|
inline |
Return the Evolution database of the fuel.
|
inline |
Return the pointer to the FabricationPlant.
|
inline |
Return the HeavyMetal Mass in the Core at the begining of the cycle.
|
inline |
(Note : IVBegin != IVIn, only if using ReactorScheduler)
Return the Starting Cycle IV
|
inline |
(Note : IVIn != IVBegin, only if using ReactorScheduler)
Return the In Cycle IV
|
inline |
Return the Out Cycle IV.
|
inline |
Return the IV contain in the Reactor.
|
inline |
Return the pointer to Associeted BackEnd Facility.
|
inline |
Return the cycle time of the Reactor.
|
inline |
Get Reactor theoritical HMMass Evolution following Scheduler.
|
inline |
Get Reactor theoritical Power evolution following Scheduler.
|
inline |
return the ReactorScheduler
|
inline |
True if using fixed fuel, False otherwise.
void Reactor::SetBurnUp | ( | double | BU | ) |
Set the burnUp reach at end of cycle (Power cte)
void Reactor::SetCycleTime | ( | double | cycletime | ) |
Set the cycle time (Power fixed)
void Reactor::SetEvolutionDB | ( | EvolutionData | evolutionDB | ) |
Set the pointer to the DB evolution of the Reactor.
|
inline |
Set the Pointer to the FabricationPlant.
|
inline |
Set the heavy metal mass in the core at the begining of the cycle.
|
inline |
Set the IV at the beginging of the Reactor cycle.
|
inline |
Set the IV coming In at the beginning of the cycle.
|
inline |
Set the IV Going out at the end of the cycle.
|
inline |
Set the IV inside the Reactor core.
void Reactor::SetNewFuel | ( | EvolutionData | ivdb | ) |
Change the Evolutive DB of the Reactor.
|
inline |
Return the pointer to OutBackEnd Facility.
void Reactor::SetPower | ( | double | Power | ) |
Set the power (burnup cte)
|
inline |
Set the ReactorScheduler.
|
protected |
In GWd/tHM.
|
protected |
Capacity factor [0-1].
|
protected |
ElectrocPower (in Watt)
|
protected |
ElectrocPower (in Watt)
|
protected |
Pointer to the actual evolution DataBase.
|
protected |
Pointer to the FabricationPlant.
|
protected |
true if the fuel is fixed (not reprocessed)
|
protected |
In tons.
|
protected |
true if a storage has been define (to approximate the reprocessing using fixed fuel)
|
protected |
Fuel IV at the beginning of a cycle.
|
protected |
IVBegin add at the beginning of the cycle.
|
protected |
IV wich get out at the end of a cycle.
|
protected |
Pointer to the BackEnd Facility which collect the spend fuel.
|
protected |
Power (in Watt)
|
protected |
Pointer to the ReactorScheduler.
|
protected |
Evolution Of theoritical Reactor HMMass following Scheduler.
|
protected |
Evolution Of theoritical Reactor Power following Scheduler.
|
protected |
Pointer to the Stock (only for reprocessing fuel in fixed base...)