MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
PoisonEvolutionControl.hxx
Go to the documentation of this file.
1 #ifndef _POISONEVOLUTIONCONTROL_HXX_
2 #define _POISONEVOLUTIONCONTROL_HXX_
3 
9 #include <fstream>
10 #include <iostream>
11 #include <sstream>
12 #include <vector>
13 #include <string>
14 #include "MureHeaders.hxx"
15 using namespace std;
16 //________________________________________________________________________
17 //
18 // PoisonEvolutionControl
20 //________________________________________________________________________
21 
23 {
24  public:
26 
32  virtual PoisonEvolutionControl* Clone(){return new PoisonEvolutionControl(*this);}
33 
35 
36  virtual void ControlAtEachMCNPStep();
37  virtual void ControlAtEachRKStep();
38 
39  virtual void ControlAfterEndOfRKIntegration();
40 
41  virtual void FindNextPoisonProportion();
42 
43  virtual void ExtrapolateRates();
44 
45  virtual void WriteControlParameters();
46 
47  void SetConstantPoisonDecrease(bool flag=true){fConstantPoisonDecrease=flag;}
48  bool GetConstantPoisonDecrease(){return fConstantPoisonDecrease;}
49 
50  void SetPoisonDecreasePerUnitTime(double x){fPoisonDecreasePerUnitTime=x;}
51  double GetPoisonDecreasePerUnitTime(){return fPoisonDecreasePerUnitTime;}
52 
54  void WriteCurrentRates();
55 
56  protected:
57 
58  void InitVector();
59 
60  vector<double> fMCNPPoisonAbs;
61  vector<double> fMCNPDeltaPoisonAbs;
64 
65  vector<double> fNextPoisonProportion;
66  vector<double> fInitialPoisonProportion;
69 };
70 
71 #endif
vector< double > fNextPoisonProportion
Definition: PoisonEvolutionControl.hxx:65
void AddControlReaction(Reaction r)
Definition: ControlMaterial.cxx:102
void SetPoisonDecreasePerUnitTime(double x)
the value of the decrease
Definition: PoisonEvolutionControl.hxx:50
virtual PoisonEvolutionControl * Clone()
Correct way to copy a PoisonEvolutionControl in case of derivation.
Definition: PoisonEvolutionControl.hxx:32
double GetPoisonDecreasePerUnitTime()
the value of the decrease
Definition: PoisonEvolutionControl.hxx:51
bool fConstantPoisonDecrease
wether or not a constant decrease of Poison concentration is wanted
Definition: PoisonEvolutionControl.hxx:67
virtual ~PoisonEvolutionControl()
destructor
Definition: PoisonEvolutionControl.hxx:34
double fFitPoisonAbsIntercept
intersept of linear fit of the poison absorption rate.
Definition: PoisonEvolutionControl.hxx:63
vector< double > fMCNPDeltaPoisonAbs
vector of last MCNP run&#39;s global poison absorption rate error
Definition: PoisonEvolutionControl.hxx:61
vector< double > fInitialPoisonProportion
Definition: PoisonEvolutionControl.hxx:66
void SetConstantPoisonDecrease(bool flag=true)
Impose a constant decrease of Poison concentration.
Definition: PoisonEvolutionControl.hxx:47
A ControlMaterial.
Definition: ControlMaterial.hxx:30
bool GetConstantPoisonDecrease()
wether or not a constant decrease of Poison concentration is wanted
Definition: PoisonEvolutionControl.hxx:48
File including all headers.
void AddReactions(ControlMaterial *M)
defined important reaction for the control (here, total absorpstion)
Definition: PoisonEvolutionControl.hxx:53
double fFitPoisonAbsSlope
slope of linear fit of the poison absorption rate.
Definition: PoisonEvolutionControl.hxx:62
EvolutionControl descendant for controlling evolution via absorption of control (poison) material...
Definition: PoisonEvolutionControl.hxx:22
vector< double > fMCNPPoisonAbs
vector of last MCNP run&#39;s global poison absorption rate.
Definition: PoisonEvolutionControl.hxx:60
double fPoisonDecreasePerUnitTime
the value of the decrease
Definition: PoisonEvolutionControl.hxx:68
EvolutionControl allows interactions with the evolution.
Definition: EvolutionControl.hxx:35

MURE Project, documentation generated by Doxygen 1.8.5 - Mon Nov 17 2014