The base class for incompressible fluids only.
More...
#include <IncompBase.h>
|
std::string | getDescription () const |
|
std::string | getName () const |
|
std::string | get_name () const |
|
std::string | getReference () const |
|
double | getTmax () const |
|
double | getTmin () const |
|
double | getTminPsat () const |
|
double | getTref () const |
|
void | setDebug (bool debug) |
|
| IncompressibleClass () |
|
virtual | ~IncompressibleClass () |
|
double | polyval (std::vector< double > const &coefficients, double x) |
|
double | polyval (std::vector< std::vector< double > > const &coefficients, double x, double y) |
|
double | polyint (std::vector< double > const &coefficients, double T) |
|
double | polyint (std::vector< double > const &coefficients, double T1, double T0) |
|
double | polyint (std::vector< std::vector< double > > const &coefficients, double x, double T) |
|
double | polyint (std::vector< std::vector< double > > const &coefficients, double x, double T1, double T0) |
|
double | polyfracint (std::vector< double > const &coefficients, double T) |
|
double | polyfracint (std::vector< double > const &coefficients, double T1, double T0) |
|
double | polyfracint (std::vector< std::vector< double > > const &coefficients, double x, double T) |
|
double | polyfracint (std::vector< std::vector< double > > const &coefficients, double x, double T1, double T0) |
|
double | polyfracintcentral (std::vector< double > const &coefficients, double T, double Tbase) |
|
double | polyfracintcentral (std::vector< double > const &coefficients, double T1, double T0, double Tbase) |
|
double | polyfracintcentral (std::vector< std::vector< double > > const &coefficients, double x, double T, double Tbase) |
|
double | polyfracintcentral (std::vector< std::vector< double > > const &coefficients, double x, double T1, double T0, double Tbase) |
|
double | expval (std::vector< double > const &coefficients, double T, int n) |
|
double | expval (std::vector< std::vector< double > > const &coefficients, double x, double T, int n) |
|
|
bool | checkCoefficients (std::vector< double > const &coefficients, unsigned int n) |
| Basic checks for coefficient vectors. More...
|
|
bool | checkCoefficients (std::vector< std::vector< double > > const &coefficients, unsigned int rows, unsigned int columns) |
|
The base class for incompressible fluids only.
Definition at line 16 of file IncompBase.h.
IncompressibleClass::IncompressibleClass |
( |
| ) |
|
|
inline |
virtual IncompressibleClass::~IncompressibleClass |
( |
| ) |
|
|
inlinevirtual |
bool IncompressibleClass::checkCoefficients |
( |
std::vector< double > const & |
coefficients, |
|
|
unsigned int |
n |
|
) |
| |
|
protected |
Basic checks for coefficient vectors.
Starts with only the first coefficient dimension and checks the vector length against parameter n.
Definition at line 16 of file IncompBase.cpp.
bool IncompressibleClass::checkCoefficients |
( |
std::vector< std::vector< double > > const & |
coefficients, |
|
|
unsigned int |
rows, |
|
|
unsigned int |
columns |
|
) |
| |
|
protected |
double IncompressibleClass::expval |
( |
std::vector< double > const & |
coefficients, |
|
|
double |
T, |
|
|
int |
n |
|
) |
| |
Evaluates an exponential function for the given coefficients
- Parameters
-
coefficients | vector containing the ordered coefficients |
T | double value that represents the current input |
n | int value that determines the kind of exponential function |
Here we define the functions that should be used by the respective implementations. Please do no use any other method since this would break the purpose of this interface.Evaluates an exponential function for the given coefficients
- Parameters
-
coefficients | vector containing the ordered coefficients |
T | double value that represents the current input |
n | int value that determines the kind of exponential function |
Definition at line 812 of file IncompBase.cpp.
double IncompressibleClass::expval |
( |
std::vector< std::vector< double > > const & |
coefficients, |
|
|
double |
x, |
|
|
double |
T, |
|
|
int |
n |
|
) |
| |
Evaluates an exponential function for the given coefficients
- Parameters
-
coefficients | vector containing the ordered coefficients |
x | double value that represents the current input in the 1st dimension |
T | double value that represents the current input in the 2nd dimension |
n | int value that determines the kind of exponential function |
Definition at line 830 of file IncompBase.cpp.
std::string IncompressibleClass::get_name |
( |
void |
| ) |
const |
|
inline |
std::string IncompressibleClass::getDescription |
( |
| ) |
const |
|
inline |
std::string IncompressibleClass::getName |
( |
| ) |
const |
|
inline |
std::string IncompressibleClass::getReference |
( |
| ) |
const |
|
inline |
double IncompressibleClass::getTmax |
( |
| ) |
const |
|
inline |
double IncompressibleClass::getTmin |
( |
| ) |
const |
|
inline |
double IncompressibleClass::getTminPsat |
( |
| ) |
const |
|
inline |
double IncompressibleClass::getTref |
( |
| ) |
const |
|
inline |
double IncompressibleClass::polyfracint |
( |
std::vector< double > const & |
coefficients, |
|
|
double |
T |
|
) |
| |
|
inline |
Evaluates the indefinite integral of a one-dimensional polynomial divided by its independent variable
- Parameters
-
coefficients | vector containing the ordered coefficients |
T | double value that represents the current position |
Definition at line 267 of file IncompBase.h.
double IncompressibleClass::polyfracint |
( |
std::vector< double > const & |
coefficients, |
|
|
double |
T1, |
|
|
double |
T0 |
|
) |
| |
|
inline |
Evaluates the definite integral of a one-dimensional polynomial divided by its independent variable
- Parameters
-
coefficients | vector containing the ordered coefficients |
T1 | double value that represents the current position |
T0 | double value that represents the reference state |
Definition at line 277 of file IncompBase.h.
double IncompressibleClass::polyfracint |
( |
std::vector< std::vector< double > > const & |
coefficients, |
|
|
double |
x, |
|
|
double |
T |
|
) |
| |
|
inline |
Evaluates the indefinite integral of a two-dimensional polynomial divided by its 2nd independent variable
- Parameters
-
coefficients | vector containing the ordered coefficients |
x | double value that represents the current input in the 1st dimension |
T | double value that represents the current input in the 2nd dimension |
Definition at line 287 of file IncompBase.h.
double IncompressibleClass::polyfracint |
( |
std::vector< std::vector< double > > const & |
coefficients, |
|
|
double |
x, |
|
|
double |
T1, |
|
|
double |
T0 |
|
) |
| |
|
inline |
Evaluates the definite integral of a two-dimensional polynomial divided by its 2nd independent variable
- Parameters
-
coefficients | vector containing the ordered coefficients |
x | double value that represents the current input in the 1st dimension |
T1 | double value that represents the current input in the 2nd dimension |
T0 | double value that represents the reference state in the 2nd dimension |
Definition at line 298 of file IncompBase.h.
double IncompressibleClass::polyfracintcentral |
( |
std::vector< double > const & |
coefficients, |
|
|
double |
T, |
|
|
double |
Tbase |
|
) |
| |
|
inline |
Evaluates the indefinite integral of a centred one-dimensional polynomial divided by its independent variable
- Parameters
-
coefficients | vector containing the ordered coefficients |
T | double value that represents the current position |
Tbase | central temperature for fitted function |
Definition at line 308 of file IncompBase.h.
double IncompressibleClass::polyfracintcentral |
( |
std::vector< double > const & |
coefficients, |
|
|
double |
T1, |
|
|
double |
T0, |
|
|
double |
Tbase |
|
) |
| |
|
inline |
Evaluates the definite integral of a centred one-dimensional polynomial divided by its independent variable
- Parameters
-
coefficients | vector containing the ordered coefficients |
T1 | double value that represents the current position |
T0 | double value that represents the reference state |
Tbase | central temperature for fitted function |
Definition at line 317 of file IncompBase.h.
double IncompressibleClass::polyfracintcentral |
( |
std::vector< std::vector< double > > const & |
coefficients, |
|
|
double |
x, |
|
|
double |
T, |
|
|
double |
Tbase |
|
) |
| |
|
inline |
Evaluates the indefinite integral of a centred two-dimensional polynomial divided by its 2nd independent variable
- Parameters
-
coefficients | vector containing the ordered coefficients |
x | double value that represents the current input in the 1st dimension |
T | double value that represents the current input in the 2nd dimension |
Tbase | central temperature for fitted function |
Definition at line 326 of file IncompBase.h.
double IncompressibleClass::polyfracintcentral |
( |
std::vector< std::vector< double > > const & |
coefficients, |
|
|
double |
x, |
|
|
double |
T1, |
|
|
double |
T0, |
|
|
double |
Tbase |
|
) |
| |
|
inline |
Evaluates the definite integral of a centred two-dimensional polynomial divided by its 2nd independent variable
- Parameters
-
coefficients | vector containing the ordered coefficients |
x | double value that represents the current input in the 1st dimension |
T1 | double value that represents the current input in the 2nd dimension |
T0 | double value that represents the reference state in the 2nd dimension |
Tbase | central temperature for fitted function |
Definition at line 336 of file IncompBase.h.
double IncompressibleClass::polyint |
( |
std::vector< double > const & |
coefficients, |
|
|
double |
T |
|
) |
| |
|
inline |
Evaluates the indefinite integral of a one-dimensional polynomial
- Parameters
-
coefficients | vector containing the ordered coefficients |
T | double value that represents the current input |
Definition at line 227 of file IncompBase.h.
double IncompressibleClass::polyint |
( |
std::vector< double > const & |
coefficients, |
|
|
double |
T1, |
|
|
double |
T0 |
|
) |
| |
|
inline |
Evaluates the definite integral of a one-dimensional polynomial
- Parameters
-
coefficients | vector containing the ordered coefficients |
T1 | double value that represents the current position |
T0 | double value that represents the reference state |
Definition at line 237 of file IncompBase.h.
double IncompressibleClass::polyint |
( |
std::vector< std::vector< double > > const & |
coefficients, |
|
|
double |
x, |
|
|
double |
T |
|
) |
| |
|
inline |
Evaluates the indefinite integral of a two-dimensional polynomial along the 2nd axis (T)
- Parameters
-
coefficients | vector containing the ordered coefficients |
x | double value that represents the current input in the 1st dimension |
T | double value that represents the current input in the 2nd dimension |
Definition at line 247 of file IncompBase.h.
double IncompressibleClass::polyint |
( |
std::vector< std::vector< double > > const & |
coefficients, |
|
|
double |
x, |
|
|
double |
T1, |
|
|
double |
T0 |
|
) |
| |
|
inline |
Evaluates the definite integral of a two-dimensional polynomial along the 2nd axis (T)
- Parameters
-
coefficients | vector containing the ordered coefficients |
x | double value that represents the current input in the 1st dimension |
T1 | double value that represents the current input in the 2nd dimension |
T0 | double value that represents the reference state in the 2nd dimension |
Definition at line 258 of file IncompBase.h.
double IncompressibleClass::polyval |
( |
std::vector< double > const & |
coefficients, |
|
|
double |
x |
|
) |
| |
|
inline |
Here we define the functions that should be used by the respective implementations. Please do no use any other method since this would break the purpose of this interface. Note that the functions below are supposed to be aliases to implementations declared elsewhere in this file.Evaluates a one-dimensional polynomial for the given coefficients
- Parameters
-
coefficients | vector containing the ordered coefficients |
x | double value that represents the current input |
Definition at line 210 of file IncompBase.h.
double IncompressibleClass::polyval |
( |
std::vector< std::vector< double > > const & |
coefficients, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
Evaluates a two-dimensional polynomial for the given coefficients
- Parameters
-
coefficients | vector containing the ordered coefficients |
x | double value that represents the current input in the 1st dimension |
y | double value that represents the current input in the 2nd dimension |
Definition at line 219 of file IncompBase.h.
void IncompressibleClass::setDebug |
( |
bool |
debug | ) |
|
|
inline |
bool IncompressibleClass::DEBUG |
|
protected |
std::string IncompressibleClass::description |
|
protected |
std::string IncompressibleClass::name |
|
protected |
std::string IncompressibleClass::reference |
|
protected |
double IncompressibleClass::Tmax |
|
protected |
double IncompressibleClass::Tmin |
|
protected |
double IncompressibleClass::TminPsat |
|
protected |
double IncompressibleClass::Tref |
|
protected |
The documentation for this class was generated from the following files: