(9)

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.
 
MaterialgetMaterial () 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

◆ E2T()

int E2T ( real_t H,
real_t T,
real_t gamma 
)

Calculate temperature from enthalpy.

This member function is to be called in any equation class that needs phase change laws.

Parameters
[in]HEnthalpy value
[out]TCalculated temperature value
[out]gammaMaximal slope of the curve H -> T

◆ EnthalpyToTemperature()

virtual int EnthalpyToTemperature ( real_t H,
real_t T,
real_t 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]HEnthalpy value
[out]TCalculated temperature value
[out]gammaMaximal slope of the curve H -> T