Simpatico  v1.10
List of all members | Public Member Functions
McMd::LammpsConfigIo Class Reference

Detailed Description

ConfigIo for Lammps data files.

This class reads and writes the data file format that is read by the LAMMPS read_data command. Because the Lammps data model is very different than that used in Simpatico, there are signficant restrictions on the use of such files:

1) When reading a LAMMPS data file, the maximum total number of atoms defined by the Simpatico parameter file must exactly match the number of atoms in the data file.

2) The atom ids (or tags) in the Lammps data file must appear in order, numbered from 1. This is checked.

3) The ordering of atoms in the lammps file and the topology are assumed to be consistent with that used in Simpatico. The topology information in the Lammps data file is discarded. This requires that atoms within each molecule be listed sequentially, with molecules with the same species listed sequentially, and that ordered of atoms within each molecule be consistent with the numbering scheme used in Simpatico. Thus far, none of this is checked.

Definition at line 50 of file mcMd/configIos/LammpsConfigIo.h.

#include <LammpsConfigIo.h>

Inheritance diagram for McMd::LammpsConfigIo:
McMd::ConfigIo

Public Member Functions

 LammpsConfigIo (System &system)
 Constructor. More...
 
virtual ~LammpsConfigIo ()
 Destructor. More...
 
void read (std::istream &in)
 Read configuration (particle positions) from file. More...
 
void write (std::ostream &out)
 Write configuration (particle positions) to file. More...
 
- Public Member Functions inherited from McMd::ConfigIo
 ConfigIo (System &system)
 Constructor. More...
 
virtual ~ConfigIo ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from McMd::ConfigIo
Systemsystem () const
 Get a reference to the parent System. More...
 
Simulationsimulation () const
 Get a reference to the parent Simulation. More...
 
Boundaryboundary () const
 Get the Boundary. More...
 

Constructor & Destructor Documentation

McMd::LammpsConfigIo::LammpsConfigIo ( System system)

Constructor.

Definition at line 35 of file mcMd/configIos/LammpsConfigIo.cpp.

McMd::LammpsConfigIo::~LammpsConfigIo ( )
virtual

Destructor.

Definition at line 42 of file mcMd/configIos/LammpsConfigIo.cpp.

Member Function Documentation

void McMd::LammpsConfigIo::read ( std::istream &  in)
virtual
void McMd::LammpsConfigIo::write ( std::ostream &  out)
virtual

The documentation for this class was generated from the following files: