CoolProp 8.0.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 899 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...
 
std::optional< std::pair< std::size_t, std::size_t > > get_alternate () const
 Get neighboring (alternate) cell indices, or nullopt if none exists. 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 907 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 910 of file TabularBackends.h.

◆ get_alternate()

std::optional< std::pair< std::size_t, std::size_t > > CoolProp::CellCoeffs::get_alternate ( ) const
inline

Get neighboring (alternate) cell indices, or nullopt if none exists.

Definition at line 972 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 929 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 966 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 962 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 958 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 954 of file TabularBackends.h.

Member Data Documentation

◆ dx_dxhat

double CoolProp::CellCoeffs::dx_dxhat

Definition at line 906 of file TabularBackends.h.

◆ dy_dyhat

double CoolProp::CellCoeffs::dy_dyhat

Definition at line 906 of file TabularBackends.h.

◆ hmolar

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

Definition at line 908 of file TabularBackends.h.

◆ p

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

Definition at line 908 of file TabularBackends.h.

◆ rhomolar

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

Definition at line 908 of file TabularBackends.h.

◆ smolar

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

Definition at line 908 of file TabularBackends.h.

◆ T

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

Definition at line 908 of file TabularBackends.h.

◆ umolar

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

Definition at line 908 of file TabularBackends.h.


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