Ignore:
Timestamp:
Nov 29, 2017, 11:06:25 PM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued_betteresults
Children:
2a0a651
Parents:
9f1fee5
git-author:
Frederik Heber <frederik.heber@…> (08/10/17 15:35:45)
git-committer:
Frederik Heber <frederik.heber@…> (11/29/17 23:06:25)
Message:

Rewrote annealWithBondGraph_BarzilaiBorwein() to simply distinguish expansion and contraction in bonds.

  • we shift the neighboring set away in case of expansion and towards in case of contraction.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Dynamics/BondVectors.hpp

    r9f1fee5 r0dd99b  
    5656      const size_t &_step);
    5757
     58  /** Returns the number of bonds whose bond vectors have been registered.
     59   *
     60   * \param number of bonds
     61   */
     62  size_t size() const
     63  { return container.size(); }
     64
    5865  /** Getter for the sorted bonds.
    5966   *
     
    144151      forcestore_t _forcestore) const;
    145152
     153  /** Calculates the \a _walkkerGradient projected onto the bond vector for
     154   * every of \a _walker's bonds.
     155   *
     156   * \param _walker atom
     157   * \param _walkerGradient atom's gradient
     158   * \param _timestep time step
     159   * \param _projected_forces list of forces for every \a whichatom_t and every bond
     160   */
     161  void getProjectedGradientsForAtomAtStep(
     162      const atom &_walker,
     163      const Vector &_walkerGradient,
     164      const size_t _timestep,
     165      std::vector< std::vector<double> > &_projected_forces) const;
     166
     167  // knowing the number of bonds in total, we can setup the storage for the
     168  // projected forces
     169  enum whichatom_t {
     170    leftside=0,
     171    rightside=1,
     172    MAX_sides
     173  };
     174
    146175private:
    147176  /** Calculates the bond vector for each bond in the internal container.
     
    177206  //!> internal map for bond Bondvector association
    178207  mutable mapped_t current_mapped_vectors;
     208
    179209};
    180210
Note: See TracChangeset for help on using the changeset viewer.