votca 2024.2-dev
|
class for reading dlpoly trajectory and configuration files More...
#include <dlpolytrajectoryreader.h>
Public Member Functions | |
bool | Open (const std::string &file) override |
open original trajectory file | |
bool | FirstFrame (Topology &conf) override |
read in the first frame | |
bool | NextFrame (Topology &conf) override |
read in the next frame | |
void | Close () override |
close original trajectory file | |
void | setFname (std::string name) |
std::string | getFname () |
void | setIsConfig (bool isConf) |
bool | getIsConfig () |
Public Member Functions inherited from votca::csg::TrajectoryReader | |
virtual | ~TrajectoryReader ()=default |
Public Attributes | |
const tools::DistanceUnit | distance_unit = tools::DistanceUnit::angstroms |
const tools::MassUnit | mass_unit = tools::MassUnit::atomic_mass_units |
const tools::TimeUnit | time_unit = tools::TimeUnit::picoseconds |
const tools::ChargeUnit | charge_unit = tools::ChargeUnit::e |
const tools::MolarEnergyUnit | energy_unit |
const tools::VelocityUnit | velocity_unit |
const tools::MolarForceUnit | force_unit |
Private Attributes | |
std::ifstream | fl_ |
std::string | fname_ |
bool | first_frame_ |
bool | isConfig_ |
Additional Inherited Members | |
Static Public Member Functions inherited from votca::csg::TrajectoryReader | |
static void | RegisterPlugins (void) |
class for reading dlpoly trajectory and configuration files
This class encapsulates the dlpoly trajectory and configuration reading function and provides an interface to fill a topology class
Definition at line 43 of file dlpolytrajectoryreader.h.
|
overridevirtual |
close original trajectory file
Reimplemented from votca::csg::TrajectoryReader.
Definition at line 86 of file dlpolytrajectoryreader.cc.
|
overridevirtual |
read in the first frame
Implements votca::csg::TrajectoryReader.
Definition at line 88 of file dlpolytrajectoryreader.cc.
|
inline |
Definition at line 71 of file dlpolytrajectoryreader.h.
|
inline |
Definition at line 79 of file dlpolytrajectoryreader.h.
|
overridevirtual |
read in the next frame
Implements votca::csg::TrajectoryReader.
Definition at line 95 of file dlpolytrajectoryreader.cc.
|
overridevirtual |
open original trajectory file
Implements votca::csg::TrajectoryReader.
Definition at line 40 of file dlpolytrajectoryreader.cc.
|
inline |
set/get the original configuration or trajectory file name: name.dlpc/name.dlph (convention: ".dlpc"="CONFIG", ".dlph"="HISTORY")
Definition at line 67 of file dlpolytrajectoryreader.h.
|
inline |
set/check the flag for the read-in file as configuration, i.e. not trajectory format
Definition at line 75 of file dlpolytrajectoryreader.h.
const tools::ChargeUnit votca::csg::DLPOLYTrajectoryReader::charge_unit = tools::ChargeUnit::e |
Definition at line 48 of file dlpolytrajectoryreader.h.
const tools::DistanceUnit votca::csg::DLPOLYTrajectoryReader::distance_unit = tools::DistanceUnit::angstroms |
Definition at line 45 of file dlpolytrajectoryreader.h.
const tools::MolarEnergyUnit votca::csg::DLPOLYTrajectoryReader::energy_unit |
Definition at line 49 of file dlpolytrajectoryreader.h.
|
private |
Definition at line 84 of file dlpolytrajectoryreader.h.
|
private |
Definition at line 82 of file dlpolytrajectoryreader.h.
|
private |
Definition at line 83 of file dlpolytrajectoryreader.h.
const tools::MolarForceUnit votca::csg::DLPOLYTrajectoryReader::force_unit |
Definition at line 53 of file dlpolytrajectoryreader.h.
|
private |
Definition at line 85 of file dlpolytrajectoryreader.h.
const tools::MassUnit votca::csg::DLPOLYTrajectoryReader::mass_unit = tools::MassUnit::atomic_mass_units |
Definition at line 46 of file dlpolytrajectoryreader.h.
const tools::TimeUnit votca::csg::DLPOLYTrajectoryReader::time_unit = tools::TimeUnit::picoseconds |
Definition at line 47 of file dlpolytrajectoryreader.h.
const tools::VelocityUnit votca::csg::DLPOLYTrajectoryReader::velocity_unit |
Definition at line 51 of file dlpolytrajectoryreader.h.