MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
ThermalDataReader.hxx
Go to the documentation of this file.
1 #ifndef _THERMALREAD_
2 #define _THERMALREAD_
3 
9 #include "MureHeaders.hxx"
10 #include <vector>
11 
13 
26 {
27  public :
34  string Coolant,
35  string Fuel,
36  double FuelPorosity=0
37  );
39 
40 
45  double GetRho(double Temperature);
46  double GetCp(double Temperature); //<! Gets heat capacity
47  double GetK(double Temperature);
48  double GetVis(double Temperature);
49 
50 
55  double GetFuelRho(double Temperature);
56  double GetFuelK(double Temperature);
57 
58 
59 
60  private :
67  void LoadCoolantThermalData();
68  void LoadFuelThermalData();
69  double FindBin(int NumberOfElements, vector<double> VectorX, vector<double> VectorY, double Temperature);
70  double CubicSpline(double X, double y0, double y1, double y2, double y3);
71 
72 
73 
74  protected :
75 // Coolant
77  vector<double> fDensityDataT;
78  vector<double> fDensityDataV;
79  vector<double> fHeatCapacityDataT;
80  vector<double> fHeatCapacityDataV;
81  vector<double> fThermalConductivityDataT;
82  vector<double> fThermalConductivityDataV;
83  vector<double> fViscosityDataT;
84  vector<double> fViscosityDataV;
85 
86 // Fuel
88  vector<double> fFuelDensityDataT;
89  vector<double> fFuelDensityDataV;
92  double fFuelPorosity;
93 };
94 
95 #endif
96 
vector< double > fDensityDataV
Densities values for each temperature (kg/m3)
Definition: ThermalDataReader.hxx:78
void SetThermalDATADIR(string THD)
sets directory of thermodynamics values files location
Definition: ThermalDataReader.hxx:66
double GetFuelRho(double Temperature)
Gets density.
Definition: ThermalDataReader.cxx:142
vector< double > fViscosityDataT
Temperatures corresponding to viscosities values.
Definition: ThermalDataReader.hxx:83
string fFuelThermalDataDirectoryName
Name of Fuel data directory (where are all thermodynamics values)
Definition: ThermalDataReader.hxx:87
ThermalDataReader(string Coolant, string Fuel, double FuelPorosity=0)
Default constructor.
Definition: ThermalDataReader.cxx:5
vector< double > fViscosityDataV
Viscosities values for each temperature (Pa.s)
Definition: ThermalDataReader.hxx:84
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
Definition: ThermalDataReader.cxx:154
vector< double > fFuelDensityDataT
Temperatures corresponding to densities values.
Definition: ThermalDataReader.hxx:88
double GetCp(double Temperature)
Definition: ThermalDataReader.cxx:124
void LoadFuelThermalData()
generates vectors containing thermodynamics values of fuel
Definition: ThermalDataReader.cxx:78
~ThermalDataReader()
Delete standard.
Definition: ThermalDataReader.cxx:22
vector< double > fHeatCapacityDataV
Heat capacities values for each temperature (J/kg.K)
Definition: ThermalDataReader.hxx:80
vector< double > fFuelThermalConductivityDataV
Heat capacities values for each temperature (W/m.K)
Definition: ThermalDataReader.hxx:91
string GetThermalDATADIR()
returns directory of thermodynamics values files location
Definition: ThermalDataReader.hxx:65
double GetK(double Temperature)
Gets thermal conductivity.
Definition: ThermalDataReader.cxx:130
File including all headers.
double CubicSpline(double X, double y0, double y1, double y2, double y3)
performs a cubic spline interpolation to calculate the exact value
Definition: ThermalDataReader.cxx:189
vector< double > fFuelThermalConductivityDataT
Temperatures corresponding to heat capacities values.
Definition: ThermalDataReader.hxx:90
vector< double > fDensityDataT
Temperatures corresponding to densities values.
Definition: ThermalDataReader.hxx:77
double fFuelPorosity
Fuel porosity (0 by default, for theoretical density values of thermal_data)
Definition: ThermalDataReader.hxx:92
void LoadCoolantThermalData()
generates vectors containing thermodynamics values of coolant
Definition: ThermalDataReader.cxx:26
This object reads thermodynamics values of fluids that are stored in files stored in MURE/thermal_dat...
Definition: ThermalDataReader.hxx:25
vector< double > fThermalConductivityDataV
Heat capacities values for each temperature (W/m.K)
Definition: ThermalDataReader.hxx:82
vector< double > fThermalConductivityDataT
Temperatures corresponding to heat capacities values.
Definition: ThermalDataReader.hxx:81
vector< double > fFuelDensityDataV
Densities values for each temperature (kg/m3)
Definition: ThermalDataReader.hxx:89
vector< double > fHeatCapacityDataT
Temperatures corresponding to heat capacities values.
Definition: ThermalDataReader.hxx:79
string fThermalDataDirectoryName
Name of Coolant data directory (where are all thermodynamics values)
Definition: ThermalDataReader.hxx:76
double GetFuelK(double Temperature)
Gets thermal conductivity.
Definition: ThermalDataReader.cxx:148
double GetRho(double Temperature)
Gets density.
Definition: ThermalDataReader.cxx:118
double GetVis(double Temperature)
Gets viscosity.
Definition: ThermalDataReader.cxx:136

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