.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEFormalPartialCharges

.. oe:function:: OEFormalPartialCharges

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

      .. oe:api::

         void OEFormalPartialCharges(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEFormalPartialCharges(mol: Union[OEGraphMol,OEMol,OEQMol]) -> None

   Set the partial charge property of each atom in a molecule to its
   formal charge.  This is equivalent of calling the
   :oe:meth:`OEChem::OEAtomBase::SetPartialCharge` method on every atom
   with the value returned from
   :oe:meth:`OEChem::OEAtomBase::GetFormalCharge`.

