Changes in src/atom.hpp [055861:49f802c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/atom.hpp
r055861 r49f802c 11 11 using namespace std; 12 12 13 /*********************************************** includes ***********************************/ 14 13 15 // include config.h 14 16 #ifdef HAVE_CONFIG_H … … 16 18 #endif 17 19 20 #include <iostream> 21 #include <vector> 18 22 19 #include <iostream>23 #include "tesselation.hpp" 20 24 21 #include "element.hpp" 22 #include "tesselation.hpp" 23 #include "vector.hpp" 25 /****************************************** forward declarations *****************************/ 26 27 class bond; 28 class element; 29 class Vector; 30 31 /********************************************** declarations *******************************/ 24 32 25 33 /** Single atom. … … 28 36 class atom : public TesselPoint { 29 37 public: 30 Vector x; //!< coordinate array of atom, giving position within cell 31 Vector v; //!< velocity array of atom 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 32 48 element *type; //!< pointing to element 33 49 atom *previous; //!< previous atom in molecule list … … 51 67 virtual ~atom(); 52 68 53 bool Output(int ElementNo, int AtomNo, ofstream *out, const char *comment = NULL) const; 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); 54 71 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(); 55 78 atom *GetTrueFather(); 56 79 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); 57 87 58 88 ostream & operator << (ostream &ost);
Note:
See TracChangeset
for help on using the changeset viewer.