Regular Hypercubic lattice
Functions
-
void writelat(H5::Group &h5loc, const RegularHypercubic &l)
This function provides the necessary overload for MARQOV::Core such that we can dump useful info into the HDF5 file.
- Parameters:
h5loc – the group of the lattice.
l – the lattice that we are dumping info about.
-
template<int dimT>
class FixedDimRegularHypercubic Public Functions
-
inline constexpr FixedDimRegularHypercubic(int len)
-
inline constexpr std::array<double, dimT> crds(int k) const
Get the real space coordinates of a site.
- Parameters:
k – the index of the site.
- Returns:
the real space coordinates the point.
-
inline constexpr std::size_t size() const noexcept
Return the number of sites in this lattice.
- Returns:
the number of sites in this lattice.
-
inline constexpr FixedDimRegularHypercubic(int len)
-
class RegularHypercubic
- #include <regular_hypercubic.h>
The Regular Hypercubic lattice class.
This class provides routines for encapsulating all neighbour and coordinate relations for n-dimensional hypercubic lattices.
Public Functions
-
inline RegularHypercubic(int len, int dim)
-
RegularHypercubic(const RegularHypercubic&) = default
-
RegularHypercubic(RegularHypercubic&&) noexcept = default
-
RegularHypercubic &operator=(const RegularHypercubic&) = delete
-
RegularHypercubic &operator=(const RegularHypercubic&&) = delete
-
RegularHypercubic() = delete
-
inline std::vector<int> nbrs(const int alpha, const int i) const
-
inline std::vector<double> crds(const int i) const
Get the real space coordinates of a site.
- Parameters:
i – the index of the site.
- Returns:
the real space coordinates the point.
-
inline std::vector<int> flexnbrs(const int alpha, const int i) const
-
inline std::size_t size() const noexcept
Return the number of sites in this lattice.
- Returns:
the number of sites in this lattice.
Private Members
-
RegularLattice lattice
-
inline RegularHypercubic(int len, int dim)