CoolProp 8.0.0
An open-source fluid property and humid air property database
Public Member Functions | Public Attributes | List of all members
CoolProp::PureFluidSaturationTableData Class Reference

Detailed Description

This class holds the data for a two-phase table that is log spaced in p.

It contains very few members or methods, mostly it just holds the data

Definition at line 225 of file TabularBackends.h.

#include <TabularBackends.h>

Public Member Functions

 PureFluidSaturationTableData ()
 
void build (shared_ptr< CoolProp::AbstractState > &AS)
 Build this table. More...
 
 MSGPACK_DEFINE (revision, vectors)
 
bool is_inside (parameters main, double mainval, parameters other, double val, std::size_t &iL, std::size_t &iV, CoolPropDbl &yL, CoolPropDbl &yV)
 
void resize (std::size_t N)
 Resize all the vectors. More...
 
void pack ()
 Take all the vectors that are in the class and pack them into the vectors map for easy unpacking using msgpack. More...
 
std::map< std::string, std::vector< double > >::iterator get_vector_iterator (const std::string &name)
 
void unpack ()
 Take all the vectors that are in the class and unpack them from the vectors map. More...
 
void deserialize (msgpack::object &deserialized)
 
double evaluate (parameters output, double p_or_T, double Q, std::size_t iL, std::size_t iV)
 
double first_saturation_deriv (parameters Of1, parameters Wrt1, int Q, double val, std::size_t i)
 Calculate the first derivative ALONG a saturation curve. More...
 

Public Attributes

std::size_t N
 
shared_ptr< CoolProp::AbstractStateAS
 
LIST_OF_SATURATION_VECTORS int revision
 
std::map< std::string, std::vector< double > > vectors
 

Constructor & Destructor Documentation

◆ PureFluidSaturationTableData()

CoolProp::PureFluidSaturationTableData::PureFluidSaturationTableData ( )
inline

Definition at line 231 of file TabularBackends.h.

Member Function Documentation

◆ build()

void CoolProp::PureFluidSaturationTableData::build ( shared_ptr< CoolProp::AbstractState > &  AS)

Build this table.

Definition at line 112 of file TabularBackends.cpp.

◆ deserialize()

void CoolProp::PureFluidSaturationTableData::deserialize ( msgpack::object &  deserialized)
inline

Definition at line 395 of file TabularBackends.h.

◆ evaluate()

double CoolProp::PureFluidSaturationTableData::evaluate ( parameters  output,
double  p_or_T,
double  Q,
std::size_t  iL,
std::size_t  iV 
)
inline

Definition at line 407 of file TabularBackends.h.

◆ first_saturation_deriv()

double CoolProp::PureFluidSaturationTableData::first_saturation_deriv ( parameters  Of1,
parameters  Wrt1,
int  Q,
double  val,
std::size_t  i 
)
inline

Calculate the first derivative ALONG a saturation curve.

Parameters
Of1The parameter that the derivative is to be taken of
Wrt1The parameter that the derivative is to be taken with respect to
QThe vapor quality, 0 or 1
valThe value of the WRT parameter
iThe index in the vectors to be used; must be > 2 and < len-2

Definition at line 523 of file TabularBackends.h.

◆ get_vector_iterator()

std::map< std::string, std::vector< double > >::iterator CoolProp::PureFluidSaturationTableData::get_vector_iterator ( const std::string &  name)
inline

Definition at line 380 of file TabularBackends.h.

◆ is_inside()

bool CoolProp::PureFluidSaturationTableData::is_inside ( parameters  main,
double  mainval,
parameters  other,
double  val,
std::size_t &  iL,
std::size_t &  iV,
CoolPropDbl yL,
CoolPropDbl yV 
)
inline

Definition at line 259 of file TabularBackends.h.

◆ MSGPACK_DEFINE()

CoolProp::PureFluidSaturationTableData::MSGPACK_DEFINE ( revision  ,
vectors   
)

◆ pack()

void CoolProp::PureFluidSaturationTableData::pack ( )
inline

Take all the vectors that are in the class and pack them into the vectors map for easy unpacking using msgpack.

Definition at line 374 of file TabularBackends.h.

◆ resize()

void CoolProp::PureFluidSaturationTableData::resize ( std::size_t  N)
inline

Resize all the vectors.

Definition at line 365 of file TabularBackends.h.

◆ unpack()

void CoolProp::PureFluidSaturationTableData::unpack ( )
inline

Take all the vectors that are in the class and unpack them from the vectors map.

Definition at line 388 of file TabularBackends.h.

Member Data Documentation

◆ AS

shared_ptr<CoolProp::AbstractState> CoolProp::PureFluidSaturationTableData::AS

Definition at line 229 of file TabularBackends.h.

◆ N

std::size_t CoolProp::PureFluidSaturationTableData::N

Definition at line 228 of file TabularBackends.h.

◆ revision

LIST_OF_SATURATION_VECTORS int CoolProp::PureFluidSaturationTableData::revision

Definition at line 241 of file TabularBackends.h.

◆ vectors

std::map<std::string, std::vector<double> > CoolProp::PureFluidSaturationTableData::vectors

Definition at line 242 of file TabularBackends.h.


The documentation for this class was generated from the following files: