Ignore:
Timestamp:
Jul 10, 2009, 12:48:05 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
22f587
Parents:
a8c8ba
Message:

molecule::CenterInBox puts atoms now periodically into the given box, new function molecule::TranslatePeriodically, BUGFIX: molecule::ReturnFullMatrixforSymmetrical()

  • molecule::CenterInBox() has no more a vector as a parameter, but instead enforces the periodicity of the simulation box, i.e. all atoms out of bounds are put back in with wrap-around at boundaries. Call of function was changed in everywhere.
  • in ParseCommandLineParameters() a SetBoxDimension was missing in certain Center...() commands.
  • new function molecule::TranslatePeriodically translates all atoms of a molecule while adhering to the periodicity of the domain
  • new function vector::InverseMatrix() returns the hard-encoded inverse of 3x3 real matrix
  • BUGFIX: molecule::ReturnFullMatrixforSymmetrical()'s assignment from 6-doubles to 9-doubles was all wrong (symmetric to full 3x3 matrix)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecules.hpp

    ra8c8ba r6fb785  
    252252        void CountElements();
    253253        void CalculateOrbitals(class config &configuration);
    254         bool CenterInBox(ofstream *out, Vector *BoxLengths);
     254        bool CenterInBox(ofstream *out);
    255255        void CenterEdge(ofstream *out, Vector *max);
    256256        void CenterOrigin(ofstream *out, Vector *max);
    257257        void CenterGravity(ofstream *out, Vector *max);
    258258        void Translate(const Vector *x);
     259        void TranslatePeriodically(const Vector *trans);
    259260        void Mirror(const Vector *x);
    260261        void Align(Vector *n);
Note: See TracChangeset for help on using the changeset viewer.