.. # split from OESzFunctions.rst:32

.. oe:namespace:: OESz

.. meta::
   :keywords: OEEstimateSolvFreeEnergy

.. oe:function:: OEEstimateSolvFreeEnergy

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEEstimateSolvFreeEnergy(OEFreeFormSolvResults& results,
                                       OEChem::OEMolBase& dst,
                                       const OEChem::OEMCMolBase& src,
                                       const OEFreeFormSolvOptions& opts)

   .. oe:language:: python

      .. oe:api:: python

         OEEstimateSolvFreeEnergy(res: OEFreeFormSolvResults,
                                  dst: Union[OEGraphMol,OEMol,OEQMol],
                                  src: OEMol, opts: OEFreeFormSolvOptions) -> bool

   Estimates the Gibbs energy of solvation, according to the algorithm
   described in the theory section. Function returns ``true`` if the
   calculation was successful, ``false`` otherwise. Results are
   accessible from the ``results`` object (see
   :ref:`OEFreeFormSolvResults <OESz_OEFreeFormSolvResults>`). The second parameter returns
   the molecule representing the structure selected by the algorithm for
   solvation calculation. Third and fourth arguments are the input
   molecule and an object containing user options (see
   :ref:`OEFreeFormSolvOptions <OESz_OEFreeFormSolvOptions>`) respectively.

