#include <TTSE.h>
|
| TTSETwoPhaseTableClass () |
| Default Instantiator. More...
|
|
| TTSETwoPhaseTableClass (Fluid *pFluid, double Q) |
|
| ~TTSETwoPhaseTableClass () |
| Destructor. More...
|
|
void | set_size (unsigned int N) |
|
double | build (double pmin, double pmax, TTSETwoPhaseTableClass *other=NULL) |
|
double | evaluate (long iParam, double p) |
|
double | evaluate_T (double T) |
|
double | evaluate_sat_derivative (long iParam, double p) |
|
double | evaluate_randomly (long iParam, unsigned int N) |
|
double | check_randomly (long iParam, unsigned int N, std::vector< double > *p, std::vector< double > *EOSv, std::vector< double > *TTSE) |
|
|
double | pmin |
|
double | pmax |
|
double | Q |
|
double | logpmin |
|
double | logpmax |
|
std::vector< double > | T |
|
std::vector< double > | dTdp |
|
std::vector< double > | d2Tdp2 |
|
std::vector< double > | rho |
|
std::vector< double > | drhodp |
|
std::vector< double > | d2rhodp2 |
|
std::vector< double > | logrho |
|
std::vector< double > | s |
|
std::vector< double > | dsdp |
|
std::vector< double > | d2sdp2 |
|
std::vector< double > | h |
|
std::vector< double > | dhdp |
|
std::vector< double > | d2hdp2 |
|
std::vector< double > | p |
|
std::vector< double > | logp |
|
Definition at line 24 of file TTSE.h.
TTSETwoPhaseTableClass::TTSETwoPhaseTableClass |
( |
| ) |
|
|
inline |
Default Instantiator.
Definition at line 33 of file TTSE.h.
TTSETwoPhaseTableClass::TTSETwoPhaseTableClass |
( |
Fluid * |
pFluid, |
|
|
double |
Q |
|
) |
| |
Instantiator
- Parameters
-
pFluid | Pointer to an instance of a Fluid class |
Q | Quality [kg/kg], in [0,1] |
Definition at line 2559 of file TTSE.cpp.
TTSETwoPhaseTableClass::~TTSETwoPhaseTableClass |
( |
| ) |
|
|
inline |
Destructor.
Definition at line 39 of file TTSE.h.
Build the tables along the saturation curves
- Parameters
-
pmin | Minimum pressure [kJ/kg] |
pmax | Maximum pressure [kJ/kg] |
other | TTSETwoPhaseTableClass for the other phase boundary (liquid for the vapor, or vice versa) |
Definition at line 2590 of file TTSE.cpp.
double TTSETwoPhaseTableClass::check_randomly |
( |
long |
iParam, |
|
|
unsigned int |
N, |
|
|
std::vector< double > * |
p, |
|
|
std::vector< double > * |
EOSv, |
|
|
std::vector< double > * |
TTSE |
|
) |
| |
Randomly select points within the range, and evaluate the property using TTSE and the EOS
- Parameters
-
iParam | Index of desired output |
N | Number of runs to do |
p | std::vector of pressures |
EOS | std::vector of values from Equation of State |
TTSE | std::vector of values from TTSE |
Note: p,EOS, TTSE should be empty std::vector passed by reference
Definition at line 2906 of file TTSE.cpp.
double TTSETwoPhaseTableClass::evaluate |
( |
long |
iParam, |
|
|
double |
p |
|
) |
| |
Evaluate a property in the two-phase region using the TTSE method with p as input
- Parameters
-
iParam | Index of desired output |
p | Pressure (absolute) [kPa] |
log(p) v. log(rho) gives close to a line for most of the curve d(log(p))/d(log(p)) = 1/rho*d(rho)/d(log(p)) = p/rho*drho/dp
Definition at line 2699 of file TTSE.cpp.
double TTSETwoPhaseTableClass::evaluate_randomly |
( |
long |
iParam, |
|
|
unsigned int |
N |
|
) |
| |
Randomly evaluate a property in the two-phase region using the TTSE method
- Parameters
-
iParam | Index of desired output |
N | Number of runs to do |
Definition at line 2890 of file TTSE.cpp.
double TTSETwoPhaseTableClass::evaluate_sat_derivative |
( |
long |
iParam, |
|
|
double |
p |
|
) |
| |
Evaluate the derivative of a property along the saturation curve using the TTSE method
- Parameters
-
iParam | Index of desired output |
p | Pressure (absolute) [kPa] |
First order expansion of dTdp around point of interest
First order expansion of dhdp around point of interest
First order expansion of dsdp around point of interest
First order expansion of drhodp around point of interest
Definition at line 2847 of file TTSE.cpp.
double TTSETwoPhaseTableClass::evaluate_T |
( |
double |
T | ) |
|
Evaluate a property in the two-phase region using the TTSE method with T as input
- Parameters
-
- Returns
- Pressure [kPa]
Definition at line 2786 of file TTSE.cpp.
void TTSETwoPhaseTableClass::set_size |
( |
unsigned int |
N | ) |
|
Set the size of the Two-Phase table
- Parameters
-
N | Number of elements in arrays |
Definition at line 2564 of file TTSE.cpp.
std::vector<double> TTSETwoPhaseTableClass::d2hdp2 |
std::vector<double> TTSETwoPhaseTableClass::d2rhodp2 |
std::vector<double> TTSETwoPhaseTableClass::d2sdp2 |
std::vector<double> TTSETwoPhaseTableClass::d2Tdp2 |
double TTSETwoPhaseTableClass::dh |
|
protected |
std::vector<double> TTSETwoPhaseTableClass::dhdp |
double TTSETwoPhaseTableClass::dp |
|
protected |
std::vector<double> TTSETwoPhaseTableClass::drhodp |
std::vector<double> TTSETwoPhaseTableClass::dsdp |
std::vector<double> TTSETwoPhaseTableClass::dTdp |
std::vector<double> TTSETwoPhaseTableClass::h |
std::vector<double> TTSETwoPhaseTableClass::logp |
double TTSETwoPhaseTableClass::logpmax |
double TTSETwoPhaseTableClass::logpmin |
double TTSETwoPhaseTableClass::logpratio |
|
protected |
std::vector<double> TTSETwoPhaseTableClass::logrho |
unsigned int TTSETwoPhaseTableClass::N |
|
protected |
std::vector<double> TTSETwoPhaseTableClass::p |
Fluid* TTSETwoPhaseTableClass::pFluid |
|
protected |
double TTSETwoPhaseTableClass::pmax |
double TTSETwoPhaseTableClass::pmin |
double TTSETwoPhaseTableClass::pratio |
|
protected |
double TTSETwoPhaseTableClass::Q |
std::vector<double> TTSETwoPhaseTableClass::rho |
std::vector<double> TTSETwoPhaseTableClass::s |
std::vector<double> TTSETwoPhaseTableClass::T |
The documentation for this class was generated from the following files: