1 #ifndef _EvolutiveSystem_
2 #define _EvolutiveSystem_
61 void TransmogrifyMaterial();
69 void PredictorTransmogrifyMaterial();
82 void CorrectorTransmogrifyMaterial();
93 void TransmogrifyGroupCell();
98 void PredictorTransmogrifyGroupCell();
103 void CorrectorTransmogrifyGroupCell();
114 void TransmogrifyEvolvingAtoms();
117 void CalculateEvolvingAtoms();
119 double GetEvolvingAtoms(
int i){
if (!fEvolvingAtoms) {CalculateEvolvingAtoms();}
return fEvolvingAtoms[i];}
121 double*
GetEvolvingAtoms(){
if (!fEvolvingAtoms) {CalculateEvolvingAtoms();}
return fEvolvingAtoms;}
149 void RungeKutta(
double t1,
double t2);
158 void BuildEqns(
double t,
double *N,
double *dNdt);
159 void SetMatrixToZero();
160 void LoadTheMatrix(
int index);
169 double GetPower() {CalculatePower();
return fPower;}
174 string PrintEvolvingAtoms();
175 void CalculateNuSigmaFisPhis();
176 void FindIndexMass135();
195 void FindXe135Equilibrium();
199 void CalculatePower();
double fPower
Local Power.
Definition: EvolutiveSystem.hxx:207
double fPowerDensity
Local Power Density.
Definition: EvolutiveSystem.hxx:209
double * fEvolvingAtoms
The evolving atoms copied from Material proportions.
Definition: EvolutiveSystem.hxx:203
A Cell is a MCNP cell.
Definition: Cell.hxx:48
int fIdxXe135
index of Xe-135 in the fEvolvingAtoms array
Definition: EvolutiveSystem.hxx:215
bool IsEvolving()
True if this evolving system really evolve (default)
Definition: EvolutiveSystem.hxx:172
void SetEvolvingAtoms(int i, double proportion)
Sets the ith proportion.
Definition: EvolutiveSystem.hxx:118
void SetMaterial(Material *m)
set the evolving material
Definition: EvolutiveSystem.hxx:133
bool IsTransmogrify()
return true when transmogrification has been done.
Definition: EvolutiveSystem.hxx:122
EvolutiveSystem class carries out evolution.
Definition: EvolutiveSystem.hxx:37
double ** fTheMatrix
The evolution Matrix.
Definition: EvolutiveSystem.hxx:206
double fPowerErr
Error on Local Power.
Definition: EvolutiveSystem.hxx:208
int fIdxI135
index of I-135 in the fEvolvingAtoms array
Definition: EvolutiveSystem.hxx:214
double fMeanFlux
Mean flux=(old+new)/2 to calculate Xe and I135 equilibrium concentration.
Definition: EvolutiveSystem.hxx:219
double fNI135
the new I-135 number of atoms (use only for fNXe135 calculation)
Definition: EvolutiveSystem.hxx:216
double GetPowerDensity()
Calculates and returns the local power density in this evolving cell.
Definition: EvolutiveSystem.hxx:171
Material * GetMaterial()
returns the evolving material
Definition: EvolutiveSystem.hxx:131
void SetCell(Cell *c)
set the evolving cell.
Definition: EvolutiveSystem.hxx:132
Cell * fEvolvingCell
The cell which IS the Evolving System.
Definition: EvolutiveSystem.hxx:202
double ** GetTheMatrix()
return the Evolution Matrix (Bateman equations)
Definition: EvolutiveSystem.hxx:162
void SetEvolvingCompositionSize(int n)
sets composition vector size.
Definition: EvolutiveSystem.hxx:116
double GetPower()
Calculates and returns the local power in this evolving cell.
Definition: EvolutiveSystem.hxx:169
bool fEvolve
Definition: EvolutiveSystem.hxx:211
int fIdxTe135
index of Te-135 in the fEvolvingAtoms array
Definition: EvolutiveSystem.hxx:213
double fOldFlux
Old flux stored.
Definition: EvolutiveSystem.hxx:218
double fNXe135
the new Xe 135 number of atoms
Definition: EvolutiveSystem.hxx:217
A Material constituing a Cell.
Definition: Material.hxx:53
Cell * GetCell()
returns the evolving Cell.
Definition: EvolutiveSystem.hxx:130
double * fPCEvolvingAtoms
The evolving atoms copied from Material proportions for predictor-corrector method.
Definition: EvolutiveSystem.hxx:204
int GetEvolvingCompositionSize()
returns composition vector size.
Definition: EvolutiveSystem.hxx:115
void SetEvolve(bool flag=true)
Set evolve flag to true or false.
Definition: EvolutiveSystem.hxx:173
double GetPowerErr()
Returns the error on local power in this evolving cell (from MCNP SigmaPhi error) must be called afte...
Definition: EvolutiveSystem.hxx:170
Material * fEvolvingMaterial
The Evolving material.
Definition: EvolutiveSystem.hxx:201
void RungeKutta(double *YStart, double t1, double t2)
Runge Kutta calling method.
Definition: DynamicalSystem.cxx:41
DynamicalSystem class solves system of differential equations.
Definition: DynamicalSystem.hxx:34
double * GetEvolvingAtoms()
returns the array
Definition: EvolutiveSystem.hxx:121
void SetTransmogrify(bool flag)
set fAlreadyTransmodrified to flag.
Definition: EvolutiveSystem.hxx:123
double GetEvolvingAtoms(int i)
returns ith atoms.
Definition: EvolutiveSystem.hxx:119
bool fAlreadyTransmodrified
True if transmogrification is done.
Definition: EvolutiveSystem.hxx:210
double fTmin
The lowest value of the decay constant considered.
Definition: EvolutiveSystem.hxx:205
void SetEvolvingAtoms(double *f)
Set the array.
Definition: EvolutiveSystem.hxx:120
double fFirstTNF
value of Tally Normalization factor at the first RK step
Definition: EvolutiveSystem.hxx:220
void SetTheMatrix(double **f)
Set the Evolution Matrix (Bateman equations)
Definition: EvolutiveSystem.hxx:161