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

Detailed Description

This class holds the single-phase data for a log(p)-T gridded table.

Definition at line 867 of file TabularBackends.h.

#include <TabularBackends.h>

Inheritance diagram for CoolProp::LogPTTable:
CoolProp::SinglePhaseGriddedTableData

Public Member Functions

 LogPTTable ()
 
void set_limits ()
 
void deserialize (msgpack::object &deserialized)
 
- Public Member Functions inherited from CoolProp::SinglePhaseGriddedTableData
 SinglePhaseGriddedTableData ()
 
void build (shared_ptr< CoolProp::AbstractState > &AS)
 Build this table. More...
 
 MSGPACK_DEFINE (revision, matrices, xmin, xmax, ymin, ymax)
 
void resize (std::size_t Nx, std::size_t Ny)
 Resize all the matrices. More...
 
void make_axis_vectors (void)
 Make vectors for the x-axis values and the y-axis values. More...
 
void make_good_neighbors (void)
 Make matrices of good neighbors if the current value for i,j corresponds to a bad node. More...
 
void pack ()
 Take all the matrices that are in the class and pack them into the matrices map for easy unpacking using msgpack. More...
 
std::map< std::string, std::vector< std::vector< double > > >::iterator get_matrices_iterator (const std::string &name)
 
void unpack ()
 Take all the matrices that are in the class and pack them into the matrices map for easy unpacking using msgpack. More...
 
bool native_inputs_are_in_range (double x, double y)
 Check that the native inputs (the inputs the table is based on) are in range. More...
 
void find_native_nearest_neighbor (double x, double y, std::size_t &i, std::size_t &j)
 Find the nearest neighbor for native inputs (the inputs the table is based on) Does not check whether this corresponds to a valid node or not Use bisection since it is faster than calling a logarithm (surprising, but true) More...
 
void find_nearest_neighbor (parameters givenkey, double givenval, parameters otherkey, double otherval, std::size_t &i, std::size_t &j)
 Find the nearest neighbor for one (given) variable native, one variable non-native. More...
 
void find_native_nearest_good_neighbor (double x, double y, std::size_t &i, std::size_t &j)
 
void find_native_nearest_good_cell (double x, double y, std::size_t &i, std::size_t &j)
 
const std::vector< std::vector< double > > & get (parameters key)
 

Additional Inherited Members

- Public Attributes inherited from CoolProp::SinglePhaseGriddedTableData
std::size_t Nx
 
std::size_t Ny
 
CoolProp::parameters xkey
 
CoolProp::parameters ykey
 
shared_ptr< CoolProp::AbstractStateAS
 
std::vector< double > xvec
 
std::vector< double > yvec
 
std::vector< std::vector< std::size_t > > nearest_neighbor_i
 
std::vector< std::vector< std::size_t > > nearest_neighbor_j
 
bool logx
 
bool logy
 
double xmin
 
double ymin
 
double xmax
 
double ymax
 
LIST_OF_MATRICES int revision
 
std::map< std::string, std::vector< std::vector< double > > > matrices
 

Constructor & Destructor Documentation

◆ LogPTTable()

CoolProp::LogPTTable::LogPTTable ( )
inline

Definition at line 870 of file TabularBackends.h.

Member Function Documentation

◆ deserialize()

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

Definition at line 892 of file TabularBackends.h.

◆ set_limits()

void CoolProp::LogPTTable::set_limits ( )
inlinevirtual

Implements CoolProp::SinglePhaseGriddedTableData.

Definition at line 880 of file TabularBackends.h.


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