OpenMD 3.2
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< Vector3d > getPoints ()
 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< Vector3d > Points
vector< Vector3d > Basis

Detailed Description

Generates coordinates of atoms inside a Cuboctahedron.

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

Definition at line 99 of file Cuboctahedron.hpp.

Constructor & Destructor Documentation

◆ Cuboctahedron()

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

Default constructor.

Definition at line 64 of file Cuboctahedron.cpp.

Member Function Documentation

◆ getPoints()

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

Get the generated points in the cluster.

Definition at line 88 of file Cuboctahedron.cpp.

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

◆ inCluster()

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

Definition at line 138 of file Cuboctahedron.cpp.

◆ inCluster111()

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

Definition at line 127 of file Cuboctahedron.cpp.

Member Data Documentation

◆ Basis

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

Definition at line 118 of file Cuboctahedron.hpp.

◆ L_

int OpenMD::Cuboctahedron::L_
protected

Definition at line 113 of file Cuboctahedron.hpp.

◆ lattice_

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

Definition at line 112 of file Cuboctahedron.hpp.

◆ M_

int OpenMD::Cuboctahedron::M_
protected

Definition at line 115 of file Cuboctahedron.hpp.

◆ Points

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

Definition at line 117 of file Cuboctahedron.hpp.


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