PhaseChange Class Reference
This class enables defining phase change laws for a given material. More...
Public Member Functions  
virtual  ~PhaseChange () 
Destructor.  
int  E2T (real_t &H, real_t &T, real_t &gamma) 
Calculate temperature from enthalpy. More...  
virtual int  EnthalpyToTemperature (real_t &H, real_t &T, real_t &gamma) 
Virtual function to calculate temperature from enthalpy. More...  
void  setMaterial (Material &m, int code) 
Choose Material instance and material code.  
Material &  getMaterial () const 
Return reference to Material instance.  
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(real_t &H, real_t &T, real_t &gamma)
Member Function Documentation
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 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