votca 2024.2-dev
|
class for reading dlpoly topology files More...
#include <dlpolytopologyreader.h>
Public Member Functions | |
DLPOLYTopologyReader ()=default | |
bool | ReadTopology (std::string file, Topology &top) override |
read a topology file | |
void | setFname (std::string name) |
set the topology file name: name.dlpf (convention: ".dlpf"="FIELD") | |
std::string | getFname () |
get the topology file name: name.dlpf (convention: ".dlpf"="FIELD") | |
Public Member Functions inherited from votca::csg::TopologyReader | |
virtual | ~TopologyReader ()=default |
Public Attributes | |
const tools::DistanceUnit | distance_unit = tools::DistanceUnit::angstroms |
Set default units. | |
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 | molar_energy_unit |
const tools::VelocityUnit | velocity_unit |
const tools::MolarForceUnit | force_unit |
Private Member Functions | |
std::string | NextKeyline_ (std::ifstream &fs, const char *wspace) |
std::string | NextKeyInt_ (std::ifstream &fs, const char *wspace, const std::string &word, Index &ival) |
bool | isKeyInt_ (const std::string &line, const char *wspace, const std::string &word, Index &ival) |
Private Attributes | |
std::string | fname_ |
Additional Inherited Members | |
Static Public Member Functions inherited from votca::csg::TopologyReader | |
static void | RegisterPlugins (void) |
class for reading dlpoly topology files
This class encapsulates the dlpoly topology reading functions and provides an interface to fill a topolgy class
Definition at line 42 of file dlpolytopologyreader.h.
|
default |
|
inline |
get the topology file name: name.dlpf (convention: ".dlpf"="FIELD")
Definition at line 66 of file dlpolytopologyreader.h.
|
private |
function to check if the given (last read) directive line starts with a given keyword and has an integer value at the end
Definition at line 101 of file dlpolytopologyreader.cc.
|
private |
function to read the next line containing only a given keyword and an integer value after it (only skipping comments!)
Definition at line 67 of file dlpolytopologyreader.cc.
|
private |
function to find and read the next line starting with a keyword/directive (skipping comments starting with "#" or ";")
Definition at line 44 of file dlpolytopologyreader.cc.
|
overridevirtual |
read a topology file
Implements votca::csg::TopologyReader.
Definition at line 143 of file dlpolytopologyreader.cc.
|
inline |
set the topology file name: name.dlpf (convention: ".dlpf"="FIELD")
Definition at line 61 of file dlpolytopologyreader.h.
const tools::ChargeUnit votca::csg::DLPOLYTopologyReader::charge_unit = tools::ChargeUnit::e |
Definition at line 50 of file dlpolytopologyreader.h.
const tools::DistanceUnit votca::csg::DLPOLYTopologyReader::distance_unit = tools::DistanceUnit::angstroms |
Set default units.
Definition at line 47 of file dlpolytopologyreader.h.
|
private |
Definition at line 69 of file dlpolytopologyreader.h.
const tools::MolarForceUnit votca::csg::DLPOLYTopologyReader::force_unit |
Definition at line 55 of file dlpolytopologyreader.h.
const tools::MassUnit votca::csg::DLPOLYTopologyReader::mass_unit = tools::MassUnit::atomic_mass_units |
Definition at line 48 of file dlpolytopologyreader.h.
const tools::MolarEnergyUnit votca::csg::DLPOLYTopologyReader::molar_energy_unit |
Definition at line 51 of file dlpolytopologyreader.h.
const tools::TimeUnit votca::csg::DLPOLYTopologyReader::time_unit = tools::TimeUnit::picoseconds |
Definition at line 49 of file dlpolytopologyreader.h.
const tools::VelocityUnit votca::csg::DLPOLYTopologyReader::velocity_unit |
Definition at line 53 of file dlpolytopologyreader.h.