votca 2024.2-dev
|
class for reading H5MD trajectory. More...
#include <h5mdtrajectoryreader.h>
Public Member Functions | |
H5MDTrajectoryReader () | |
~H5MDTrajectoryReader () override | |
bool | Open (const std::string &file) override |
Opens original trajectory file. | |
void | Initialize (Topology &top) |
Initialize data structures. | |
bool | FirstFrame (Topology &conf) override |
Reads in the first frame. | |
bool | NextFrame (Topology &conf) override |
Reads in the next frame. | |
void | Close () override |
Closes original trajectory file. | |
Public Member Functions inherited from votca::csg::TrajectoryReader | |
virtual | ~TrajectoryReader ()=default |
Private Types | |
enum | DatasetState { NONE , STATIC , TIMEDEPENDENT } |
Private Member Functions | |
template<typename T1 > | |
T1 * | ReadVectorData (hid_t ds, hid_t ds_data_type, Index row) |
Reads dataset that contains vectors. | |
template<typename T1 > | |
T1 * | ReadScalarData (hid_t ds, hid_t ds_data_type, Index row) |
Reads dataset with scalar values. | |
template<typename T1 > | |
void | ReadStaticData (hid_t ds, hid_t ds_data_type, std::unique_ptr< T1 > &outbuf) |
void | ReadBox (hid_t ds, hid_t ds_data_type, Index row, std::unique_ptr< double[]> &data_out) |
double | ReadScaleFactor (const hid_t &ds, const std::string &unit_type) |
void | CheckError (hid_t hid, std::string error_message) |
bool | GroupExists (hid_t file_id, std::string path) |
Private Attributes | |
hid_t | file_id_ |
hid_t | ds_atom_position_ |
hid_t | ds_atom_force_ |
hid_t | ds_atom_velocity_ |
hid_t | ds_atom_id_ |
hid_t | ds_edges_group_ |
hid_t | particle_group_ |
hid_t | atom_position_group_ |
hid_t | atom_force_group_ |
hid_t | atom_velocity_group_ |
hid_t | atom_id_group_ |
hid_t | edges_group_ |
Index | rank_ |
std::string | fname_ |
bool | first_frame_ |
DatasetState | has_velocity_ |
DatasetState | has_force_ |
DatasetState | has_id_group_ |
DatasetState | has_box_ |
bool | file_opened_ |
Index | idx_frame_ |
Index | max_idx_frame_ |
Index | N_particles_ |
int | vec_components_ |
bool | unit_module_enabled_ = false |
double | length_scaling_ = 1.0 |
double | velocity_scaling_ = 1.0 |
double | force_scaling_ = 1.0 |
std::unordered_map< std::string, double > | votca_units_scaling_factors |
boost::regex | suffix_units = boost::regex("^([a-z]+)([0-9+-]+)") |
Eigen::Matrix3d | m |
Additional Inherited Members | |
Static Public Member Functions inherited from votca::csg::TrajectoryReader | |
static void | RegisterPlugins (void) |
class for reading H5MD trajectory.
This class implements the H5MD trajectory reading function. The format of the H5MD file is defined in Pierre de Buyl, Peter H. Colberg, Felix Höfling, H5MD: A structured, efficient, and portable file format for molecular data, http://dx.doi.org/10.1016/j.cpc.2014.01.018 The current reference is available here: http://nongnu.org/h5md/
Definition at line 48 of file h5mdtrajectoryreader.h.
|
private |
Enumerator | |
---|---|
NONE | |
STATIC | |
TIMEDEPENDENT |
Definition at line 69 of file h5mdtrajectoryreader.h.
votca::csg::H5MDTrajectoryReader::H5MDTrajectoryReader | ( | ) |
Definition at line 36 of file h5mdtrajectoryreader.cc.
|
override |
Definition at line 43 of file h5mdtrajectoryreader.cc.
|
inlineprivate |
Definition at line 135 of file h5mdtrajectoryreader.h.
|
overridevirtual |
Closes original trajectory file.
Reimplemented from votca::csg::TrajectoryReader.
Definition at line 107 of file h5mdtrajectoryreader.cc.
|
overridevirtual |
Reads in the first frame.
Implements votca::csg::TrajectoryReader.
Definition at line 234 of file h5mdtrajectoryreader.cc.
|
inlineprivate |
Definition at line 142 of file h5mdtrajectoryreader.h.
void votca::csg::H5MDTrajectoryReader::Initialize | ( | Topology & | top | ) |
Initialize data structures.
Definition at line 114 of file h5mdtrajectoryreader.cc.
|
overridevirtual |
Reads in the next frame.
Reading the data.
Implements votca::csg::TrajectoryReader.
Definition at line 245 of file h5mdtrajectoryreader.cc.
|
overridevirtual |
Opens original trajectory file.
Implements votca::csg::TrajectoryReader.
Definition at line 50 of file h5mdtrajectoryreader.cc.
|
private |
Definition at line 351 of file h5mdtrajectoryreader.cc.
|
inlineprivate |
Reads dataset with scalar values.
Definition at line 99 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 370 of file h5mdtrajectoryreader.cc.
|
inlineprivate |
Definition at line 121 of file h5mdtrajectoryreader.h.
|
inlineprivate |
Reads dataset that contains vectors.
Definition at line 73 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 160 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 162 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 159 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 161 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 153 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 155 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 152 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 154 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 156 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 163 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 151 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 176 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 168 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 167 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 191 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 174 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 172 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 173 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 171 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 179 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 189 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 204 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 180 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 183 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 158 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 165 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 201 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 188 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 185 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 190 of file h5mdtrajectoryreader.h.
|
private |
Definition at line 194 of file h5mdtrajectoryreader.h.