Changeset 567b7f for molecuilder/src/atom.hpp
- Timestamp:
- Oct 7, 2009, 1:11:28 PM (16 years ago)
- Children:
- 0cd3b2
- Parents:
- 8ffe32
- git-author:
- Frederik Heber <heber@…> (10/07/09 12:14:15)
- git-committer:
- Frederik Heber <heber@…> (10/07/09 13:11:28)
- File:
-
- 1 edited
-
molecuilder/src/atom.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/atom.hpp
r8ffe32 r567b7f 18 18 19 19 #include <iostream> 20 #include <vector> 20 21 21 22 #include "element.hpp" … … 28 29 class atom : public TesselPoint { 29 30 public: 30 Vector x; //!< coordinate array of atom, giving position within cell 31 Vector v; //!< velocity array of atom 31 struct 32 { 33 vector<Vector> R; //!< position vector 34 vector<Vector> U; //!< velocity vector 35 vector<Vector> F; //!< last force vector 36 } Trajectory; 37 38 Vector x; //!< coordinate vector of atom, giving last position within cell 39 Vector v; //!< velocity vector of atom, giving last velocity within cell 40 Vector F; //!< Force vector of atom, giving last force within cell 32 41 element *type; //!< pointing to element 33 42 atom *previous; //!< previous atom in molecule list … … 51 60 virtual ~atom(); 52 61 53 bool Output( int ElementNo, int AtomNo, ofstream *out, const char *comment = NULL) const;54 bool Output( int *ElementNo, int *AtomNo, ofstream *out, const char *comment = NULL);62 bool Output(ofstream *out, int ElementNo, int AtomNo, const char *comment = NULL) const; 63 bool Output(ofstream *out, int *ElementNo, int *AtomNo, const char *comment = NULL); 55 64 bool OutputXYZLine(ofstream *out) const; 65 bool OutputTrajectory(ofstream *out, int *ElementNo, int *AtomNo, int step) const; 56 66 void EqualsFather ( atom *ptr, atom **res ); 57 67 void CorrectFather(); … … 66 76 }; 67 77 78 68 79 ostream & operator << (ostream &ost, const atom &a); 69 80
Note:
See TracChangeset
for help on using the changeset viewer.
