Who can share a script to calculate free energy (Gibbs or other) of a structure

Hi, all. I am trying to calculate the free engery of a crystal containing water and polymers. Who have the script and can share with me? Thanks.