2 #define _CRTDBG_MAP_ALLOC
3 #define _CRT_SECURE_NO_WARNINGS
17 if (iFluid < 0 || iRefFluid < 0)
31 double Tc0 = pRefFluid->
reduce.
T;
34 double rho0bar = rhobar*rhoc0bar/rhocbar;
36 std::string errstring;
37 std::vector<double> Trho = pFluid->
ConformalTemperature(pFluid,pRefFluid,T,rho,T0,rho0,&errstring);
38 if (errstring.size()>0){
43 *rhoconform = Trho[1];
47 catch (std::exception &){
Fluid * get_fluid(long iFluid)
long get_Fluid_index(std::string FluidName)
double psatV_anc(double T)
virtual double viscosity_residual(double T, double rho)
EXPORT_CODE double CONVENTION conductivity_critical(const char *FluidName, double T, double rho)
EXPORT_CODE double CONVENTION rhosatV_anc(const char *FluidName, double T)
double conductivity_critical(double T, double rho, double qd=2e9, double GAMMA=0.0496, double zeta0=1.94e-10)
EXPORT_CODE double CONVENTION psatL_anc(const char *FluidName, double T)
double psatL_anc(double T)
EXPORT_CODE double CONVENTION psatV_anc(const char *FluidName, double T)
struct CriticalStruct reduce
A pointer to the point that is used to reduce the T and rho for EOS.
virtual void ECSParams(double *e_k, double *sigma)
virtual double rhosatV(double T)
virtual double viscosity_dilute(double T, double e_k, double sigma)
Fluid is the abstract base class that is employed by all the other fluids.
struct OtherParameters params
EXPORT_CODE double CONVENTION rhosatL_anc(const char *FluidName, double T)
std::vector< double > ConformalTemperature(Fluid *InterestFluid, Fluid *ReferenceFluid, double T, double rho, double T0, double rho0, std::string *errstring)
EXPORT_CODE double CONVENTION viscosity_dilute(const char *FluidName, double T)
EXPORT_CODE double CONVENTION conformal_Trho(const char *FluidName, const char *ReferenceFluidName, double T, double rho, double *Tconform, double *rhoconform)
virtual double conductivity_background(double T, double rho)
virtual double rhosatL(double T)
EXPORT_CODE double CONVENTION conductivity_background(const char *FluidName, double T, double rho)
EXPORT_CODE double CONVENTION viscosity_residual(const char *FluidName, double T, double rho)