numerics
Loading...
Searching...
No Matches
num::PBCLattice2D Struct Reference

4-neighbor periodic-boundary index arrays for an N×N lattice. More...

#include <pbc_lattice.hpp>

Public Member Functions

 PBCLattice2D (int N)
 

Public Attributes

int N
 Side length; total sites = N*N.
 
std::vector< intup
 
std::vector< intdn
 
std::vector< intlt
 
std::vector< intrt
 up/dn = row±1, lt/rt = col±1 (PBC)
 

Detailed Description

4-neighbor periodic-boundary index arrays for an N×N lattice.

Definition at line 15 of file pbc_lattice.hpp.

Constructor & Destructor Documentation

◆ PBCLattice2D()

num::PBCLattice2D::PBCLattice2D ( int  N)
inlineexplicit

Definition at line 19 of file pbc_lattice.hpp.

References dn, num::ipow(), lt, N, rt, and up.

Member Data Documentation

◆ dn

std::vector<int> num::PBCLattice2D::dn

Definition at line 17 of file pbc_lattice.hpp.

Referenced by PBCLattice2D(), IsingLattice::sweep(), and IsingLattice::sweep_umbrella().

◆ lt

std::vector<int> num::PBCLattice2D::lt

Definition at line 17 of file pbc_lattice.hpp.

Referenced by PBCLattice2D(), IsingLattice::sweep(), and IsingLattice::sweep_umbrella().

◆ N

int num::PBCLattice2D::N

Side length; total sites = N*N.

Definition at line 16 of file pbc_lattice.hpp.

Referenced by PBCLattice2D().

◆ rt

std::vector<int> num::PBCLattice2D::rt

up/dn = row±1, lt/rt = col±1 (PBC)

Definition at line 17 of file pbc_lattice.hpp.

Referenced by PBCLattice2D(), IsingLattice::sweep(), and IsingLattice::sweep_umbrella().

◆ up

std::vector<int> num::PBCLattice2D::up

Definition at line 17 of file pbc_lattice.hpp.

Referenced by PBCLattice2D(), IsingLattice::sweep(), and IsingLattice::sweep_umbrella().


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