Ignore:
Timestamp:
Apr 23, 2008, 5:33:51 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
76b3dc
Parents:
58ab18
Message:

molecuilder reads and stored ion velocities

Class atom has new variables velocity vector v and integer FixedIon. These are parse during config:load(), and stored via atom:Output() (but only if norm of v is above MYEPSILON), values are copied to son atoms/nodes in AddCopyAtom and AddHydrogenAtom (there: no fancy splitting of the vector as done with the InBondVector)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecules.hpp

    r58ab18 r090299  
    345345class atom {
    346346  public:
    347     vector x;    //!< coordinate array of atom, giving position within cell
     347    vector x;       //!< coordinate array of atom, giving position within cell
     348    vector v;       //!< velocity array of atom
    348349    element *type;  //!< pointing to element
    349350    atom *previous; //!< previous atom in molecule list
     
    352353    atom *Ancestor; //!< "Father" in Depth-First-Search
    353354    char *Name;                 //!< unique name used during many-body bond-order fragmentation
     355    int FixedIon;   //!< config variable that states whether forces act on the ion or not
    354356    int *sort;      //!< sort criteria
    355357    int nr;         //!< continuous, unique number
Note: See TracChangeset for help on using the changeset viewer.