Value.h File Reference

Contains the interface to the Value class. More...

#include <string>
#include <iostream>
#include <libpf/value/UnitArray.h>
#include <libpf/value/Active.h>

Classes

class  GenericActive< valuetype >
 
class  GenericValue< valuetype >
 Model for physical quantities complete with unit of measurement, derivates and persistency. More...
 
class  GenericValue< valuetype >
 Model for physical quantities complete with unit of measurement, derivates and persistency. More...
 
class  GenericValue< valuetype >
 Model for physical quantities complete with unit of measurement, derivates and persistency. More...
 

Macros

#define ACTIVE
 

Typedefs

typedef GenericValue
< GenericActive< double > > 
Value
 

Functions

template<class valuetype >
GenericValue< valuetype > exp (const GenericValue< valuetype > &)
 exponential More...
 
template<class valuetype >
GenericValue< valuetype > log (const GenericValue< valuetype > &)
 natural logarithm More...
 
template<class valuetype >
GenericValue< valuetype > log10 (const GenericValue< valuetype > &)
 10-base logarithm More...
 
template<class valuetype >
GenericValue< valuetype > sin (const GenericValue< valuetype > &)
 sine More...
 
template<class valuetype >
GenericValue< valuetype > asin (const GenericValue< valuetype > &)
 arc sine More...
 
template<class valuetype >
GenericValue< valuetype > tan (const GenericValue< valuetype > &)
 tangent More...
 
template<class valuetype >
GenericValue< valuetype > atan (const GenericValue< valuetype > &)
 arc tangent More...
 
template<class valuetype >
GenericValue< valuetype > cos (const GenericValue< valuetype > &)
 cosine More...
 
template<class valuetype >
GenericValue< valuetype > acos (const GenericValue< valuetype > &)
 arc cosine More...
 
template<class valuetype >
GenericValue< valuetype > sinh (const GenericValue< valuetype > &)
 hyperbolic sine More...
 
template<class valuetype >
GenericValue< valuetype > cosh (const GenericValue< valuetype > &)
 hyperbolic cosine More...
 
template<class valuetype >
GenericValue< valuetype > sqrt (const GenericValue< valuetype > &)
 square root More...
 
template<class valuetype >
GenericValue< valuetype > curt (const GenericValue< valuetype > &)
 cubic root More...
 
template<class valuetype >
GenericValue< valuetype > pow (const GenericValue< valuetype > &, double)
 power More...
 
template<class valuetype >
GenericValue< valuetype > pow (const GenericValue< valuetype > &, valuetype)
 power More...
 
template<class valuetype >
GenericValue< valuetype > pow (const GenericValue< valuetype > &, const GenericValue< valuetype > &)
 power More...
 
template<class valuetype >
GenericValue< valuetype > fabs (const GenericValue< valuetype > &)
 absolute value More...
 
bool isNan (const Value &x)
 Return true if x is not a number. More...
 
bool isInfinite (const Value &x)
 Return true if x is an infinite number (greater than the maximum representable value) More...
 
template<class valuetype >
GenericValue< valuetype > operator+ (double lhs, const GenericValue< valuetype > &rhs)
 
template<class valuetype >
GenericValue< valuetype > operator- (double lhs, const GenericValue< valuetype > &rhs)
 
template<class valuetype >
GenericValue< valuetype > operator* (double lhs, const GenericValue< valuetype > &rhs)
 
template<class valuetype >
GenericValue< valuetype > operator/ (double lhs, const GenericValue< valuetype > &rhs)
 

Variables

const Value T0
 reference temperature, equals 298.15 K More...
 
const Value P0
 reference pressure, equals 101325.0 Pa More...
 
const double t0
 reference temperature, equals 298.15 More...
 
const double p0
 reference pressure, equals 101325.0 More...
 
const Value Tmin
 minimum allowable temperature, equals 50 K More...
 
const Value Tmax
 maximum allowable temperature, equals 1500 K More...
 
const double tmin
 minimum allowable temperature, equals 50 More...
 
const double tmax
 maximum allowable temperature, equals 1500 More...
 
const double pmin
 minimum allowable pressure, equals 1E-5 More...
 
const double pmax
 maximum allowable pressure, equals 1E10 More...
 
const Value Pmin
 minimum allowable pressure, equals 1E-5 Pa More...
 
const Value Pmax
 maximum allowable pressure, equals 1E10 Pa More...
 
const Value R
 gas constant, equals 8314.4 J/(kmol*K) More...
 
const double r
 gas constant, equals 8314.4 More...
 
const Value Zero
 adimensional 0.0 More...
 
const Value One
 adimensional 1.0 More...
 
const double zero
 0.0 More...
 
const double one
 1.0 More...
 

Detailed Description

Contains the interface to the Value class.

This file is part of LIBPF All rights reserved; do not distribute without permission.

Author
(C) Copyright 2004-2016 Paolo Greppi simevo s.r.l.

Macro Definition Documentation

#define ACTIVE

Typedef Documentation

Actually supported GenericValue template

Function Documentation

template<class valuetype >
GenericValue<valuetype> acos ( const GenericValue< valuetype > &  )

arc cosine

template<class valuetype >
GenericValue<valuetype> asin ( const GenericValue< valuetype > &  )

arc sine

template<class valuetype >
GenericValue<valuetype> atan ( const GenericValue< valuetype > &  )

arc tangent

template<class valuetype >
GenericValue<valuetype> cos ( const GenericValue< valuetype > &  )

cosine

template<class valuetype >
GenericValue<valuetype> cosh ( const GenericValue< valuetype > &  )

hyperbolic cosine

template<class valuetype >
GenericValue<valuetype> curt ( const GenericValue< valuetype > &  )

cubic root

template<class valuetype >
GenericValue<valuetype> exp ( const GenericValue< valuetype > &  )

exponential

template<class valuetype >
GenericValue<valuetype> fabs ( const GenericValue< valuetype > &  )

absolute value

bool isInfinite ( const Value x)

Return true if x is an infinite number (greater than the maximum representable value)

bool isNan ( const Value x)

Return true if x is not a number.

template<class valuetype >
GenericValue<valuetype> log ( const GenericValue< valuetype > &  )

natural logarithm

template<class valuetype >
GenericValue<valuetype> log10 ( const GenericValue< valuetype > &  )

10-base logarithm

template<class valuetype >
GenericValue<valuetype> operator* ( double  lhs,
const GenericValue< valuetype > &  rhs 
)
template<class valuetype >
GenericValue<valuetype> operator+ ( double  lhs,
const GenericValue< valuetype > &  rhs 
)
template<class valuetype >
GenericValue<valuetype> operator- ( double  lhs,
const GenericValue< valuetype > &  rhs 
)
template<class valuetype >
GenericValue<valuetype> operator/ ( double  lhs,
const GenericValue< valuetype > &  rhs 
)
template<class valuetype >
GenericValue<valuetype> pow ( const GenericValue< valuetype > &  ,
double   
)

power

template<class valuetype >
GenericValue<valuetype> pow ( const GenericValue< valuetype > &  ,
valuetype   
)

power

template<class valuetype >
GenericValue<valuetype> pow ( const GenericValue< valuetype > &  ,
const GenericValue< valuetype > &   
)

power

template<class valuetype >
GenericValue<valuetype> sin ( const GenericValue< valuetype > &  )

sine

template<class valuetype >
GenericValue<valuetype> sinh ( const GenericValue< valuetype > &  )

hyperbolic sine

template<class valuetype >
GenericValue<valuetype> sqrt ( const GenericValue< valuetype > &  )

square root

template<class valuetype >
GenericValue<valuetype> tan ( const GenericValue< valuetype > &  )

tangent

Variable Documentation

const Value One

adimensional 1.0

const double one

1.0

const Value P0

reference pressure, equals 101325.0 Pa

const double p0

reference pressure, equals 101325.0

const double pmax

maximum allowable pressure, equals 1E10

const Value Pmax

maximum allowable pressure, equals 1E10 Pa

const double pmin

minimum allowable pressure, equals 1E-5

const Value Pmin

minimum allowable pressure, equals 1E-5 Pa

const Value R

gas constant, equals 8314.4 J/(kmol*K)

const double r

gas constant, equals 8314.4

const Value T0

reference temperature, equals 298.15 K

const double t0

reference temperature, equals 298.15

const Value Tmax

maximum allowable temperature, equals 1500 K

const double tmax

maximum allowable temperature, equals 1500

const Value Tmin

minimum allowable temperature, equals 50 K

const double tmin

minimum allowable temperature, equals 50

const Value Zero

adimensional 0.0

const double zero

0.0