Changeset 3f8238


Ignore:
Timestamp:
May 19, 2021, 7:06:29 PM (4 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
c4afdf3
Parents:
0c8989
git-author:
Frederik Heber <frederik.heber@…> (05/14/21 20:49:47)
git-committer:
Frederik Heber <frederik.heber@…> (05/19/21 19:06:29)
Message:

Added number of particle types getter to EmpiricalPotential.

Location:
src/Potentials
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/Potentials/EmpiricalPotential.hpp

    r0c8989 r3f8238  
    8888  virtual const BindingModel& getBindingModel() const=0;
    8989
     90  /**
     91   * Returns the number of particle types associated with the potential.
     92   *
     93   * \return number of particle types
     94   */
     95  virtual unsigned int getParticleTypeNumber() const=0;
     96
    9097protected:
    9198  /** Default constructor for class EmpiricalPotential.
  • src/Potentials/Specifics/ConstantPotential.hpp

    r0c8989 r3f8238  
    191191  { return bindingmodel; }
    192192
     193  /**
     194   * Returns the number of particle types associated with the potential.
     195   *
     196   * \return number of particle types
     197   */
     198  unsigned int getParticleTypeNumber() const
     199  { return 0; }
     200
    193201private:
    194202  //!> parameter vector with parameters as in enum parameter_enum_t
  • src/Potentials/Specifics/FourBodyPotential_Improper.hpp

    r0c8989 r3f8238  
    6767  { return bindingmodel; }
    6868
     69  /**
     70   * Returns the number of particle types associated with the potential.
     71   *
     72   * \return number of particle types
     73   */
     74  unsigned int getParticleTypeNumber() const
     75  { return 4; }
     76
    6977private:
    7078
  • src/Potentials/Specifics/FourBodyPotential_Torsion.hpp

    r0c8989 r3f8238  
    198198  { return bindingmodel; }
    199199
     200  /**
     201   * Returns the number of particle types associated with the potential.
     202   *
     203   * \return number of particle types
     204   */
     205  unsigned int getParticleTypeNumber() const
     206  { return 4; }
     207
    200208protected:
    201209  virtual result_t function_theta(
  • src/Potentials/Specifics/ManyBodyPotential_Tersoff.hpp

    r0c8989 r3f8238  
    220220  { return bindingmodel; }
    221221
     222  /**
     223   * Returns the number of particle types associated with the potential.
     224   *
     225   * \return number of particle types
     226   */
     227  unsigned int getParticleTypeNumber() const
     228  { return 2; }
     229
    222230private:
    223231  /** This function represents the cutoff \f$ f_C \f$.
  • src/Potentials/Specifics/PairPotential_Harmonic.hpp

    r0c8989 r3f8238  
    193193  { return bindingmodel; }
    194194
     195  /**
     196   * Returns the number of particle types associated with the potential.
     197   *
     198   * \return number of particle types
     199   */
     200  unsigned int getParticleTypeNumber() const
     201  { return 2; }
     202
    195203private:
    196204  //!> parameter vector with parameters as in enum parameter_enum_t
  • src/Potentials/Specifics/PairPotential_LennardJones.hpp

    r0c8989 r3f8238  
    194194  { return bindingmodel; }
    195195
     196  /**
     197   * Returns the number of particle types associated with the potential.
     198   *
     199   * \return number of particle types
     200   */
     201  unsigned int getParticleTypeNumber() const
     202  { return 2; }
     203
    196204private:
    197205  /** Sets some sensible default parameter values.
  • src/Potentials/Specifics/PairPotential_Morse.hpp

    r0c8989 r3f8238  
    195195  { return bindingmodel; }
    196196
     197  /**
     198   * Returns the number of particle types associated with the potential.
     199   *
     200   * \return number of particle types
     201   */
     202  unsigned int getParticleTypeNumber() const
     203  { return 2; }
     204
    197205private:
    198206  //!> parameter vector with parameters as in enum parameter_enum_t
  • src/Potentials/Specifics/ThreeBodyPotential_Angle.hpp

    r0c8989 r3f8238  
    195195  { return bindingmodel; }
    196196
     197  /**
     198   * Returns the number of particle types associated with the potential.
     199   *
     200   * \return number of particle types
     201   */
     202  unsigned int getParticleTypeNumber() const
     203  { return 3; }
     204
    197205private:
    198206  result_t
Note: See TracChangeset for help on using the changeset viewer.