OpenMD 3.0
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::Cuboctahedron Class Reference

Generates coordinates of atoms inside a Cuboctahedron. More...

#include <Cuboctahedron.hpp>

+ Inheritance diagram for OpenMD::Cuboctahedron:

Public Member Functions

 Cuboctahedron (std::string lattice, int cells, int planes)
 Default constructor.
 
virtual vector< Vector3dgetPoints ()
 Get the generated points in the cluster.
 

Protected Member Functions

bool inCluster111 (Vector3d r)
 
bool inCluster (Vector3d r)
 

Protected Attributes

std::string lattice_
 
int L_
 
int M_
 
vector< Vector3dPoints
 
vector< Vector3dBasis
 

Detailed Description

Generates coordinates of atoms inside a Cuboctahedron.

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

Definition at line 96 of file Cuboctahedron.hpp.

Constructor & Destructor Documentation

◆ Cuboctahedron()

OpenMD::Cuboctahedron::Cuboctahedron ( std::string lattice,
int cells,
int planes )

Default constructor.

Definition at line 61 of file Cuboctahedron.cpp.

Member Function Documentation

◆ getPoints()

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

Get the generated points in the cluster.

Definition at line 85 of file Cuboctahedron.cpp.

References OpenMD::Vector< Real, Dim >::lengthSquare().

◆ inCluster()

bool OpenMD::Cuboctahedron::inCluster ( Vector3d r)
protected

Definition at line 135 of file Cuboctahedron.cpp.

◆ inCluster111()

bool OpenMD::Cuboctahedron::inCluster111 ( Vector3d r)
protected

Definition at line 124 of file Cuboctahedron.cpp.

Member Data Documentation

◆ Basis

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

Definition at line 115 of file Cuboctahedron.hpp.

◆ L_

int OpenMD::Cuboctahedron::L_
protected

Definition at line 110 of file Cuboctahedron.hpp.

◆ lattice_

std::string OpenMD::Cuboctahedron::lattice_
protected

Definition at line 109 of file Cuboctahedron.hpp.

◆ M_

int OpenMD::Cuboctahedron::M_
protected

Definition at line 112 of file Cuboctahedron.hpp.

◆ Points

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

Definition at line 114 of file Cuboctahedron.hpp.


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