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/vector.hpp

    ra8c8ba r6fb785  
    4040        void Scale(double factor);
    4141        void MatrixMultiplication(double *M);
     42        double * InverseMatrix(double *A);
    4243        void InverseMatrixMultiplication(double *M);
    4344        void KeepPeriodic(ofstream *out, double *matrix);
Note: See TracChangeset for help on using the changeset viewer.