34#include "AbstractState.h"
45 std::unique_ptr<CoolProp::AbstractState> fluid_entity;
48 const vector<string> fluidNameList = {
49 "Air",
"Ammonia",
"Argon",
"Benzene",
"CarbonDioxide",
"Cyclopentane",
"EthylBenzene",
50 "Ethane",
"Ethanol",
"HeavyWater",
"Helium",
"Hydrogen",
"IsoButane",
"Isopentane",
51 "Methane",
"Methanol",
"Nitrogen",
"Oxygen",
"Propylene",
"ParaHydrogen",
"R11",
52 "R116",
"R12",
"R123",
"R1234yf",
"R1234ze(E)",
"R124",
"R125",
53 "R13",
"R134a",
"R14",
"R141b",
"R142b",
"R143a",
"R152A",
54 "R218",
"R22",
"R227EA",
"R23",
"R236EA",
"R236FA",
"R245fa",
55 "R32",
"R404A",
"R407C",
"R410A",
"R507A",
"RC318",
"SulfurHexafluoride",
56 "Toluene",
"Water",
"m-Xylene",
"n-Butane",
"n-Decane",
"n-Dodecane",
"n-Heptane",
57 "n-Hexane",
"n-Nonane",
"n-Octane",
"n-Pentane",
"n-Propane",
"o-Xylene",
"p-Xylene"};
65 fluid_entity = std::unique_ptr<CoolProp::AbstractState>(CoolProp::AbstractState::factory(
"HEOS", fluidname));
66 if (std::find(fluidNameList.begin(), fluidNameList.end(), fluidname) == fluidNameList.end()) {
71 "SU2 was not compiled with CoolProp (-Denable-coolprop=true). Note that CoolProp cannot be used with "
72 "directdiff or autodiff",
82 fluid_entity->update(CoolProp::DmassT_INPUTS, rho, t);
83 kt_ = fluid_entity->conductivity();
Defines an interface class for thermal conductivity models.
Defines the state-of-the-art fluid model from CoolProp library.
static void Error(const std::string &ErrorMsg, const std::string &FunctionName)
Definition mpi_structure.cpp:131
Interface class for defining the thermal conductivity model.
Definition CConductivityModel.hpp:39
su2double kt_
Thermal conductivity.
Definition CConductivityModel.hpp:68
Defines conductivity model from CoolProp.
Definition CCoolPropConductivity.hpp:42
void SetConductivity(su2double t, su2double rho, su2double, su2double, su2double, su2double, su2double) override
Set thermal conductivity.
Definition CCoolPropConductivity.hpp:80
CCoolPropConductivity(const string &fluidname)
Constructor of the class.
Definition CCoolPropConductivity.hpp:63
passivedouble su2double
Definition code_config.hpp:181
#define CURRENT_FUNCTION
Definition mpi_structure.hpp:59