MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
ThermalCoupling.hxx
Go to the documentation of this file.
1 #ifndef _THERMAL_
2 #define _THERMAL_
3 
9 #include "MureHeaders.hxx"
10 #include <vector>
11 
13 
27 {
28  public :
35  int NumberOfLevels,
36  int ZoneNumber=0,
37  int IterationNumber=0
38  );
40  void Run();
41 
42 
43 
49  void SetRodRadius(double RodRadius) {fFuelRadius=RodRadius;}
50  void SetInnerRodRadius(double InnerRodRadius) {fInnerFuelRadius=InnerRodRadius;}
51  void SetCladRadius(double CladRadius) {fCladRadius=CladRadius;}
52  void SetCellsHeight(double ElementaryCellHeight) {fCellHeight=ElementaryCellHeight;}
53  void SetCellsSurface(double ElementaryCellSurface) {fCellSurface=ElementaryCellSurface;}
54  void SetEnterCoolantTemp(double EnterCoolantTemp) {fCoolantEnterTemp.push_back(EnterCoolantTemp);}
55  void SetCoolantType(string Coolant) {fCoolant=Coolant;}
56  void SetFuelType(string Fuel) {fFuel=Fuel;}
57  void SetCladdingType(string Cladding) {fCladding=Cladding;}
58  void SetRodAveragePower(double Power) {fRodAveragePower=Power;}
59  void SetMassSpeed(double MassSpeed) {fMassSpeed=MassSpeed;}
60  void SetHexLattice() {fHexLattice=true;}
61  void SetFuelPorosity(double FuelPorosity){fFuelPorosity=FuelPorosity;}
65 
66 
67 
68  protected :
69  void CheckConsistent();
70  void GetAllCells();
71  void LoadingData();
74  void PrintPowerResults();
75  void FluidHeating();
77  void Convection();
78  void CladConduction();
79  void ThermalRadiation(); // Resolves Thermal radiation phenomena between cladding and fuel
80  void FuelConduction();
81  void PressureLosses();
82  void PrintThermalResults();
83  void CloseFiles();
85  void ForcedDestroy();
86  //double Dittus(double,double,double); //!< The Dittus-Boelter equation to calculate the heat transfer coefficient
87 
88  private :
89  int fi;
90  int fLevels;
92  double fFuelRadius;
94  double fCladRadius;
95  double fGazSpace;
96  double fCellHeight;
97  double fCellSurface;
98  string fCoolant;
99  string fFuel;
100  string fCladding;
101  double fMassSpeed;
103 
106  bool fHexLattice;
109  double fHGap;
110  double fFuelPorosity;
112  double fDh;
113  vector<double> fCp;
114  vector<double> fVis;
115  vector<double> fk;
116  vector<double> fFuelk;
117  vector<double> fPr;
118  vector<double> fRe;
119  vector<double> fNu;
120  vector<double> fCoolantEnterTemp;
121  vector<double> fCoolantExitTemp;
122  vector<double> fPower;
123  vector<double> fPowerDensities;
124  vector<double> fFuelTemps;
125  vector<double> fFuelTp;
126  vector<double> fFuelTi;
127  vector<double> fCladdingTemps;
128  vector<double> fCladdingTp;
129  vector<double> fCladdingTi;
130  vector<double> fCoolantTemps;
131  vector<double> fCoolantEntryTemps;
132  vector<double> fCoolantExitTemps;
133  vector<double> fCoolantDensities;
134  vector<double> fParietalStream;
135  vector<double> fPressureLosses;
136 
137  vector<Cell*> fFuelCells;
138  vector<Cell*> fCladdingCells;
139  vector<Cell*> fCoolantCells;
140 
141  vector<ofstream*> fFiles;
142  vector<ofstream*> fFuelOuter;
143  vector<ofstream*> fFuelInner;
144  vector<ofstream*> fCoolantDensity;
145 
147 };
148 
149 #endif
void SetMassSpeed(double MassSpeed)
Mass speed kg/m2s
Definition: ThermalCoupling.hxx:59
vector< ofstream * > fCoolantDensity
Generates output files for coolant density.
Definition: ThermalCoupling.hxx:144
vector< double > fPr
Prandtl Numbers of each coolant cell.
Definition: ThermalCoupling.hxx:117
vector< double > fCoolantExitTemp
Coolant exit temperature in cells.
Definition: ThermalCoupling.hxx:121
vector< Cell * > fCoolantCells
Coolants cells implicated in the calculation.
Definition: ThermalCoupling.hxx:139
vector< double > fPowerDensities
Power densities of each fuel cell [W/m3].
Definition: ThermalCoupling.hxx:123
vector< double > fFuelTi
Interior Temperature of fuel cells.
Definition: ThermalCoupling.hxx:126
vector< double > fCoolantTemps
Average temperatures of coolant cells.
Definition: ThermalCoupling.hxx:130
void SetCellsSurface(double ElementaryCellSurface)
Sets the total surface of the elementary cell (coolant+cladding+fuel)
Definition: ThermalCoupling.hxx:53
void FluidHeating()
Calculates the warm-up of the fluid.
Definition: ThermalCoupling.cxx:253
void SetHeatExchangeCoeffOfGap(double Hgap)
Fix the heat exchange coefficient inside the gap space (W/m2/K)
Definition: ThermalCoupling.hxx:64
vector< double > fVis
Viscosities values of each coolant cell [Pa*s].
Definition: ThermalCoupling.hxx:114
vector< double > fCp
Heat capacity value of each coolant cell [J/kg.K].
Definition: ThermalCoupling.hxx:113
void CladConduction()
Resolves Fourier equation of conduction in the claddind.
Definition: ThermalCoupling.cxx:390
int fRadialZone
Radial zone number.
Definition: ThermalCoupling.hxx:91
vector< Cell * > fCladdingCells
Claddings cells implicated in the calculation.
Definition: ThermalCoupling.hxx:138
vector< Cell * > fFuelCells
Fuel cells implicated in the calculation.
Definition: ThermalCoupling.hxx:137
string fCladding
Name of the cladding (zircaloy, steel, ...)
Definition: ThermalCoupling.hxx:100
vector< double > fPressureLosses
Losses of pressure.
Definition: ThermalCoupling.hxx:135
bool fHexLattice
Used for flow area calculation.
Definition: ThermalCoupling.hxx:106
vector< double > fCladdingTemps
Temperatures of cladding cells.
Definition: ThermalCoupling.hxx:127
void Run()
start the calculation
Definition: ThermalCoupling.cxx:48
double fHGap
Value of the heat exchange coefficient inside the gap (W/m2/K)
Definition: ThermalCoupling.hxx:109
vector< double > fCoolantEnterTemp
Coolant entrance temperature in cells.
Definition: ThermalCoupling.hxx:120
vector< double > fCoolantExitTemps
Temperatures of exit in coolant cells.
Definition: ThermalCoupling.hxx:132
void SetFuelPorosity(double FuelPorosity)
sets fuel porosity to be given to ThermalDataReader for density correction
Definition: ThermalCoupling.hxx:61
double fPassageSurface
Surface of passage (surface of coolant in an under shannel)
Definition: ThermalCoupling.hxx:111
double fInnerFuelRadius
Inner Radius of fuel rod cylinder (annular pellet)
Definition: ThermalCoupling.hxx:93
void SetRodAveragePower(double Power)
Sets the average power of ONE rod (Watt)
Definition: ThermalCoupling.hxx:58
void SetCellsHeight(double ElementaryCellHeight)
Sets height of cells (the same for each one)
Definition: ThermalCoupling.hxx:52
vector< double > fFuelk
Thermal conductivities values of each fuel cell [W/(m.K)].
Definition: ThermalCoupling.hxx:116
void GetAllCells()
Gets fuel, cladding and coolants cells.
Definition: ThermalCoupling.cxx:113
int fLevels
Number of axial levels.
Definition: ThermalCoupling.hxx:90
double fCellHeight
Height of each cell cylinder.
Definition: ThermalCoupling.hxx:96
vector< ofstream * > fFuelOuter
Generates output files for outer pellet temperature.
Definition: ThermalCoupling.hxx:142
double fFuelRadius
Radius of fuel rod cylinder (= radius of cladding internal crown)
Definition: ThermalCoupling.hxx:92
File including all headers.
void ThermalRadiation()
Definition: ThermalCoupling.cxx:440
vector< double > fPower
Power deposited in each fuel cell [W].
Definition: ThermalCoupling.hxx:122
double fCladRadius
Radius of exterior cylinder (cladding radius)
Definition: ThermalCoupling.hxx:94
void PrintThermalResults()
Prints radial thermal results for each cell.
Definition: ThermalCoupling.cxx:349
vector< double > fNu
Nusselt Numbers of each coolant cell.
Definition: ThermalCoupling.hxx:119
~ThermalCoupling()
Delete standard.
Definition: ThermalCoupling.cxx:43
double fDeltaTempOfGazSpace
Value of temperature difference between cladding and fuel inside the gaz space (given by user) ...
Definition: ThermalCoupling.hxx:108
vector< double > fFuelTp
Parietal Temperature of fuel cells.
Definition: ThermalCoupling.hxx:125
double fDh
Hydraulic diameter (4*S/P)
Definition: ThermalCoupling.hxx:112
void SetCladRadius(double CladRadius)
Sets cladding radius.
Definition: ThermalCoupling.hxx:51
void SetInnerRodRadius(double InnerRodRadius)
Sets fuel pellet inner radius (annular pellet)
Definition: ThermalCoupling.hxx:50
bool fHeatTransferGazSpace
Used for a heat transfer exchange inside the gaz space.
Definition: ThermalCoupling.hxx:107
double fMassSpeed
Mass speed that verifies the conservation of the mass (rho*V=cte=fMassSpeed in kg/m2s) ...
Definition: ThermalCoupling.hxx:101
vector< double > fCladdingTp
Parietal Temperature of cladding cells.
Definition: ThermalCoupling.hxx:128
vector< double > fParietalStream
Parietal Stream see by each cell [W/m2].
Definition: ThermalCoupling.hxx:134
void SetHexLattice()
Information of hexagonal lattice (used for flow area calculation)
Definition: ThermalCoupling.hxx:60
void CalculateCosinusPowerDeposits()
Calculates each power density with a cosine distribution.
Definition: ThermalCoupling.cxx:197
bool fCosinePower
default value = false ; if true : power deposits type cosinus
Definition: ThermalCoupling.hxx:104
double fGazSpace
Void space between fuel rod and cladding : Fission Products space.
Definition: ThermalCoupling.hxx:95
void FuelConduction()
Resolves Fourier equation of conduction in the fuel.
Definition: ThermalCoupling.cxx:476
void SetCladdingType(string Cladding)
Sets cladding type by giving its name.
Definition: ThermalCoupling.hxx:57
vector< double > fk
Thermal conductivities values of each coolant cell [W/(m.K)].
Definition: ThermalCoupling.hxx:115
void SetDeltaTempOfGazSpace(double DeltaTemp)
Fix an arbitrary value of the temperature difference inside the gaz space.
Definition: ThermalCoupling.hxx:63
string fCoolant
Name of the coolant (h2o, d2o, sodium, ...)
Definition: ThermalCoupling.hxx:98
vector< double > fCoolantDensities
Densities of coolant cells.
Definition: ThermalCoupling.hxx:133
void PressureLosses()
Calculates losses of pressure due to linear phenomena (no consideration of the term due to the peculi...
Definition: ThermalCoupling.cxx:521
vector< ofstream * > fFuelInner
Generates output files for inner pellet temperature.
Definition: ThermalCoupling.hxx:143
void SetCosinePowerDeposits()
Allows a calculation without real coupling -&gt; cosinus distribution deposits.
Definition: ThermalCoupling.hxx:48
void PrintPowerResults()
Prints results of power deposits.
Definition: ThermalCoupling.cxx:225
void SetFuelType(string Fuel)
Sets fuel type by giving its name.
Definition: ThermalCoupling.hxx:56
void SetEnterCoolantTemp(double EnterCoolantTemp)
Sets the entrance coolant temperature (K)
Definition: ThermalCoupling.hxx:54
void CheckConsistent()
Checks the consistent with all data.
Definition: ThermalCoupling.cxx:83
This object reads thermodynamics values of fluids that are stored in files stored in MURE/thermal_dat...
Definition: ThermalDataReader.hxx:25
vector< double > fRe
Reynolds Numbers of each coolant cell.
Definition: ThermalCoupling.hxx:118
void DimensionlessNumbersCalculation()
Calculate the dimensionless numbers (Re, Nu)
Definition: ThermalCoupling.cxx:316
void SetCoolantType(string Coolant)
Sets coolant type by giving its name.
Definition: ThermalCoupling.hxx:55
void CalculateHeatTransferInGazSpace()
Force a calculation of the heat transfers in the gaz space.
Definition: ThermalCoupling.hxx:62
double fFuelPorosity
default value = 0 ; if set 0 &lt; &lt; 1 by user, will be given to ThermalDataReader for density correction...
Definition: ThermalCoupling.hxx:110
This object performs the variation of temperature in a given region for a specific system...
Definition: ThermalCoupling.hxx:26
ThermalDataReader * fThermalData
Definition: ThermalCoupling.hxx:146
void LoadingData()
Update of each cell data of the previous step (temperature, densities, ...)
Definition: ThermalCoupling.cxx:151
void Convection()
Calculates the convective heat transfert between rod and coolant.
Definition: ThermalCoupling.cxx:339
double fRodAveragePower
Rod average power (W)
Definition: ThermalCoupling.hxx:102
void UploadingOfNewProperties()
Updates news properties of cells and materials.
Definition: ThermalCoupling.cxx:549
vector< ofstream * > fFiles
Generates output files for thermal data (Axial averages and radial distribution in cells...
Definition: ThermalCoupling.hxx:141
double fCellSurface
Surface of the cell (coolant+cladd+fuel)
Definition: ThermalCoupling.hxx:97
void CalculateRodPowerDeposits()
Calculate power densities of each fuel cell in a SINGLE rod.
Definition: ThermalCoupling.cxx:162
ThermalCoupling(int NumberOfLevels, int ZoneNumber=0, int IterationNumber=0)
Default constructor.
Definition: ThermalCoupling.cxx:6
string fFuel
Name of the fuel (uox, mox, thpu, ...)
Definition: ThermalCoupling.hxx:99
void CloseFiles()
Closes output files created.
Definition: ThermalCoupling.cxx:543
vector< double > fCoolantEntryTemps
Temperatures of entrance in coolant cells.
Definition: ThermalCoupling.hxx:131
void SetRodRadius(double RodRadius)
Sets fuel pellet radius.
Definition: ThermalCoupling.hxx:49
vector< double > fCladdingTi
Interior Temperature of cladding cells.
Definition: ThermalCoupling.hxx:129
int fi
Iteration step number.
Definition: ThermalCoupling.hxx:89
void ForcedDestroy()
Explicit destruction of this thermalcoupling object.
Definition: ThermalCoupling.cxx:592
vector< double > fFuelTemps
Temperatures of fuel cells.
Definition: ThermalCoupling.hxx:124
bool fSigmaPhiUpdated
Used to check if the update of sigma phi is already done.
Definition: ThermalCoupling.hxx:105

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