The Gibbs Energy Description of Nd:YAG System