CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
CoolPropTools.h File Reference
#include <string>
#include <vector>
#include <cmath>
#include "float.h"
#include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
#include <fstream>
#include <cerrno>

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_WARNINGS
 
#define EXPORT_CODE
 
#define CONVENTION
 
#define M_PI   3.14159265358979323846
 
#define COOLPROP_OK   1
 
#define DEPRECATED(func)   func
 Define the deprecated macro to give compile-time warnings. More...
 

Functions

bool ValidNumber (double x)
 
std::string & strlstrip (std::string &s)
 The following code for the trim functions was taken from http://stackoverflow.com/questions/216823/whats-the-best-way-to-trim-stdstring. More...
 
std::string & strrstrip (std::string &s)
 
std::string & strstrip (std::string &s)
 
std::string get_file_contents (const char *filename)
 
std::string format (const char *fmt,...)
 
std::vector< std::string > strsplit (std::string s, char del)
 
std::string upper (const std::string str_)
 
std::string strjoin (std::vector< std::string > strings, std::string delim)
 
void MatInv_2 (double A[2][2], double B[2][2])
 
double root_sum_square (std::vector< double > x)
 
double interp1d (std::vector< double > *x, std::vector< double > *y, double x0)
 
double powInt (double x, int y)
 
double QuadInterp (double x0, double x1, double x2, double f0, double f1, double f2, double x)
 
double CubicInterp (double x0, double x1, double x2, double x3, double f0, double f1, double f2, double f3, double x)
 
void solve_cubic (double a, double b, double c, double d, double *x0, double *x1, double *x2)
 
double min3 (double x1, double x2, double x3)
 
double max3 (double x1, double x2, double x3)
 
bool double_equal (double a, double b)
 
int Kronecker_delta (int i, int j)
 

Macro Definition Documentation

#define _CRT_SECURE_NO_WARNINGS

Definition at line 4 of file CoolPropTools.h.

#define CONVENTION

Definition at line 34 of file CoolPropTools.h.

#define COOLPROP_OK   1

Definition at line 62 of file CoolPropTools.h.

#define DEPRECATED (   func)    func

Define the deprecated macro to give compile-time warnings.

Definition at line 130 of file CoolPropTools.h.

#define EXPORT_CODE

Definition at line 31 of file CoolPropTools.h.

#define M_PI   3.14159265358979323846

Definition at line 58 of file CoolPropTools.h.

Function Documentation

double CubicInterp ( double  x0,
double  x1,
double  x2,
double  x3,
double  f0,
double  f1,
double  f2,
double  f3,
double  x 
)

Definition at line 145 of file CoolPropTools.cpp.

bool double_equal ( double  a,
double  b 
)
inline

Definition at line 189 of file CoolPropTools.h.

std::string format ( const char *  fmt,
  ... 
)

Definition at line 22 of file CoolPropTools.cpp.

std::string get_file_contents ( const char *  filename)

Definition at line 172 of file CoolPropTools.cpp.

double interp1d ( std::vector< double > *  x,
std::vector< double > *  y,
double  x0 
)

Definition at line 69 of file CoolPropTools.cpp.

int Kronecker_delta ( int  i,
int  j 
)
inline

Definition at line 191 of file CoolPropTools.h.

void MatInv_2 ( double  A[2][2],
double  B[2][2] 
)

Definition at line 159 of file CoolPropTools.cpp.

double max3 ( double  x1,
double  x2,
double  x3 
)
inline

Definition at line 187 of file CoolPropTools.h.

double min3 ( double  x1,
double  x2,
double  x3 
)
inline

Definition at line 186 of file CoolPropTools.h.

double powInt ( double  x,
int  y 
)

Definition at line 95 of file CoolPropTools.cpp.

double QuadInterp ( double  x0,
double  x1,
double  x2,
double  f0,
double  f1,
double  f2,
double  x 
)

Definition at line 133 of file CoolPropTools.cpp.

double root_sum_square ( std::vector< double >  x)

Definition at line 13 of file CoolPropTools.cpp.

void solve_cubic ( double  a,
double  b,
double  c,
double  d,
double *  x0,
double *  x1,
double *  x2 
)

Definition at line 188 of file CoolPropTools.cpp.

std::string strjoin ( std::vector< std::string >  strings,
std::string  delim 
)

Definition at line 228 of file CoolPropTools.cpp.

std::string& strlstrip ( std::string &  s)
inline

The following code for the trim functions was taken from http://stackoverflow.com/questions/216823/whats-the-best-way-to-trim-stdstring.

Definition at line 142 of file CoolPropTools.h.

std::string& strrstrip ( std::string &  s)
inline

Definition at line 147 of file CoolPropTools.h.

std::vector<std::string> strsplit ( std::string  s,
char  del 
)

Definition at line 41 of file CoolPropTools.cpp.

std::string& strstrip ( std::string &  s)
inline

Definition at line 152 of file CoolPropTools.h.

std::string upper ( const std::string  str_)
inline

Definition at line 165 of file CoolPropTools.h.

bool ValidNumber ( double  x)
inline

Definition at line 117 of file CoolPropTools.h.