Multi Resolution Molecular Dynamics 0.4.0
Multi Resolution Molecular Dynamics
Loading...
Searching...
No Matches
mrmd::io Namespace Reference

Save and load simulation data. More...

Classes

class  DumpH5MD
 Handles dumping trajectory data in H5MD format. More...
class  DumpProfile
 Handles dumping profile data to a file. More...
class  RestoreH5MD
 Handles restoring trajectory data from H5MD format. More...

Typedefs

using hid_t = int

Functions

void dumpCSV (const std::string &filename, data::Atoms &atoms, bool dumpGhosts)
void dumpGRO (const std::string &filename, data::Atoms &atoms, const data::Subdomain &subdomain, const real_t &timestamp, const std::string &title, const std::string &resName, const std::vector< std::string > &typeNames, bool dumpGhosts, bool dumpVelocities)
 format specification https://manual.gromacs.org/current/reference-manual/file-formats.html?highlight=gro#gro
void dumpSingleProfile (const std::string &filename, const ScalarView::HostMirror &grid, const ScalarView::HostMirror &dataProfile, const real_t &normalizationFactor)
void dumpThermoForce (const std::string &filename, const action::ThermodynamicForce &thermodynamicForce, const idx_t &typeId)
void dumpThermoForce (const std::string &filename, const action::ThermodynamicForce &thermodynamicForce)
void restoreGRO (const std::string &filename, data::Subdomain &subdomain, data::Atoms &atoms, bool containsGhostAtoms)
void restoreLAMMPS (const std::string &filename, data::Atoms &atoms)
action::ThermodynamicForce restoreThermoForce (const std::string &filename, const data::Subdomain &subdomain, const std::vector< real_t > &targetDensities, const std::vector< real_t > &thermodynamicForceModulations, const bool enforceSymmetry, const bool usePeriodicity, const idx_t maxNumForces)
data::Atoms restoreAtoms (const std::string &filename)

Detailed Description

Save and load simulation data.

CSV and GRO dumps, H5MD trajectories (requires HDF5), density and thermodynamic force profiles, and restore paths for GRO, H5MD, LAMMPS and plain text files.

Typedef Documentation

◆ hid_t

using mrmd::io::hid_t = int

Function Documentation

◆ dumpCSV()

void mrmd::io::dumpCSV ( const std::string & filename,
data::Atoms & atoms,
bool dumpGhosts )

◆ dumpGRO()

void mrmd::io::dumpGRO ( const std::string & filename,
data::Atoms & atoms,
const data::Subdomain & subdomain,
const real_t & timestamp,
const std::string & title,
const std::string & resName,
const std::vector< std::string > & typeNames,
bool dumpGhosts,
bool dumpVelocities )

◆ dumpSingleProfile()

void mrmd::io::dumpSingleProfile ( const std::string & filename,
const ScalarView::HostMirror & grid,
const ScalarView::HostMirror & dataProfile,
const real_t & normalizationFactor )

◆ dumpThermoForce() [1/2]

void mrmd::io::dumpThermoForce ( const std::string & filename,
const action::ThermodynamicForce & thermodynamicForce )

◆ dumpThermoForce() [2/2]

void mrmd::io::dumpThermoForce ( const std::string & filename,
const action::ThermodynamicForce & thermodynamicForce,
const idx_t & typeId )

◆ restoreAtoms()

data::Atoms mrmd::io::restoreAtoms ( const std::string & filename)

◆ restoreGRO()

void mrmd::io::restoreGRO ( const std::string & filename,
data::Subdomain & subdomain,
data::Atoms & atoms,
bool containsGhostAtoms )

◆ restoreLAMMPS()

void mrmd::io::restoreLAMMPS ( const std::string & filename,
data::Atoms & atoms )

◆ restoreThermoForce()

action::ThermodynamicForce mrmd::io::restoreThermoForce ( const std::string & filename,
const data::Subdomain & subdomain,
const std::vector< real_t > & targetDensities,
const std::vector< real_t > & thermodynamicForceModulations,
const bool enforceSymmetry,
const bool usePeriodicity,
const idx_t maxNumForces )