#include <Timestep.h>
Public Methods | |
| void | get_transform_vectors (float v1[3], float v2[3], float v3[3]) const |
| Get vectors corresponding to periodic image vectors. More... | |
| void | get_transforms (Matrix4 &a, Matrix4 &b, Matrix4 &c) const |
| Compute transformations from current unit cell dimensions. More... | |
| void | get_transform_from_cell (const int *cell, Matrix4 &trans) const |
| Convert (na, nb, nc) tuple to a transformation based on the current unit cell. More... | |
| Timestep (int n) | |
| constructor: # atoms. More... | |
| Timestep (const Timestep &ts) | |
| copy constructor. More... | |
| ~Timestep (void) | |
| destructor. More... | |
| void | zero_values () |
| set the coords to 0. More... | |
Public Attributes | |
| int | num |
| number of atoms this timestep is for. More... | |
| float * | pos |
| coords for all atoms, as (x,y,z), (x,y,z), ... More... | |
| float * | vel |
| velocites for all atoms as (vx,vy,vz), ... More... | |
| float * | force |
| forces for all atoms. More... | |
| float * | user |
| Demand-allocated 1-float-per-atom 'User' data. More... | |
| float * | user2 |
| Demand-allocated 1-float-per-atom 'User' data. More... | |
| float * | user3 |
| Demand-allocated 1-float-per-atom 'User' data. More... | |
| float * | user4 |
| Demand-allocated 1-float-per-atom 'User' data. More... | |
| float | energy [TSENERGIES] |
| energy for this step; by default, all 0. More... | |
| int | timesteps |
| timesteps elapsed so far (if known). More... | |
| double | physical_time |
| Physical time corresponding to this timestep. More... | |
| float | a_length |
| Size and shape of unit cell. More... | |
| float | b_length |
| Size and shape of unit cell. More... | |
| float | c_length |
| Size and shape of unit cell. More... | |
| float | alpha |
| Size and shape of unit cell. More... | |
| float | beta |
| Size and shape of unit cell. More... | |
| float | gamma |
| Size and shape of unit cell. More... | |
Definition at line 43 of file Timestep.h.
|
|
constructor: # atoms.
Definition at line 32 of file Timestep.C. References a_length, alpha, b_length, beta, c_length, energy, force, gamma, NULL, num, physical_time, pos, timesteps, TSENERGIES, user, user2, user3, user4, and vel. |
|
|
copy constructor.
Definition at line 50 of file Timestep.C. References a_length, alpha, b_length, beta, c_length, energy, force, gamma, NULL, num, physical_time, pos, timesteps, user, user2, user3, user4, and vel. |
|
|
destructor.
Definition at line 111 of file Timestep.C. |
|
||||||||||||
|
Convert (na, nb, nc) tuple to a transformation based on the current unit cell.
Definition at line 176 of file Timestep.C. References get_transform_vectors, Matrix4::identity, Matrix4::mat, and mat. Referenced by normal_atom_coord, GeometryMol::normal_atom_coord, PickModeCenter::pick_molecule_end, and PickModeMove::pick_molecule_move. |
|
||||||||||||||||
|
Get vectors corresponding to periodic image vectors.
Definition at line 132 of file Timestep.C. References alpha, b_length, beta, c_length, DEGTORAD, gamma, and vec_zero. Referenced by get_transform_from_cell, and get_transforms. |
|
||||||||||||||||
|
Compute transformations from current unit cell dimensions.
Definition at line 168 of file Timestep.C. References get_transform_vectors, and Matrix4::translate. Referenced by compute_pbcminmax, measure_pbc2onc, and measure_pbc_neighbors. |
|
|
set the coords to 0.
Definition at line 122 of file Timestep.C. References energy, num, pos, timesteps, and TSENERGIES. Referenced by DrawMolecule::duplicate_frame. |
|
|
Size and shape of unit cell.
Definition at line 59 of file Timestep.h. Referenced by get_periodic, measure_gofr, measure_surface, MolFilePlugin::next, set_periodic, Timestep, and MolFilePlugin::write_timestep. |
|
|
Size and shape of unit cell.
Definition at line 59 of file Timestep.h. Referenced by get_periodic, get_transform_vectors, measure_gofr, measure_surface, MolFilePlugin::next, set_periodic, Timestep, and MolFilePlugin::write_timestep. |
|
|
Size and shape of unit cell.
Definition at line 59 of file Timestep.h. Referenced by get_periodic, get_transform_vectors, measure_gofr, measure_surface, MolFilePlugin::next, set_periodic, Timestep, and MolFilePlugin::write_timestep. |
|
|
Size and shape of unit cell.
Definition at line 59 of file Timestep.h. Referenced by get_periodic, get_transform_vectors, measure_gofr, measure_surface, MolFilePlugin::next, set_periodic, Timestep, and MolFilePlugin::write_timestep. |
|
|
Size and shape of unit cell.
Definition at line 59 of file Timestep.h. Referenced by get_periodic, get_transform_vectors, measure_gofr, measure_surface, MolFilePlugin::next, set_periodic, Timestep, and MolFilePlugin::write_timestep. |
|
|
energy for this step; by default, all 0.
Definition at line 54 of file Timestep.h. Referenced by IMDMgr::check_event, Timestep, and zero_values. |
|
|
forces for all atoms.
Definition at line 48 of file Timestep.h. Referenced by Molecule::get_new_frames, Timestep, and ~Timestep. |
|
|
Size and shape of unit cell.
Definition at line 59 of file Timestep.h. Referenced by get_periodic, get_transform_vectors, measure_gofr, measure_surface, MolFilePlugin::next, set_periodic, Timestep, and MolFilePlugin::write_timestep. |
|
|
number of atoms this timestep is for.
Definition at line 45 of file Timestep.h. Referenced by measure_pbc_neighbors, Timestep, timestep, velocities, MolFilePlugin::write_timestep, and zero_values. |
|
|
Physical time corresponding to this timestep.
Definition at line 56 of file Timestep.h. Referenced by AtomColor::find, get_physical_time, MolFilePlugin::next, set_physical_time, and Timestep. |
|
|
|
timesteps elapsed so far (if known).
Definition at line 55 of file Timestep.h. Referenced by IMDMgr::check_event, molinfo_get, molinfo_set, Timestep, and zero_values. |
|
|
Demand-allocated 1-float-per-atom 'User' data.
Definition at line 49 of file Timestep.h. Referenced by AtomColor::find, Timestep, and ~Timestep. |
|
|
Demand-allocated 1-float-per-atom 'User' data.
Definition at line 50 of file Timestep.h. Referenced by AtomColor::find, Timestep, and ~Timestep. |
|
|
Demand-allocated 1-float-per-atom 'User' data.
Definition at line 51 of file Timestep.h. Referenced by AtomColor::find, Timestep, and ~Timestep. |
|
|
Demand-allocated 1-float-per-atom 'User' data.
Definition at line 52 of file Timestep.h. Referenced by AtomColor::find, Timestep, and ~Timestep. |
|
|
velocites for all atoms as (vx,vy,vz), ...
Definition at line 47 of file Timestep.h. Referenced by AtomColor::find, MolFilePlugin::next, Timestep, velocities, MolFilePlugin::write_timestep, and ~Timestep. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002