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

Detailed Description

This structure holds the coefficients for one cell, the coefficients are stored in matrices and can be obtained by the get() function.

Definition at line 914 of file TabularBackends.h.

#include <TabularBackends.h>

Public Member Functions

 CellCoeffs ()
 
const std::vector< double > & get (const parameters params) const
 Return a const reference to the desired matrix. More...
 
void set (parameters params, const std::vector< double > &mat)
 Set one of the matrices in this class. More...
 
bool valid () const
 Returns true if the cell coefficients seem to have been calculated properly. More...
 
void set_valid ()
 Call this function to set the valid flag to true. More...
 
void set_invalid ()
 Call this function to set the valid flag to false. More...
 
void set_alternate (std::size_t i, std::size_t j)
 Set the neighboring (alternate) cell to be used if the cell is invalid. More...
 
void get_alternate (std::size_t &i, std::size_t &j) const
 Get neighboring(alternate) cell to be used if this cell is invalid. More...
 
bool has_valid_neighbor () const
 Returns true if cell is invalid and it has valid neighbor. More...
 

Public Attributes

double dx_dxhat
 
double dy_dyhat
 
std::vector< double > T
 
std::vector< double > rhomolar
 
std::vector< double > hmolar
 
std::vector< double > p
 
std::vector< double > smolar
 
std::vector< double > umolar
 

Constructor & Destructor Documentation

◆ CellCoeffs()

CoolProp::CellCoeffs::CellCoeffs ( )
inline

Definition at line 922 of file TabularBackends.h.

Member Function Documentation

◆ get()

const std::vector<double>& CoolProp::CellCoeffs::get ( const parameters  params) const
inline

Return a const reference to the desired matrix.

Definition at line 932 of file TabularBackends.h.

◆ get_alternate()

void CoolProp::CellCoeffs::get_alternate ( std::size_t &  i,
std::size_t &  j 
) const
inline

Get neighboring(alternate) cell to be used if this cell is invalid.

Definition at line 994 of file TabularBackends.h.

◆ has_valid_neighbor()

bool CoolProp::CellCoeffs::has_valid_neighbor ( ) const
inline

Returns true if cell is invalid and it has valid neighbor.

Definition at line 1003 of file TabularBackends.h.

◆ set()

void CoolProp::CellCoeffs::set ( parameters  params,
const std::vector< double > &  mat 
)
inline

Set one of the matrices in this class.

Definition at line 951 of file TabularBackends.h.

◆ set_alternate()

void CoolProp::CellCoeffs::set_alternate ( std::size_t  i,
std::size_t  j 
)
inline

Set the neighboring (alternate) cell to be used if the cell is invalid.

Definition at line 988 of file TabularBackends.h.

◆ set_invalid()

void CoolProp::CellCoeffs::set_invalid ( )
inline

Call this function to set the valid flag to false.

Definition at line 984 of file TabularBackends.h.

◆ set_valid()

void CoolProp::CellCoeffs::set_valid ( )
inline

Call this function to set the valid flag to true.

Definition at line 980 of file TabularBackends.h.

◆ valid()

bool CoolProp::CellCoeffs::valid ( ) const
inline

Returns true if the cell coefficients seem to have been calculated properly.

Definition at line 976 of file TabularBackends.h.

Member Data Documentation

◆ dx_dxhat

double CoolProp::CellCoeffs::dx_dxhat

Definition at line 921 of file TabularBackends.h.

◆ dy_dyhat

double CoolProp::CellCoeffs::dy_dyhat

Definition at line 921 of file TabularBackends.h.

◆ hmolar

std::vector<double> CoolProp::CellCoeffs::hmolar

Definition at line 930 of file TabularBackends.h.

◆ p

std::vector<double> CoolProp::CellCoeffs::p

Definition at line 930 of file TabularBackends.h.

◆ rhomolar

std::vector<double> CoolProp::CellCoeffs::rhomolar

Definition at line 930 of file TabularBackends.h.

◆ smolar

std::vector<double> CoolProp::CellCoeffs::smolar

Definition at line 930 of file TabularBackends.h.

◆ T

std::vector<double> CoolProp::CellCoeffs::T

Definition at line 930 of file TabularBackends.h.

◆ umolar

std::vector<double> CoolProp::CellCoeffs::umolar

Definition at line 930 of file TabularBackends.h.


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