This object reads thermodynamics values of fluids that are stored in files stored in MURE/thermal_data/.
More...
#include <ThermalDataReader.hxx>
|
|
| ThermalDataReader (string Coolant, string Fuel, double FuelPorosity=0) |
| Default constructor.
|
|
| ~ThermalDataReader () |
| Delete standard.
|
|
|
double | GetRho (double Temperature) |
| Gets density.
|
|
double | GetCp (double Temperature) |
| Gets heat capacity.
|
|
double | GetK (double Temperature) |
| Gets thermal conductivity.
|
|
double | GetVis (double Temperature) |
| Gets viscosity.
|
|
|
double | GetFuelRho (double Temperature) |
| Gets density.
|
|
double | GetFuelK (double Temperature) |
| Gets thermal conductivity.
|
|
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.
- Author
- Nico*
- Version
- 1.1
◆ ThermalDataReader()
ThermalDataReader::ThermalDataReader |
( |
string |
Coolant, |
|
|
string |
Fuel, |
|
|
double |
FuelPorosity = 0 |
|
) |
| |
Default constructor.
- Parameters
-
Coolant | Coolant identification name (ex : water) |
Fuel | Fuel identification name (ex : uo2) |
FuelPorosity | the porosity of the fuel |
◆ ~ThermalDataReader()
ThermalDataReader::~ThermalDataReader |
( |
| ) |
|
|
default |
◆ CubicSpline()
double ThermalDataReader::CubicSpline |
( |
double |
X, |
|
|
double |
y0, |
|
|
double |
y1, |
|
|
double |
y2, |
|
|
double |
y3 |
|
) |
| |
|
private |
performs a cubic spline interpolation to calculate the exact value
◆ FindBin()
double ThermalDataReader::FindBin |
( |
int |
NumberOfElements, |
|
|
vector< double > |
VectorX, |
|
|
vector< double > |
VectorY, |
|
|
double |
Temperature |
|
) |
| |
|
private |
find in a 2 dimensionnal tab (here 2 vectors) the nearest temperature value
◆ GetCp()
double ThermalDataReader::GetCp |
( |
double |
Temperature | ) |
|
◆ GetFuelK()
double ThermalDataReader::GetFuelK |
( |
double |
Temperature | ) |
|
Gets thermal conductivity.
◆ GetFuelRho()
double ThermalDataReader::GetFuelRho |
( |
double |
Temperature | ) |
|
◆ GetK()
double ThermalDataReader::GetK |
( |
double |
Temperature | ) |
|
Gets thermal conductivity.
◆ GetRho()
double ThermalDataReader::GetRho |
( |
double |
Temperature | ) |
|
◆ GetThermalDATADIR()
string ThermalDataReader::GetThermalDATADIR |
( |
| ) |
|
|
inlineprivate |
< returns directory of thermodynamics values files location
◆ GetVis()
double ThermalDataReader::GetVis |
( |
double |
Temperature | ) |
|
◆ LoadCoolantThermalData()
void ThermalDataReader::LoadCoolantThermalData |
( |
| ) |
|
|
private |
generates vectors containing thermodynamics values of coolant
◆ LoadFuelThermalData()
void ThermalDataReader::LoadFuelThermalData |
( |
| ) |
|
|
private |
generates vectors containing thermodynamics values of fuel
◆ SetThermalDATADIR()
void ThermalDataReader::SetThermalDATADIR |
( |
string |
THD | ) |
|
|
inlineprivate |
< sets directory of thermodynamics values files location
◆ fDensityDataT
vector< double > ThermalDataReader::fDensityDataT |
|
protected |
Temperatures corresponding to densities values.
◆ fDensityDataV
vector< double > ThermalDataReader::fDensityDataV |
|
protected |
Densities values for each temperature (kg/m3)
◆ fFuelDensityDataT
vector< double > ThermalDataReader::fFuelDensityDataT |
|
protected |
Temperatures corresponding to densities values.
◆ fFuelDensityDataV
vector< double > ThermalDataReader::fFuelDensityDataV |
|
protected |
Densities values for each temperature (kg/m3)
◆ fFuelPorosity
double ThermalDataReader::fFuelPorosity |
|
protected |
Fuel porosity (0 by default, for theoretical density values of thermal_data)
◆ fFuelThermalConductivityDataT
vector< double > ThermalDataReader::fFuelThermalConductivityDataT |
|
protected |
Temperatures corresponding to heat capacities values.
◆ fFuelThermalConductivityDataV
vector< double > ThermalDataReader::fFuelThermalConductivityDataV |
|
protected |
Heat capacities values for each temperature (W/m.K)
◆ fFuelThermalDataDirectoryName
string ThermalDataReader::fFuelThermalDataDirectoryName |
|
protected |
Name of Fuel data directory (where are all thermodynamics values)
◆ fHeatCapacityDataT
vector< double > ThermalDataReader::fHeatCapacityDataT |
|
protected |
Temperatures corresponding to heat capacities values.
◆ fHeatCapacityDataV
vector< double > ThermalDataReader::fHeatCapacityDataV |
|
protected |
Heat capacities values for each temperature (J/kg.K)
◆ fThermalConductivityDataT
vector< double > ThermalDataReader::fThermalConductivityDataT |
|
protected |
Temperatures corresponding to heat capacities values.
◆ fThermalConductivityDataV
vector< double > ThermalDataReader::fThermalConductivityDataV |
|
protected |
Heat capacities values for each temperature (W/m.K)
◆ fThermalDataDirectoryName
string ThermalDataReader::fThermalDataDirectoryName |
|
protected |
Name of Coolant data directory (where are all thermodynamics values)
◆ fViscosityDataT
vector< double > ThermalDataReader::fViscosityDataT |
|
protected |
Temperatures corresponding to viscosities values.
◆ fViscosityDataV
vector< double > ThermalDataReader::fViscosityDataV |
|
protected |
Viscosities values for each temperature (Pa.s)
The documentation for this class was generated from the following files: