MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Protected Attributes | 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. 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...
 

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

Delete standard.

Member Function Documentation

double ThermalDataReader::CubicSpline ( double  X,
double  y0,
double  y1,
double  y2,
double  y3 
)
private

performs a cubic spline interpolation to calculate the exact value

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

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.

string ThermalDataReader::GetThermalDATADIR ( )
inlineprivate

returns directory of thermodynamics values files location

double ThermalDataReader::GetVis ( double  Temperature)

Gets viscosity.

void ThermalDataReader::LoadCoolantThermalData ( )
private

generates vectors containing thermodynamics values of coolant

void ThermalDataReader::LoadFuelThermalData ( )
private

generates vectors containing thermodynamics values of fuel

void ThermalDataReader::SetThermalDATADIR ( string  THD)
inlineprivate

sets directory of thermodynamics values files location

Member Data Documentation

vector<double> ThermalDataReader::fDensityDataT
protected

Temperatures corresponding to densities values.

vector<double> ThermalDataReader::fDensityDataV
protected

Densities values for each temperature (kg/m3)

vector<double> ThermalDataReader::fFuelDensityDataT
protected

Temperatures corresponding to densities values.

vector<double> ThermalDataReader::fFuelDensityDataV
protected

Densities values for each temperature (kg/m3)

double ThermalDataReader::fFuelPorosity
protected

Fuel porosity (0 by default, for theoretical density values of thermal_data)

vector<double> ThermalDataReader::fFuelThermalConductivityDataT
protected

Temperatures corresponding to heat capacities values.

vector<double> ThermalDataReader::fFuelThermalConductivityDataV
protected

Heat capacities values for each temperature (W/m.K)

string ThermalDataReader::fFuelThermalDataDirectoryName
protected

Name of Fuel data directory (where are all thermodynamics values)

vector<double> ThermalDataReader::fHeatCapacityDataT
protected

Temperatures corresponding to heat capacities values.

vector<double> ThermalDataReader::fHeatCapacityDataV
protected

Heat capacities values for each temperature (J/kg.K)

vector<double> ThermalDataReader::fThermalConductivityDataT
protected

Temperatures corresponding to heat capacities values.

vector<double> ThermalDataReader::fThermalConductivityDataV
protected

Heat capacities values for each temperature (W/m.K)

string ThermalDataReader::fThermalDataDirectoryName
protected

Name of Coolant data directory (where are all thermodynamics values)

vector<double> ThermalDataReader::fViscosityDataT
protected

Temperatures corresponding to viscosities values.

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.8.5 - Mon Nov 17 2014