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