#include <solver.h>
Inheritance diagram for Solver< MainProp, OtherProp, VaryProp, MainPropAlt, OtherPropAlt, VaryPropAlt >:

Public Member Functions | |
| Solver (const MainProp &mp, const OtherProp &op) | |
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;
| 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. |
1.3.8