Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammath::LatticeCubic< Tvec > Class Template Reference

utility for generating Cubic crystal lattices More...

#include <shammath/include/shammath/crystalLattice.hpp>

Classes

class  IteratorDiscontinuous
 Iterator utility to generate the lattice. More...

Public Types

using Tscal = shambase::VecComponent<Tvec>

Static Public Member Functions

static constexpr Tvec generator (Tscal dr, std::array< i32, dim > coord) noexcept
 generate a Cubic lattice centered on (0,0,0)
static constexpr std::pair< std::array< i32, dim >, std::array< i32, dim > > get_box_index_bounds (Tscal dr, Tvec box_min, Tvec box_max)

Static Public Attributes

static constexpr u32 dim = 3

Detailed Description

template<class Tvec>
class shammath::LatticeCubic< Tvec >

utility for generating Cubic crystal lattices

Template Parameters
Tvecposition vector type

Definition at line 410 of file crystalLattice.hpp.

Member Typedef Documentation

◆ Tscal

template<class Tvec>
using shammath::LatticeCubic< Tvec >::Tscal = shambase::VecComponent<Tvec>

Definition at line 417 of file crystalLattice.hpp.

Member Function Documentation

◆ generator()

template<class Tvec>
constexpr Tvec shammath::LatticeCubic< Tvec >::generator ( Tscal dr,
std::array< i32, dim > coord )
inlinestaticconstexprnoexcept

generate a Cubic lattice centered on (0,0,0)

Parameters
dr
coord
Returns
constexpr Tvec

Definition at line 426 of file crystalLattice.hpp.

◆ get_box_index_bounds()

template<class Tvec>
constexpr std::pair< std::array< i32, dim >, std::array< i32, dim > > shammath::LatticeCubic< Tvec >::get_box_index_bounds ( Tscal dr,
Tvec box_min,
Tvec box_max )
inlinestaticconstexpr

Definition at line 438 of file crystalLattice.hpp.

Member Data Documentation

◆ dim

template<class Tvec>
u32 shammath::LatticeCubic< Tvec >::dim = 3
staticconstexpr

Definition at line 412 of file crystalLattice.hpp.


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