#include <solver2.h>
Protected Member Functions | |
Solver2Base (const bool debug=false) | |
virtual | ~Solver2Base () |
virtual int | whichRegion (const FirstProp &fp, const SecondProp &sp)=0 |
virtual SteamCalculator | solve (const FirstProp &fp, const SecondProp &sp)=0 |
FirstProp | getFirstProp (SteamCalculator &S) |
SecondProp | getSecondProp (SteamCalculator &S) |
Protected Attributes | |
bool | debug |
This class is abstract. Use it when creating template Solver2 classes for particular combinations of variables, so that all Solver2 classes will have common methods whichRegion, solve, getFirstProp, etc, defined.
Note that dimensionally some properties are equivalent, for example specific internal energy and specific enthalpy. In these cases you need to use the FirstPropAlt and/or SecondPropAlt template parameter to specify which one you want. Values of these parameters are defined in common.h, such as SOLVE_ENTHALPY and SOLVE_IENERGY, etc.
FirstProp | (Units of) first property to be solved for | |
SecondProp | (Units of) second property to be solved for | |
FirstPropAlt | First property alternative, used to distinguish two properties having the same units | |
SecondPropAlt | Second property alternative, used to distinguish two properties having the same units |
Solver2Base< FirstProp, SecondProp, FirstPropAlt, SecondPropAlt >::Solver2Base | ( | const bool | debug = false |
) | [inline, protected] |
virtual Solver2Base< FirstProp, SecondProp, FirstPropAlt, SecondPropAlt >::~Solver2Base | ( | ) | [inline, protected, virtual] |
virtual int Solver2Base< FirstProp, SecondProp, FirstPropAlt, SecondPropAlt >::whichRegion | ( | const FirstProp & | fp, | |
const SecondProp & | sp | |||
) | [protected, pure virtual] |
Implemented in Solver2< FirstProp, SecondProp, FirstPropAlt, SecondPropAlt >.
virtual SteamCalculator Solver2Base< FirstProp, SecondProp, FirstPropAlt, SecondPropAlt >::solve | ( | const FirstProp & | fp, | |
const SecondProp & | sp | |||
) | [protected, pure virtual] |
Implemented in Solver2< FirstProp, SecondProp, FirstPropAlt, SecondPropAlt >.
FirstProp Solver2Base< FirstProp, SecondProp, FirstPropAlt, SecondPropAlt >::getFirstProp | ( | SteamCalculator & | S | ) | [inline, protected] |
SecondProp Solver2Base< FirstProp, SecondProp, FirstPropAlt, SecondPropAlt >::getSecondProp | ( | SteamCalculator & | S | ) | [inline, protected] |
bool Solver2Base< FirstProp, SecondProp, FirstPropAlt, SecondPropAlt >::debug [protected] |