.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEMolSmirnoff



.. _OEMolSmirnoff_OESmirnoffVdWData:

.. oe:class:: OESmirnoffVdWData


   .. attention::

      |TWOLANGUAGE|

   .. oe:api::


      class OESmirnoffVdWData : public OEMolSmirnoff::OESmirnoffData

   The OESmirnoffVdWData class provides the ability to add new parameters and modify existing
   proper torsion parameters in the SMIRNOFF force field that has the functional
   form: :math:`V_v = \epsilon_{ij}\left[\left(\frac{R_{ij}}{r_{ij}}\right)^{12}-2\left(\frac{R_{ij}}{r_{ij}}\right)^6\right]` (see :ref:`section_smirnoff`).


   .. seealso::

      * :ref:`OESmirnoffData <OEMolSmirnoff_OESmirnoffData>` class

   The following methods are publicly inherited from :ref:`OESmirnoffData <OEMolSmirnoff_OESmirnoffData>` class:
    * :oe:meth:`GetID<OEMolSmirnoff::OESmirnoffData::GetID>`
    * :oe:meth:`GetSmarts<OEMolSmirnoff::OESmirnoffData::GetSmarts>`

   The class defines the following public methods:
    * :oe:meth:`GetEpsilon<OEMolSmirnoff::OESmirnoffVdWData::GetEpsilon>`
    * :oe:meth:`GetRadius<OEMolSmirnoff::OESmirnoffVdWData::GetRadius>`
    * :oe:meth:`SetParams<OEMolSmirnoff::OESmirnoffVdWData::SetParams>`

   .. oe:method:: Constructors

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

         .. oe:api::

            OESmirnoffVdWData()
            OESmirnoffVdWData(const std::string& id, const std::string& smarts)
            OESmirnoffVdWData(const OESmirnoffVdWData&)

      .. oe:language:: python

         .. oe:api:: python

            OESmirnoffVdWData() -> OESmirnoffVdWData
            OESmirnoffVdWData(id: str, smarts: str) -> OESmirnoffVdWData
            OESmirnoffVdWData(arg2: OESmirnoffVdWData) -> OESmirnoffVdWData

   .. oe:method:: operator=
      :language: c++

      .. oe:api::

         OESmirnoffVdWData& operator=(const OESmirnoffVdWData&)

      Assignment operator.

   .. oe:method:: GetEpsilon

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

         .. oe:api::

            double GetEpsilon() const

      .. oe:language:: python

         .. oe:api:: python

            GetEpsilon() -> float

      Returns the epsilon value (:math:`\epsilon_{ij}`) in kcal/mol for VdW term

   .. oe:method:: GetRadius

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

         .. oe:api::

            double GetRadius() const

      .. oe:language:: python

         .. oe:api:: python

            GetRadius() -> float

      Returns the radius in (:math:`R_{ij}`) Angstrom associated with VdW term

   .. oe:method:: SetParams

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

         .. oe:api::

            bool SetParams(const double eplison, const double radius)

      .. oe:language:: python

         .. oe:api:: python

            SetParams(eplison: float, radius: float) -> bool

      Sets the epsilon and radius of the VdW interaction term
