Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

SatCurve< Ordinate, Abscissa, OrdinateAlt, AbscissaAlt > Class Template Reference

Saturation curve solver for arbitrary variables. More...

#include <satcurve.h>

Inheritance diagram for SatCurve< Ordinate, Abscissa, OrdinateAlt, AbscissaAlt >:

SatCurveBase< Ordinate, Abscissa, OrdinateAlt, AbscissaAlt > List of all members.

Public Member Functions

Ordinate solve (const Abscissa &target, const int &flags=SAT_WATER)

Static Public Member Functions

Temperature getLowerBound (const int &flags)
Temperature getUpperBound (const int &flags)

Friends

class ZeroIn< SatCurve, Temperature, Abscissa >

Detailed Description

template<class Ordinate, class Abscissa, int OrdinateAlt = 0, int AbscissaAlt = 0>
class SatCurve< Ordinate, Abscissa, OrdinateAlt, AbscissaAlt >

Saturation curve solver for arbitrary variables.

To solve for the internal energy of saturated steam at rho=3.6 kg/m3, use:

                        SatCurve<SpecificEnergy,Density> C;
                        SpecificEnergy u = C.solve(3.6 * kg_m3,SAT_STEAM);

Warning:
This function makes no allowance for expansion of water at temperatures close to zero, so you will get wrong temperatures in this region when solving for <xxx,v>


Member Function Documentation

template<class Ordinate, class Abscissa, int OrdinateAlt = 0, int AbscissaAlt = 0>
Ordinate SatCurve< Ordinate, Abscissa, OrdinateAlt, AbscissaAlt >::solve const Abscissa &  target,
const int &  flags = SAT_WATER
[inline, virtual]
 

Parameters:
target Value of the Abscissa variable which is sought
flags SAT_WATER or SAT_STEAM
Returns:
the value of the Ordinate variable for saturated steam/water where the Abscissa fulfil the target value.
Note that this function will not solve for T < 3.984°C so you will get some errors there

Implements SatCurveBase< Ordinate, Abscissa, OrdinateAlt, AbscissaAlt >.


The documentation for this class was generated from the following file:
Generated on Tue Mar 22 19:07:06 2005 for freesteam by doxygen 1.3.8