Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/atom.hpp

    r49f802c r055861  
    1111using namespace std;
    1212
    13 /*********************************************** includes ***********************************/
    14 
    1513// include config.h
    1614#ifdef HAVE_CONFIG_H
     
    1816#endif
    1917
     18
    2019#include <iostream>
    21 #include <vector>
    2220
     21#include "element.hpp"
    2322#include "tesselation.hpp"
    24 
    25 /****************************************** forward declarations *****************************/
    26 
    27 class bond;
    28 class element;
    29 class Vector;
    30 
    31 /********************************************** declarations *******************************/
     23#include "vector.hpp"
    3224
    3325/** Single atom.
     
    3628class atom : public TesselPoint {
    3729  public:
    38     struct
    39     {
    40       vector<Vector> R;  //!< position vector
    41       vector<Vector> U;  //!< velocity vector
    42       vector<Vector> F;  //!< last force vector
    43     } Trajectory;
    44 
    45     Vector x;       //!< coordinate vector of atom, giving last position within cell
    46     Vector v;       //!< velocity vector of atom, giving last velocity within cell
    47     Vector F;       //!< Force vector of atom, giving last force within cell
     30    Vector x;       //!< coordinate array of atom, giving position within cell
     31    Vector v;       //!< velocity array of atom
    4832    element *type;  //!< pointing to element
    4933    atom *previous; //!< previous atom in molecule list
     
    6751  virtual ~atom();
    6852
    69   bool Output(ofstream *out, int ElementNo, int AtomNo, const char *comment = NULL) const;
    70   bool Output(ofstream *out, int *ElementNo, int *AtomNo, const char *comment = NULL);
     53  bool Output(int ElementNo, int AtomNo, ofstream *out, const char *comment = NULL) const;
    7154  bool OutputXYZLine(ofstream *out) const;
    72   bool OutputTrajectory(ofstream *out, int *ElementNo, int *AtomNo, int step) const;
    73   bool OutputTrajectoryXYZ(ofstream *out, int step) const;
    74   bool OutputBondOfAtom(ofstream *out, int *NumberOfBondsPerAtom, bond ***ListOfBondsPerAtom) const;
    75 
    76   void EqualsFather ( atom *ptr, atom **res );
    77   void CorrectFather();
    7855  atom *GetTrueFather();
    7956  bool Compare(const atom &ptr);
    80 
    81   double DistanceToVector(Vector &origin);
    82   double DistanceSquaredToVector(Vector &origin);
    83 
    84   void AddKineticToTemperature(double *temperature, int step) const;
    85 
    86   bool IsInParallelepiped(Vector offset, double *parallelepiped);
    8757
    8858  ostream & operator << (ostream &ost);
Note: See TracChangeset for help on using the changeset viewer.