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

Detailed Description

Definition at line 172 of file PolyMath.h.

#include <PolyMath.h>

Inheritance diagram for CoolProp::Poly2DResidual:
CoolProp::FuncWrapper1DWithDeriv CoolProp::FuncWrapper1D CoolProp::Poly2DFracResidual CoolProp::Poly2DFracIntResidual

Public Member Functions

 Poly2DResidual (Polynomial2D &poly, const Eigen::MatrixXd &coefficients, const double &in, const double &z_in, const int &axis)
 
virtual ~Poly2DResidual ()
 
double call (double target)
 
double deriv (double target)
 
- Public Member Functions inherited from CoolProp::FuncWrapper1D
 FuncWrapper1D ()
 
virtual ~FuncWrapper1D ()
 
virtual bool input_not_in_range (double x)
 

Protected Types

enum  dims { iX , iY }
 

Protected Member Functions

 Poly2DResidual ()
 

Protected Attributes

Eigen::MatrixXd coefficients
 
bool derIsSet
 
Eigen::MatrixXd coefficientsDer
 
int axis
 
double in
 the fixed input != targetDim More...
 
Polynomial2D poly
 Object that evaluates the equation. More...
 
double z_in
 Current output value. More...
 

Additional Inherited Members

- Public Attributes inherited from CoolProp::FuncWrapper1D
int errcode
 
std::string errstring
 
Dictionary options
 
int iter
 

Member Enumeration Documentation

◆ dims

Enumerator
iX 
iY 

Definition at line 175 of file PolyMath.h.

Constructor & Destructor Documentation

◆ Poly2DResidual() [1/2]

CoolProp::Poly2DResidual::Poly2DResidual ( )
protected

◆ Poly2DResidual() [2/2]

CoolProp::Poly2DResidual::Poly2DResidual ( Polynomial2D poly,
const Eigen::MatrixXd &  coefficients,
const double &  in,
const double &  z_in,
const int &  axis 
)

Residual of a polynomial

Parameters
polypolynomial object used to evaluate the calls
coefficients
indouble value that represents the current input in x (1st dimension) or y (2nd dimension)
z_indouble value that represents the current output in the 3rd dimension
axisunsigned integer value that represents the axis to solve for (0=x, 1=y)

Definition at line 336 of file PolyMath.cpp.

◆ ~Poly2DResidual()

virtual CoolProp::Poly2DResidual::~Poly2DResidual ( )
inlinevirtual

Definition at line 202 of file PolyMath.h.

Member Function Documentation

◆ call()

double CoolProp::Poly2DResidual::call ( double  target)
virtual

Implements CoolProp::FuncWrapper1D.

Reimplemented in CoolProp::Poly2DFracIntResidual, and CoolProp::Poly2DFracResidual.

Definition at line 354 of file PolyMath.cpp.

◆ deriv()

double CoolProp::Poly2DResidual::deriv ( double  target)
virtual

Member Data Documentation

◆ axis

int CoolProp::Poly2DResidual::axis
protected

Definition at line 183 of file PolyMath.h.

◆ coefficients

Eigen::MatrixXd CoolProp::Poly2DResidual::coefficients
protected

Definition at line 180 of file PolyMath.h.

◆ coefficientsDer

Eigen::MatrixXd CoolProp::Poly2DResidual::coefficientsDer
protected

Definition at line 182 of file PolyMath.h.

◆ derIsSet

bool CoolProp::Poly2DResidual::derIsSet
protected

Definition at line 181 of file PolyMath.h.

◆ in

double CoolProp::Poly2DResidual::in
protected

the fixed input != targetDim

Definition at line 185 of file PolyMath.h.

◆ poly

Polynomial2D CoolProp::Poly2DResidual::poly
protected

Object that evaluates the equation.

Definition at line 187 of file PolyMath.h.

◆ z_in

double CoolProp::Poly2DResidual::z_in
protected

Current output value.

Definition at line 189 of file PolyMath.h.


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