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

.. oe:namespace:: OEMolSmirnoff



.. _OEMolSmirnoff_OESmirnoffBendData:

.. oe:class:: OESmirnoffBendData


   .. attention::

      |TWOLANGUAGE|

   .. oe:api::


      class OESmirnoffBendData : public OEMolSmirnoff::OESmirnoffData

   The OESmirnoffBendData class provides the ability to add new parameters and modify existing
   angle bending parameters in the SMIRNOFF force field that has the functional
   form: :math:`V_a = k_a(\alpha - \alpha_0)^2` (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:`GetEquilibriumAngle<OEMolSmirnoff::OESmirnoffBendData::GetEquilibriumAngle>`
    * :oe:meth:`GetEneConst<OEMolSmirnoff::OESmirnoffBendData::GetEneConst>`
    * :oe:meth:`SetParams<OEMolSmirnoff::OESmirnoffBendData::SetParams>`

   .. oe:method:: Constructors

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

         .. oe:api::

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

      .. oe:language:: python

         .. oe:api:: python

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

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

      .. oe:api::

         OESmirnoffBendData& operator=(const OESmirnoffBendData&)

      Assignment operator.

   .. oe:method:: GetEquilibriumAngle

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

         .. oe:api::

            double GetEquilibriumAngle() const

      .. oe:language:: python

         .. oe:api:: python

            GetEquilibriumAngle() -> float

      Returns the equilibrium angle (:math:`\alpha_0`) in degrees associated with the parameter

   .. oe:method:: GetEneConst

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

         .. oe:api::

            double GetEneConst() const

      .. oe:language:: python

         .. oe:api:: python

            GetEneConst() -> float

      Returns the energy constant (:math:`k_a`) kcal/mol/radian associated with the parameter

   .. oe:method:: SetParams

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

         .. oe:api::

            bool SetParams(const double eneConst, const double angle)

      .. oe:language:: python

         .. oe:api:: python

            SetParams(eneConst: float, angle: float) -> bool

      Sets equilibrium angle (:math:`\alpha_0`) in degrees and energy constant (:math:`k_a`) kcal/mol/radian for the the parameter

