MURE
Loading...
Searching...
No Matches
VoidCoefCalculator.hxx
Go to the documentation of this file.
1/*
2 This file is part of MURE,
3 Copyright (C) 2007-2021 MURE developers.
4
5 MURE is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 MURE is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with MURE. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef _VCCALC_
20#define _VCCALC_
21
27#include <vector>
28#include <string>
29
30#include "Cell.hxx"
31
32class Cell;
33
35
44{
45 public :
46 VoidCoefCalculator(int Nvalues = 10, int Nparticules = 2000, int NActivesCycles = 100, int NInactivesCycles = 30, float KeffEstimator = 1.0);
48 void Run();
49 void PrintResults(string FileName);
50 void SetTempFileName(string FileName)
51 {
52 fTempFileName = FileName;
53 }
54 void CalculateVolumes();
55
56
57 private :
58 void CalculateFractions();
59 void CountModeratorCells();
60 void PrintAllMaterials();
61
62 protected :
69 vector < double > fFractions;
70 vector < double > fKeffValues;
71 vector < double > fKeffErrors;
72 vector < double > fReactivitiesValues;
73 vector < double > fDensitiesValues;
74 vector < double > fVoidCoeffValues;
75 vector < double > fRapportValues;
76
77
78 vector < double > fVolumes;
79 vector < Cell *> fModeratorCells;
81
82};
83
84#endif
Header file for Cell class.
A Cell is composed from a Shape and a Material.
Definition Cell.hxx:84
Void coefficient calculations for a general system.
Definition VoidCoefCalculator.hxx:44
int fModeratorCounter
Number of moderator cells.
Definition VoidCoefCalculator.hxx:80
int fNActivesCycles
Number of actives cycles.
Definition VoidCoefCalculator.hxx:65
vector< double > fVolumes
Volume of moderators' cells.
Definition VoidCoefCalculator.hxx:78
vector< double > fFractions
Moderator void fractions between 1 and 0 (1 = full density)
Definition VoidCoefCalculator.hxx:69
vector< double > fKeffErrors
Output values of MCNP Keff statistical errors.
Definition VoidCoefCalculator.hxx:71
int fNvalues
Number of MCNP calculations.
Definition VoidCoefCalculator.hxx:63
int fNparticules
Number of particles.
Definition VoidCoefCalculator.hxx:64
void CountModeratorCells()
Count the cells that are intersting to us.
Definition VoidCoefCalculator.cxx:97
void Run()
launch the calculation
Definition VoidCoefCalculator.cxx:219
void CalculateVolumes()
Calculate moderators' volumes necessary for the average density.
Definition VoidCoefCalculator.cxx:159
vector< double > fReactivitiesValues
Output values of reactivity.
Definition VoidCoefCalculator.hxx:72
string fTempFileName
The name of MCNP tempory file name.
Definition VoidCoefCalculator.hxx:68
vector< double > fRapportValues
Output values of kinf(i)/kinf(nominal)
Definition VoidCoefCalculator.hxx:75
int fNInactivesCycles
Number of inactives cycles.
Definition VoidCoefCalculator.hxx:66
void PrintResults(string FileName)
Print results to a file.
Definition VoidCoefCalculator.cxx:125
vector< double > fDensitiesValues
Output values of various densities.
Definition VoidCoefCalculator.hxx:73
vector< double > fVoidCoeffValues
Output values of void coefficient.
Definition VoidCoefCalculator.hxx:74
vector< Cell * > fModeratorCells
The cells implicated in our calcul.
Definition VoidCoefCalculator.hxx:79
void CalculateFractions()
Calculate the void fractions vector from fNvalues given.
Definition VoidCoefCalculator.cxx:58
float fKeffEstimator
Expected Keff.
Definition VoidCoefCalculator.hxx:67
~VoidCoefCalculator()
Destructor.
void SetTempFileName(string FileName)
Definition VoidCoefCalculator.hxx:50
void PrintAllMaterials()
Count the cells that are intersting to us.
Definition VoidCoefCalculator.cxx:69
vector< double > fKeffValues
Output values of MCNP criticality calculations.
Definition VoidCoefCalculator.hxx:70

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024