votca 2024.2-dev
|
class for reading lammps dump files More...
#include <lammpsdumpreader.h>
Public Member Functions | |
LAMMPSDumpReader ()=default | |
~LAMMPSDumpReader () override=default | |
bool | ReadTopology (std::string file, Topology &top) override |
open a topology file | |
bool | Open (const std::string &file) override |
open a trejectory file | |
bool | FirstFrame (Topology &top) override |
read in the first frame | |
bool | NextFrame (Topology &top) override |
read in the next frame | |
void | Close () override |
Public Member Functions inherited from votca::csg::TrajectoryReader | |
virtual | ~TrajectoryReader ()=default |
Public Member Functions inherited from votca::csg::TopologyReader | |
virtual | ~TopologyReader ()=default |
Public Attributes | |
const tools::DistanceUnit | distance_unit = tools::DistanceUnit::angstroms |
Assuming units are using 'units real' lammps command. | |
const tools::TimeUnit | time_unit = tools::TimeUnit::femtoseconds |
const tools::MassUnit | mass_unit = tools::MassUnit::grams_per_mole |
const tools::MolarEnergyUnit | energy_unit |
const tools::ChargeUnit | charge_unit = tools::ChargeUnit::e |
const tools::MolarForceUnit | force_unit |
const tools::VelocityUnit | velocity_unit |
Private Member Functions | |
void | ReadTimestep (Topology &top) |
void | ReadBox (Topology &top) |
void | ReadNumAtoms (Topology &top) |
void | ReadAtoms (Topology &top, std::string itemline) |
Private Attributes | |
std::ifstream | fl_ |
std::string | fname_ |
bool | topology_ |
Index | natoms_ |
Additional Inherited Members | |
Static Public Member Functions inherited from votca::csg::TrajectoryReader | |
static void | RegisterPlugins (void) |
Static Public Member Functions inherited from votca::csg::TopologyReader | |
static void | RegisterPlugins (void) |
class for reading lammps dump files
This class provides the TrajectoryReader + Topology reader interface for lammps dump files
Definition at line 38 of file lammpsdumpreader.h.
|
default |
|
overridedefault |
|
overridevirtual |
Reimplemented from votca::csg::TrajectoryReader.
Definition at line 64 of file lammpsdumpreader.cc.
|
overridevirtual |
read in the first frame
Implements votca::csg::TrajectoryReader.
Definition at line 66 of file lammpsdumpreader.cc.
|
overridevirtual |
read in the next frame
Implements votca::csg::TrajectoryReader.
Definition at line 72 of file lammpsdumpreader.cc.
|
overridevirtual |
open a trejectory file
Implements votca::csg::TrajectoryReader.
Definition at line 55 of file lammpsdumpreader.cc.
|
private |
Definition at line 141 of file lammpsdumpreader.cc.
|
private |
Definition at line 114 of file lammpsdumpreader.cc.
|
private |
Definition at line 131 of file lammpsdumpreader.cc.
|
private |
Definition at line 106 of file lammpsdumpreader.cc.
|
overridevirtual |
open a topology file
Implements votca::csg::TopologyReader.
Definition at line 38 of file lammpsdumpreader.cc.
const tools::ChargeUnit votca::csg::LAMMPSDumpReader::charge_unit = tools::ChargeUnit::e |
Definition at line 46 of file lammpsdumpreader.h.
const tools::DistanceUnit votca::csg::LAMMPSDumpReader::distance_unit = tools::DistanceUnit::angstroms |
Assuming units are using 'units real' lammps command.
Definition at line 41 of file lammpsdumpreader.h.
const tools::MolarEnergyUnit votca::csg::LAMMPSDumpReader::energy_unit |
Definition at line 44 of file lammpsdumpreader.h.
|
private |
Definition at line 73 of file lammpsdumpreader.h.
|
private |
Definition at line 74 of file lammpsdumpreader.h.
const tools::MolarForceUnit votca::csg::LAMMPSDumpReader::force_unit |
Definition at line 47 of file lammpsdumpreader.h.
const tools::MassUnit votca::csg::LAMMPSDumpReader::mass_unit = tools::MassUnit::grams_per_mole |
Definition at line 43 of file lammpsdumpreader.h.
|
private |
Definition at line 76 of file lammpsdumpreader.h.
const tools::TimeUnit votca::csg::LAMMPSDumpReader::time_unit = tools::TimeUnit::femtoseconds |
Definition at line 42 of file lammpsdumpreader.h.
|
private |
Definition at line 75 of file lammpsdumpreader.h.
const tools::VelocityUnit votca::csg::LAMMPSDumpReader::velocity_unit |
Definition at line 49 of file lammpsdumpreader.h.