Marcel-Rodekamp / NSL

Nanosystem Simulation Library (NSL) implements statistical simulations for systems on the nanoscale
Other
2 stars 0 forks source link

Feature/honeycomb #131

Closed evanberkowitz closed 1 year ago

evanberkowitz commented 1 year ago

This provides an NSL::Lattice::Honeycomb class, which is constructed from an std::vector<int> L of length 2, and an optional kappa (default = 1).

It has been checked as follows:

To me these suggest correctness.

Something that would be nice to have is a check of the eigenvalues in test_honeycomb. For example, all the eigenvalues should be between -3 and 3, there should only be Dirac points if (L1, L2) == (0,0) [mod 3], and so on. But this needs to wait to coexist with some eigenvalue infrastructure. If this is merged we should open that as an issue.

Marcel-Rodekamp commented 1 year ago

Nice Work!