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

#include <shapedLatticeSpherical.hpp>

Inheritance diagram for OpenMD::shapedLatticeSpherical:
OpenMD::shapedLattice

Public Member Functions

 shapedLatticeSpherical (RealType latticeConstant, std::string latticeType, RealType radius)
 
virtual bool isInterior (Vector3d point)
 
- Public Member Functions inherited from OpenMD::shapedLattice
 shapedLattice (RealType latticeConstant, std::string latticeType)
 
virtual ~shapedLattice ()
 
void setGridDimension (Vector3d dimension)
 
void setOrigin (Vector3d origin)
 
std::vector< Vector3dgetSites ()
 
std::vector< Vector3dgetOrientations ()
 

Private Attributes

RealType sphereRadius_
 

Additional Inherited Members

- Protected Member Functions inherited from OpenMD::shapedLattice
void findSites ()
 
- Protected Attributes inherited from OpenMD::shapedLattice
Vector3d dimension_
 
Vector3d origin_
 

Detailed Description

Implements a spherical lattice

Definition at line 56 of file shapedLatticeSpherical.hpp.

Constructor & Destructor Documentation

◆ shapedLatticeSpherical()

OpenMD::shapedLatticeSpherical::shapedLatticeSpherical ( RealType  latticeConstant,
std::string  latticeType,
RealType  radius 
)

Member Function Documentation

◆ isInterior()

bool OpenMD::shapedLatticeSpherical::isInterior ( Vector3d  point)
virtual

Determines whether a point lies with a sphere at origin 0

Implements OpenMD::shapedLattice.

Definition at line 73 of file shapedLatticeSpherical.cpp.

References OpenMD::Vector< Real, Dim >::length(), and sphereRadius_.

Member Data Documentation

◆ sphereRadius_

RealType OpenMD::shapedLatticeSpherical::sphereRadius_
private

Definition at line 61 of file shapedLatticeSpherical.hpp.

Referenced by isInterior(), and shapedLatticeSpherical().


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