45#include "shapedLatticeEllipsoid.hpp"
49#include "lattice/shapedLattice.hpp"
54 shapedLatticeEllipsoid::shapedLatticeEllipsoid(RealType latticeConstant,
55 std::string latticeType,
57 RealType rEquatorial) :
58 shapedLattice(latticeConstant, latticeType) {
60 rEquatorial_ = rEquatorial;
63 dimension[0] = 2.0 * rEquatorial_;
64 dimension[1] = 2.0 * rEquatorial_;
65 dimension[2] = 2.0 * rAxial_;
66 setGridDimension(dimension);
68 origin[0] = latticeConstant / 2.0;
69 origin[1] = latticeConstant / 2.0;
70 origin[2] = latticeConstant / 2.0;
79 bool shapedLatticeEllipsoid::isInterior(
Vector3d pos) {
80 RealType xoverb = pos[0] / rEquatorial_;
81 RealType yoverb = pos[1] / rEquatorial_;
82 RealType zovera = pos[2] / rAxial_;
85 if (xoverb * xoverb + yoverb * yoverb + zovera * zovera < 1)
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.