MURE
Loading...
Searching...
No Matches
ThermalDataReader.hxx
Go to the documentation of this file.
1/*
2 This file is part of MURE,
3 Copyright (C) 2007-2021 MURE developers.
4
5 MURE is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 MURE is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with MURE. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#ifndef _THERMALREAD_
20#define _THERMALREAD_
21
27#include <vector>
28#include <string>
29
31
44{
45 public :
52 string Coolant,
53 string Fuel,
54 double FuelPorosity = 0
55 );
58
63 double GetRho(double Temperature);
64 double GetCp(double Temperature);
65 double GetK(double Temperature);
66 double GetVis(double Temperature);
68
73 double GetFuelRho(double Temperature);
74 double GetFuelK(double Temperature);
76
77
78 private :
84 {
86 }
87 void SetThermalDATADIR(string THD)
88 {
90 }
92 void LoadFuelThermalData();
93 double FindBin(int NumberOfElements, vector < double > VectorX, vector < double > VectorY, double Temperature);
94 double CubicSpline(double X, double y0, double y1, double y2, double y3);
96
97
98 protected :
99 // Coolant
101 vector < double > fDensityDataT;
102 vector < double > fDensityDataV;
103 vector < double > fHeatCapacityDataT;
104 vector < double > fHeatCapacityDataV;
105 vector < double > fThermalConductivityDataT;
106 vector < double > fThermalConductivityDataV;
107 vector < double > fViscosityDataT;
108 vector < double > fViscosityDataV;
109
110 // Fuel
112 vector < double > fFuelDensityDataT;
113 vector < double > fFuelDensityDataV;
117};
118
119#endif
120
This object reads thermodynamics values of fluids that are stored in files stored in MURE/thermal_dat...
Definition ThermalDataReader.hxx:44
double GetVis(double Temperature)
Gets viscosity.
Definition ThermalDataReader.cxx:162
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:180
string GetThermalDATADIR()
Definition ThermalDataReader.hxx:83
vector< double > fThermalConductivityDataV
Heat capacities values for each temperature (W/m.K)
Definition ThermalDataReader.hxx:106
string fFuelThermalDataDirectoryName
Name of Fuel data directory (where are all thermodynamics values)
Definition ThermalDataReader.hxx:111
vector< double > fHeatCapacityDataT
Temperatures corresponding to heat capacities values.
Definition ThermalDataReader.hxx:103
double GetRho(double Temperature)
Gets density.
Definition ThermalDataReader.cxx:144
double GetFuelK(double Temperature)
Gets thermal conductivity.
Definition ThermalDataReader.cxx:174
double GetCp(double Temperature)
Gets heat capacity.
Definition ThermalDataReader.cxx:150
vector< double > fFuelThermalConductivityDataT
Temperatures corresponding to heat capacities values.
Definition ThermalDataReader.hxx:114
double fFuelPorosity
Fuel porosity (0 by default, for theoretical density values of thermal_data)
Definition ThermalDataReader.hxx:116
~ThermalDataReader()
Delete standard.
vector< double > fFuelThermalConductivityDataV
Heat capacities values for each temperature (W/m.K)
Definition ThermalDataReader.hxx:115
double GetFuelRho(double Temperature)
Gets density.
Definition ThermalDataReader.cxx:168
string fThermalDataDirectoryName
Name of Coolant data directory (where are all thermodynamics values)
Definition ThermalDataReader.hxx:100
vector< double > fFuelDensityDataT
Temperatures corresponding to densities values.
Definition ThermalDataReader.hxx:112
vector< double > fFuelDensityDataV
Densities values for each temperature (kg/m3)
Definition ThermalDataReader.hxx:113
void SetThermalDATADIR(string THD)
Definition ThermalDataReader.hxx:87
vector< double > fThermalConductivityDataT
Temperatures corresponding to heat capacities values.
Definition ThermalDataReader.hxx:105
double GetK(double Temperature)
Gets thermal conductivity.
Definition ThermalDataReader.cxx:156
vector< double > fDensityDataV
Densities values for each temperature (kg/m3)
Definition ThermalDataReader.hxx:102
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:215
vector< double > fDensityDataT
Temperatures corresponding to densities values.
Definition ThermalDataReader.hxx:101
vector< double > fViscosityDataV
Viscosities values for each temperature (Pa.s)
Definition ThermalDataReader.hxx:108
void LoadFuelThermalData()
generates vectors containing thermodynamics values of fuel
Definition ThermalDataReader.cxx:104
void LoadCoolantThermalData()
generates vectors containing thermodynamics values of coolant
Definition ThermalDataReader.cxx:52
vector< double > fHeatCapacityDataV
Heat capacities values for each temperature (J/kg.K)
Definition ThermalDataReader.hxx:104
vector< double > fViscosityDataT
Temperatures corresponding to viscosities values.
Definition ThermalDataReader.hxx:107

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