PhaseChange Class Reference
[Heat Transfer]
#include <PhaseChange.h>
Detailed Description
This class enables defining phase change laws for a given material. These laws are predefined for a certain number of materials. The user can set himself a specific behavior for his own materials by defining a class that inherits from PhaseChange. The derived class must has at least the member function.int EnthalpyToTemperature(double &H, double &T, double &gamma)
Public Member Functions | |
| int | E2T (double &H, double &T, double &gamma) |
| Calculate temperature from enthalpy. | |
| virtual int | EnthalpyToTemperature (double &H, double &T, double &gamma) |
| Virtual function to calculate temperature from enthalpy. | |
| Material & | getMaterial () const |
| Return reference to Material instance. | |
| void | setMaterial (Material &m, int code) |
| Choose Material instance and material code. | |
| virtual | ~PhaseChange () |
| Destructor. | |
Member Function Documentation
| int E2T | ( | double & | H, | |
| double & | T, | |||
| double & | gamma | |||
| ) |
Calculate temperature from enthalpy.
This member function is to be called in any equation class that needs phase change laws.
- Parameters:
-
[in] H Enthalpy value [out] T Calculated temperature value [out] gamma Maximal slope of the curve H -> T
| virtual int EnthalpyToTemperature | ( | double & | H, | |
| double & | T, | |||
| double & | gamma | |||
| ) | [virtual] |
Virtual function to calculate temperature from enthalpy.
This member function must be implemented in any derived class in order to define user's own material laws.
- Parameters:
-
[in] H Enthalpy value [out] T Calculated temperature value [out] gamma Maximal slope of the curve H -> T