OpenMD 3.2
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::Icosahedron Class Reference

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

Detailed Description

Create the Mackay icosahedron structure.

(Heavily modified from code from Yanting Wang date 07/21/2003)

Definition at line 68 of file Icosahedron.hpp.

Constructor & Destructor Documentation

◆ Icosahedron()

OpenMD::Icosahedron::Icosahedron ( )

Default constructor.

Definition at line 54 of file Icosahedron.cpp.

Member Function Documentation

◆ getNpoints()

int OpenMD::Icosahedron::getNpoints ( int nShells)

Calculate number of particles in an icosahedron with nShells shells.

Definition at line 152 of file Icosahedron.cpp.

◆ getPoints()

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().

◆ ih()

std::vector< Vector3d > OpenMD::Icosahedron::ih ( int n)
protected

Create nth layer particles.

Definition at line 170 of file Icosahedron.cpp.

Referenced by getPoints().

◆ np()

int OpenMD::Icosahedron::np ( int n)
protected

Calculate number of particles on the nth layer.

Definition at line 160 of file Icosahedron.cpp.

Member Data Documentation

◆ Basis

std::vector<Vector3d> OpenMD::Icosahedron::Basis
protected

Definition at line 89 of file Icosahedron.hpp.

◆ Edges

std::vector<std::pair<int, int> > OpenMD::Icosahedron::Edges
protected

Definition at line 87 of file Icosahedron.hpp.

◆ Facets

std::vector<std::tuple<int, int, int> > OpenMD::Icosahedron::Facets
protected

Definition at line 88 of file Icosahedron.hpp.

◆ Points

std::vector<Vector3d> OpenMD::Icosahedron::Points
protected

Definition at line 86 of file Icosahedron.hpp.


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