Ignore:
Timestamp:
May 24, 2021, 7:30:29 PM (4 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
889067e
Parents:
20fc6f
Message:

FIX: SaveEnergiesAction did not use correct units.

  • temperature was off by about 1e-4 due to that.
  • kinetic energy lacked factor of 0.5.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/atom_atominfo.cpp

    r20fc6f r4b2207  
    467467double AtomInfo::getKineticEnergy(const unsigned int _step) const
    468468{
    469   return getMass() * getAtomicVelocityAtStep(_step).NormSquared();
     469  return .5 * getMass() * getAtomicVelocityAtStep(_step).NormSquared();
    470470}
    471471
Note: See TracChangeset for help on using the changeset viewer.