MURE
Loading...
Searching...
No Matches
List of all members
ThermalDataReader Class Reference

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.
 
 ~ThermalDataReader ()
 Delete standard.
 
Finding thermodynamics values of coolant, function of temperature
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.
 
Finding thermodynamics values of fuel, function of temperature
double GetFuelRho (double Temperature)
 Gets density.
 
double GetFuelK (double Temperature)
 Gets thermal conductivity.
 

Miscellaneous methods

string fThermalDataDirectoryName
 Name of Coolant data directory (where are all thermodynamics values)
 
vector< double > fDensityDataT
 Temperatures corresponding to densities values.
 
vector< double > fDensityDataV
 Densities values for each temperature (kg/m3)
 
vector< double > fHeatCapacityDataT
 Temperatures corresponding to heat capacities values.
 
vector< double > fHeatCapacityDataV
 Heat capacities values for each temperature (J/kg.K)
 
vector< double > fThermalConductivityDataT
 Temperatures corresponding to heat capacities values.
 
vector< double > fThermalConductivityDataV
 Heat capacities values for each temperature (W/m.K)
 
vector< double > fViscosityDataT
 Temperatures corresponding to viscosities values.
 
vector< double > fViscosityDataV
 Viscosities values for each temperature (Pa.s)
 
string fFuelThermalDataDirectoryName
 Name of Fuel data directory (where are all thermodynamics values)
 
vector< double > fFuelDensityDataT
 Temperatures corresponding to densities values.
 
vector< double > fFuelDensityDataV
 Densities values for each temperature (kg/m3)
 
vector< double > fFuelThermalConductivityDataT
 Temperatures corresponding to heat capacities values.
 
vector< double > fFuelThermalConductivityDataV
 Heat capacities values for each temperature (W/m.K)
 
double fFuelPorosity
 Fuel porosity (0 by default, for theoretical density values of thermal_data)
 
string GetThermalDATADIR ()
 
void SetThermalDATADIR (string THD)
 
void LoadCoolantThermalData ()
 generates vectors containing thermodynamics values of coolant
 
void LoadFuelThermalData ()
 generates vectors containing thermodynamics values of fuel
 
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
 
double CubicSpline (double X, double y0, double y1, double y2, double y3)
 performs a cubic spline interpolation to calculate the exact value
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ThermalDataReader()

ThermalDataReader::ThermalDataReader ( string  Coolant,
string  Fuel,
double  FuelPorosity = 0 
)

Default constructor.

Parameters
CoolantCoolant identification name (ex : water)
FuelFuel identification name (ex : uo2)
FuelPorositythe porosity of the fuel

◆ ~ThermalDataReader()

ThermalDataReader::~ThermalDataReader ( )
default

Delete standard.

Member Function Documentation

◆ 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)

Gets heat capacity.

◆ GetFuelK()

double ThermalDataReader::GetFuelK ( double  Temperature)

Gets thermal conductivity.

◆ GetFuelRho()

double ThermalDataReader::GetFuelRho ( double  Temperature)

Gets density.

◆ GetK()

double ThermalDataReader::GetK ( double  Temperature)

Gets thermal conductivity.

◆ GetRho()

double ThermalDataReader::GetRho ( double  Temperature)

Gets density.

◆ GetThermalDATADIR()

string ThermalDataReader::GetThermalDATADIR ( )
inlineprivate

< returns directory of thermodynamics values files location

◆ GetVis()

double ThermalDataReader::GetVis ( double  Temperature)

Gets viscosity.

◆ 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

Member Data Documentation

◆ 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:

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