OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::Decahedron Class Reference

#include <Decahedron.hpp>

Inheritance diagram for OpenMD::Decahedron:
OpenMD::CurlingStoneDecahedron OpenMD::InoDecahedron OpenMD::RegularDecahedron

Public Member Functions

 Decahedron (int columnAtoms, int shells, int twinAtoms)
 Default constructor. More...
 
virtual ~Decahedron ()
 
virtual vector< Vector3dgetPoints ()
 Get the generated points in the cluster. More...
 

Protected Member Functions

vector< Vector3dtruncatedRing (int n, int k)
 Generate the rings of the Decahedron. More...
 

Protected Attributes

int N_
 
int M_
 
int K_
 
vector< Vector3dPoints
 
vector< Vector3dBasis
 

Detailed Description

Creates the regular decahedron, Ino decahedron, or truncated (Marks) decahedron structures (depending on the parameters).

(Heavily modified from Matlab code from: Dmitry, Richard Brown, and Evgeny Pr)

Definition at line 95 of file Decahedron.hpp.

Constructor & Destructor Documentation

◆ Decahedron()

OpenMD::Decahedron::Decahedron ( int  columnAtoms,
int  shells,
int  twinAtoms 
)

Default constructor.

Definition at line 52 of file Decahedron.cpp.

References Basis, OpenMD::Constants::PI, and Points.

◆ ~Decahedron()

OpenMD::Decahedron::~Decahedron ( )
virtual

Definition at line 71 of file Decahedron.cpp.

References Basis, and Points.

Member Function Documentation

◆ getPoints()

vector< Vector3d > OpenMD::Decahedron::getPoints ( )
virtual

Get the generated points in the cluster.

Reimplemented in OpenMD::CurlingStoneDecahedron.

Definition at line 76 of file Decahedron.cpp.

References K_, M_, N_, Points, and truncatedRing().

Referenced by OpenMD::CurlingStoneDecahedron::getPoints(), and main().

◆ truncatedRing()

vector< Vector3d > OpenMD::Decahedron::truncatedRing ( int  n,
int  k 
)
protected

Generate the rings of the Decahedron.

Definition at line 110 of file Decahedron.cpp.

References Basis.

Referenced by getPoints().

Member Data Documentation

◆ Basis

vector<Vector3d> OpenMD::Decahedron::Basis
protected

Definition at line 113 of file Decahedron.hpp.

Referenced by Decahedron(), truncatedRing(), and ~Decahedron().

◆ K_

int OpenMD::Decahedron::K_
protected

Definition at line 110 of file Decahedron.hpp.

Referenced by getPoints().

◆ M_

int OpenMD::Decahedron::M_
protected

Definition at line 109 of file Decahedron.hpp.

Referenced by getPoints().

◆ N_

int OpenMD::Decahedron::N_
protected

Definition at line 108 of file Decahedron.hpp.

Referenced by getPoints().

◆ Points

vector<Vector3d> OpenMD::Decahedron::Points
protected

Definition at line 112 of file Decahedron.hpp.

Referenced by Decahedron(), getPoints(), and ~Decahedron().


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