.. index:: pair: class; forcefields::SpceCcl .. _doxid-classforcefields_1_1_spce_ccl: class forcefields::SpceCcl ========================== .. toctree:: :hidden: struct_forcefields_SpceCcl_Water.rst Overview ~~~~~~~~ SPC/E+CCl water potential. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class SpceCcl: public :ref:`forcefields::Ccl` { public: // structs struct :ref:`Water`; // construction :target:`SpceCcl`(); :target:`SpceCcl`(double cutoff, double switchingWidth); // methods void :ref:`computeHH_O_`(const int nAtoms, const double R[], double F[], double& U, const double b[]); void :ref:`computeHH_O_`(const int nAtoms, const double R[], double F[], double& U, const double b[], const bool fixed[]); char const* :ref:`getName`() const; }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // structs template struct :ref:`ChargeGroup`; struct :ref:`Vector3`; struct :ref:`Dtheta`; struct :ref:`Rho`; // methods double :ref:`getSwitchingWidth`() const; void :ref:`setSwitchingWidth`(double width); double :ref:`getCutoff`() const; void :ref:`setCutoff`(double cutoff); static double :ref:`applyPeriodicity0`(double r, double const period); static void :ref:`applyPeriodicity0`(double r[], double const periods[]); void :ref:`computeHH_O_`(const int nAtoms, const double R[], double F[], double& U, const double b[]); void :ref:`computeHH_O_`(const int nAtoms, const double R[], double F[], double& U, const double b[], const bool fixed[]); char const* :ref:`getName`() const; .. _details-classforcefields_1_1_spce_ccl: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ SPC/E+CCl water potential. This potential combines potential SPC/E (for intermolecular interactions) with potential CCL (for intramolecular interactions). The functions and parameters for the SPC/E are from :ref:`Berendsen, et al. `. References for potential CCL can be found in in class :ref:`Ccl ` 's documentation. The rules used to merge these two potentials were taken from :ref:`Amira, et al `. .. _doxid-classforcefields_1_1_spce_ccl_1spce_ccl_references: References ~~~~~~~~~~ :target:`doxid-classforcefields_1_1_spce_ccl_1berendsen1987` The Missing Term in Effective Pair Potentials. HJC Berendsen, JR Grigera et al. J. Phys. Chem. **1987**, vol. 91, p. 6269-6271 :target:`doxid-classforcefields_1_1_spce_ccl_1amira2004` Derivation and evaluation of a flexible SPC model for liquid water. S Amira, D Spangberg, K Hermansson, Chemical Physics, **2004**, vol. 303, p. 327-334 Methods ------- .. index:: pair: function; computeHH_O_ .. _doxid-classforcefields_1_1_spce_ccl_1a8941045e104c1ad45d5e3bfb8dd3ce9a: .. ref-code-block:: cpp :class: doxyrest-title-code-block void computeHH_O_(const int nAtoms, const double R[], double F[], double& U, const double b[]) Compute the forces and the energy. The order of the atoms is very important. For this function the order is H1, H1, H2, H2, etc ... , O1, O2, etc ... The numbers are for the molecules. The suffix HH_O\_ is to reminds the ordering of the atoms. It indicates the position of the atoms of the first molecule, while the underscore marks the locations of other atoms. .. warning:: Be careful with the order of the atoms. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - nAtoms - Number of :ref:`Atoms `. * - R - coordinates. * - F - Forces. * - U - Potential energy. * - b - Periodic boundaries. .. index:: pair: function; computeHH_O_ .. _doxid-classforcefields_1_1_spce_ccl_1ae380cc22053e2a6234d3a5785aa3769c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void computeHH_O_(const int nAtoms, const double R[], double F[], double& U, const double b[], const bool fixed[]) Compute the forces and the energy (with fixed atom optimisation). In a simulation, some atoms may be fixed (not allowed to move). Computing the interaction between two fixed atoms is useless. When the potential knows which atoms are fixed, it can avoid these useless computations. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - nAtoms - Number of :ref:`Atoms `. * - R - coordinates. * - F - Forces. * - U - Potential energy. * - b - Periodic boundaries. * - fixed - The length of the array must be equal to *nAtoms* in compute(). True when atom is fixed, false otherwise. .. rubric:: See also: Check compute() for the order of the atoms. .. index:: pair: function; getName .. _doxid-classforcefields_1_1_spce_ccl_1a0138ffb90405dd123fced6e77cd1d827: .. ref-code-block:: cpp :class: doxyrest-title-code-block char const* getName() const Name of the potential.