This object reads thermodynamics values of fluids that are stored in files stored in MURE/thermal_data/. More...
#include <ThermalDataReader.hxx>
Public Member Functions | |
Constructor & destructor | |
ThermalDataReader (string Coolant, string Fuel, double FuelPorosity=0) | |
Default constructor. More... | |
~ThermalDataReader () | |
Delete standard. More... | |
Finding thermodynamics values of coolant, function of temperature | |
double | GetRho (double Temperature) |
Gets density. More... | |
double | GetCp (double Temperature) |
double | GetK (double Temperature) |
Gets thermal conductivity. More... | |
double | GetVis (double Temperature) |
Gets viscosity. More... | |
Finding thermodynamics values of fuel, function of temperature | |
double | GetFuelRho (double Temperature) |
Gets density. More... | |
double | GetFuelK (double Temperature) |
Gets thermal conductivity. More... | |
Protected Attributes | |
string | fThermalDataDirectoryName |
Name of Coolant data directory (where are all thermodynamics values) More... | |
vector< double > | fDensityDataT |
Temperatures corresponding to densities values. More... | |
vector< double > | fDensityDataV |
Densities values for each temperature (kg/m3) More... | |
vector< double > | fHeatCapacityDataT |
Temperatures corresponding to heat capacities values. More... | |
vector< double > | fHeatCapacityDataV |
Heat capacities values for each temperature (J/kg.K) More... | |
vector< double > | fThermalConductivityDataT |
Temperatures corresponding to heat capacities values. More... | |
vector< double > | fThermalConductivityDataV |
Heat capacities values for each temperature (W/m.K) More... | |
vector< double > | fViscosityDataT |
Temperatures corresponding to viscosities values. More... | |
vector< double > | fViscosityDataV |
Viscosities values for each temperature (Pa.s) More... | |
string | fFuelThermalDataDirectoryName |
Name of Fuel data directory (where are all thermodynamics values) More... | |
vector< double > | fFuelDensityDataT |
Temperatures corresponding to densities values. More... | |
vector< double > | fFuelDensityDataV |
Densities values for each temperature (kg/m3) More... | |
vector< double > | fFuelThermalConductivityDataT |
Temperatures corresponding to heat capacities values. More... | |
vector< double > | fFuelThermalConductivityDataV |
Heat capacities values for each temperature (W/m.K) More... | |
double | fFuelPorosity |
Fuel porosity (0 by default, for theoretical density values of thermal_data) More... | |
Private Member Functions | |
Miscellaneous methods | |
string | GetThermalDATADIR () |
returns directory of thermodynamics values files location More... | |
void | SetThermalDATADIR (string THD) |
sets directory of thermodynamics values files location More... | |
void | LoadCoolantThermalData () |
generates vectors containing thermodynamics values of coolant More... | |
void | LoadFuelThermalData () |
generates vectors containing thermodynamics values of fuel More... | |
double | FindBin (int NumberOfElements, vector< double > VectorX, vector< double > VectorY, double Temperature) |
find in a 2 dimensionnal tab (here 2 vectors) the nearest temperature value More... | |
double | CubicSpline (double X, double y0, double y1, double y2, double y3) |
performs a cubic spline interpolation to calculate the exact value More... | |
This object reads thermodynamics values of fluids that are stored in files stored in MURE/thermal_data/.
example : case of heat capacity of light water In the h2o directory a file heatcapacity.dat is created with two columns In the first one are the temperatures In the second one are the heat capacities values for each temperature All this values do not depend of pressure : only liquid phase is computed Data tables stored do not need to be fine discretized : a cubic spline interpolation is implemented to check out values.
ThermalDataReader::ThermalDataReader | ( | string | Coolant, |
string | Fuel, | ||
double | FuelPorosity = 0 |
||
) |
Default constructor.
Coolant | Coolant identification name (ex : water) |
Fuel | Fuel identification name (ex : uo2) |
FuelPorosity | the porosity of the fuel |
ThermalDataReader::~ThermalDataReader | ( | ) |
Delete standard.
|
private |
performs a cubic spline interpolation to calculate the exact value
|
private |
find in a 2 dimensionnal tab (here 2 vectors) the nearest temperature value
double ThermalDataReader::GetCp | ( | double | Temperature | ) |
double ThermalDataReader::GetFuelK | ( | double | Temperature | ) |
Gets thermal conductivity.
double ThermalDataReader::GetFuelRho | ( | double | Temperature | ) |
Gets density.
double ThermalDataReader::GetK | ( | double | Temperature | ) |
Gets thermal conductivity.
double ThermalDataReader::GetRho | ( | double | Temperature | ) |
Gets density.
|
inlineprivate |
returns directory of thermodynamics values files location
double ThermalDataReader::GetVis | ( | double | Temperature | ) |
Gets viscosity.
|
private |
generates vectors containing thermodynamics values of coolant
|
private |
generates vectors containing thermodynamics values of fuel
|
inlineprivate |
sets directory of thermodynamics values files location
|
protected |
Temperatures corresponding to densities values.
|
protected |
Densities values for each temperature (kg/m3)
|
protected |
Temperatures corresponding to densities values.
|
protected |
Densities values for each temperature (kg/m3)
|
protected |
Fuel porosity (0 by default, for theoretical density values of thermal_data)
|
protected |
Temperatures corresponding to heat capacities values.
|
protected |
Heat capacities values for each temperature (W/m.K)
|
protected |
Name of Fuel data directory (where are all thermodynamics values)
|
protected |
Temperatures corresponding to heat capacities values.
|
protected |
Heat capacities values for each temperature (J/kg.K)
|
protected |
Temperatures corresponding to heat capacities values.
|
protected |
Heat capacities values for each temperature (W/m.K)
|
protected |
Name of Coolant data directory (where are all thermodynamics values)
|
protected |
Temperatures corresponding to viscosities values.
|
protected |
Viscosities values for each temperature (Pa.s)