|
OpenMD 3.2
Molecular Dynamics in the Open
|
Create the Mackay icosahedron structure. More...
#include <Icosahedron.hpp>
Public Member Functions | |
| Icosahedron () | |
| Default constructor. | |
| int | getNpoints (int nShells) |
| Calculate number of particles in an icosahedron with nShells shells. | |
| std::vector< Vector3d > | getPoints (int nShells) |
| Get the generated points in an icosahedron with nShells shells. | |
Protected Member Functions | |
| std::vector< Vector3d > | ih (int n) |
| Create nth layer particles. | |
| int | np (int n) |
| Calculate number of particles on the nth layer. | |
Protected Attributes | |
| std::vector< Vector3d > | Points |
| std::vector< std::pair< int, int > > | Edges |
| std::vector< std::tuple< int, int, int > > | Facets |
| std::vector< Vector3d > | Basis |
Create the Mackay icosahedron structure.
(Heavily modified from code from Yanting Wang date 07/21/2003)
Definition at line 68 of file Icosahedron.hpp.
| OpenMD::Icosahedron::Icosahedron | ( | ) |
Default constructor.
Definition at line 54 of file Icosahedron.cpp.
| int OpenMD::Icosahedron::getNpoints | ( | int | nShells | ) |
Calculate number of particles in an icosahedron with nShells shells.
Definition at line 152 of file Icosahedron.cpp.
| std::vector< Vector3d > OpenMD::Icosahedron::getPoints | ( | int | nShells | ) |
Get the generated points in an icosahedron with nShells shells.
Definition at line 226 of file Icosahedron.cpp.
References ih().
|
protected |
Create nth layer particles.
Definition at line 170 of file Icosahedron.cpp.
Referenced by getPoints().
|
protected |
Calculate number of particles on the nth layer.
Definition at line 160 of file Icosahedron.cpp.
|
protected |
Definition at line 89 of file Icosahedron.hpp.
|
protected |
Definition at line 87 of file Icosahedron.hpp.
|
protected |
Definition at line 88 of file Icosahedron.hpp.
|
protected |
Definition at line 86 of file Icosahedron.hpp.