OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::shapedLatticeSpherical Class Reference

Implements a spherical lattice. More...

#include <shapedLatticeSpherical.hpp>

+ Inheritance diagram for OpenMD::shapedLatticeSpherical:

Public Member Functions

 shapedLatticeSpherical (RealType latticeConstant, std::string latticeType, RealType radius)
 
virtual bool isInterior (Vector3d point)
 Determines whether a point lies with a sphere at origin 0.
 
- Public Member Functions inherited from OpenMD::shapedLattice
 shapedLattice (RealType latticeConstant, std::string latticeType)
 
void setGridDimension (Vector3d dimension)
 setGridDimension:
 
void setOrigin (Vector3d origin)
 
std::vector< Vector3dgetSites ()
 
std::vector< Vector3dgetOrientations ()
 

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 )

Definition at line 52 of file shapedLatticeSpherical.cpp.

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 72 of file shapedLatticeSpherical.cpp.

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


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