OpenMD
3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
XYZFormat.hpp
1
/**********************************************************************
2
3
This basic Periodic Table class was originally taken from the data.cpp
4
file in OpenBabel. The code has been modified to match the OpenMD coding style.
5
6
We have retained the OpenBabel copyright and GPL license on this class:
7
8
Copyright (C) 1998-2001 by OpenEye Scientific Software, Inc.
9
Some portions Copyright (C) 2001-2005 by Geoffrey R. Hutchison
10
11
This file is part of the Open Babel project.
12
For more information, see <http://openbabel.sourceforge.net/>
13
14
This program is free software; you can redistribute it and/or modify
15
it under the terms of the GNU General Public License as published by
16
the Free Software Foundation version 2 of the License.
17
18
This program is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU General Public License for more details.
22
***********************************************************************/
23
24
#ifndef IO_XYZFORMAT_HPP
25
#define IO_XYZFORMAT_HPP
26
27
#ifndef BUFF_SIZE
28
#define BUFF_SIZE 32768
29
#endif
30
31
#include <iostream>
32
#include <string>
33
#include <vector>
34
35
#include "
math/Vector3.hpp
"
36
37
namespace
OpenMD
{
38
struct
XYZAtom
{
39
Vector3d
pos;
40
std::string type;
41
int
atomicNum;
42
RealType charge;
43
};
44
45
class
XYZFormat
{
46
public
:
47
XYZFormat
() {}
48
bool
ReadMolecule(std::istream& ifs);
49
std::vector<XYZAtom*> mol_;
50
std::string title_;
51
};
52
}
// namespace OpenMD
53
54
#endif
Vector3.hpp
OpenMD::Vector3< RealType >
OpenMD::XYZFormat
Definition
XYZFormat.hpp:45
OpenMD
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.
Definition
ActionCorrFunc.cpp:60
OpenMD::XYZAtom
Definition
XYZFormat.hpp:38
io
XYZFormat.hpp
Generated on Wed Jun 26 2024 13:56:40 for OpenMD by
1.11.0