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

Solver< MainProp, OtherProp, VaryProp, MainPropAlt, OtherPropAlt, VaryPropAlt > Class Template Reference

Single-property steam solver. More...

#include <solver.h>

Inheritance diagram for Solver< MainProp, OtherProp, VaryProp, MainPropAlt, OtherPropAlt, VaryPropAlt >:

SolverBase< MainProp, OtherProp, VaryProp, MainPropAlt, OtherPropAlt, VaryPropAlt > DesignByContract List of all members.

Public Member Functions

 Solver (const MainProp &mp, const OtherProp &op)

Detailed Description

template<class MainProp, class OtherProp, class VaryProp, int MainPropAlt = 0, int OtherPropAlt = 0, int VaryPropAlt = 0>
class Solver< MainProp, OtherProp, VaryProp, MainPropAlt, OtherPropAlt, VaryPropAlt >

Single-property steam solver.

This class will solve for (temperature or pressure) plus another steam property, by varying (pressure or temperature) until the desired value of the other steam property is found.

To find p such that (T=600K, u=1500 kJ/kg):

        Solver<Temperature,SpecificEnergy,Pressure> PS1(600 * Kelvin,1500 * kJ_kg);
        SteamCalculator S = PS1.solve(0.00001 * kJ_kg, 0.1 * Pascal);
        cout << S.pres() << end;

Parameters:
MainProp is the one of the correlation properties. In other words it can be fed directly into the known correlation equations.
OtherProp is the quantity to be solved for. In other words it is not correlated for and must be solved for by varying VaryProp.
VaryProp is the quantity which will be varied to in order to home in on the desired value of OtherProp.


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