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

Detailed Description

Definition at line 547 of file VLERoutines.h.

#include <VLERoutines.h>

Public Member Functions

 PTflash_twophase (HelmholtzEOSMixtureBackend &HEOS, PTflash_twophase_options &IO)
 
void solve ()
 Call the Newton-Raphson Solver to solve the equilibrium conditions. More...
 
void build_arrays ()
 Build the arrays for the Newton-Raphson solve. More...
 

Public Attributes

double error_rms
 
bool logging
 
int Nsteps
 
Eigen::MatrixXd J
 
Eigen::VectorXd r
 
Eigen::VectorXd err_rel
 
HelmholtzEOSMixtureBackendHEOS
 
PTflash_twophase_optionsIO
 
std::vector< SuccessiveSubstitutionStepstep_logger
 

Constructor & Destructor Documentation

◆ PTflash_twophase()

CoolProp::SaturationSolvers::PTflash_twophase::PTflash_twophase ( HelmholtzEOSMixtureBackend HEOS,
PTflash_twophase_options IO 
)
inline

Definition at line 559 of file VLERoutines.h.

Member Function Documentation

◆ build_arrays()

void CoolProp::SaturationSolvers::PTflash_twophase::build_arrays ( )

Build the arrays for the Newton-Raphson solve.

This method builds the Jacobian matrix, the sensitivity matrix, etc.

Definition at line 1995 of file VLERoutines.cpp.

◆ solve()

void CoolProp::SaturationSolvers::PTflash_twophase::solve ( )

Call the Newton-Raphson Solver to solve the equilibrium conditions.

This solver must be passed reasonable guess values for the mole fractions, densities, etc. You may want to take a few steps of successive substitution before you start with Newton Raphson.

Definition at line 1959 of file VLERoutines.cpp.

Member Data Documentation

◆ err_rel

Eigen::VectorXd CoolProp::SaturationSolvers::PTflash_twophase::err_rel

Definition at line 554 of file VLERoutines.h.

◆ error_rms

double CoolProp::SaturationSolvers::PTflash_twophase::error_rms

Definition at line 550 of file VLERoutines.h.

◆ HEOS

HelmholtzEOSMixtureBackend& CoolProp::SaturationSolvers::PTflash_twophase::HEOS

Definition at line 555 of file VLERoutines.h.

◆ IO

PTflash_twophase_options& CoolProp::SaturationSolvers::PTflash_twophase::IO

Definition at line 556 of file VLERoutines.h.

◆ J

Eigen::MatrixXd CoolProp::SaturationSolvers::PTflash_twophase::J

Definition at line 553 of file VLERoutines.h.

◆ logging

bool CoolProp::SaturationSolvers::PTflash_twophase::logging

Definition at line 551 of file VLERoutines.h.

◆ Nsteps

int CoolProp::SaturationSolvers::PTflash_twophase::Nsteps

Definition at line 552 of file VLERoutines.h.

◆ r

Eigen::VectorXd CoolProp::SaturationSolvers::PTflash_twophase::r

Definition at line 554 of file VLERoutines.h.

◆ step_logger

std::vector<SuccessiveSubstitutionStep> CoolProp::SaturationSolvers::PTflash_twophase::step_logger

Definition at line 557 of file VLERoutines.h.


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