intrcmap_square¶
Generate an interaction map for a 2D square lattice.
Call build_geometry(geo_cfg) to construct a Geometry, then pass it here. The TOML keys below are the fields that belong in the [geometry] section.
intrcmap_square
¶
Generate an interaction map for a 2D square lattice.
Produces nearest-neighbor (NN) and optionally next-nearest-neighbor
(NNN) interactions for a 2D square lattice. Coupling constants are not
set here; the returned interactions have cpl == 0.0 (the default).
Labels encode bond topology so that the model builder can assign the
correct coupling per bond type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
geo
|
Geometry
|
Fully-resolved geometry struct for the square lattice. Relevant
config keys (read from
|
required |
Returns:
| Type | Description |
|---|---|
List[Interaction2Site]
|
Interaction objects sorted by |
TOML Keys¶
| Key | Type | Default | Description |
|---|---|---|---|
lx |
int | required | Number of columns |
ly |
int | required | Number of rows |
bcx |
str | "OBC" |
Boundary condition along x |
bcy |
str | "OBC" |
Boundary condition along y |
n2x |
bool | true |
Include NN bonds along x |
n2y |
bool | true |
Include NN bonds along y |
n3d |
bool | false |
Include NNN diagonal bonds |
n3o |
bool | false |
Include NNN off-diagonal bonds |
Traversal Order (traverse)¶
| Value | Ordering |
|---|---|
"sequential" |
column-major, top→bottom every column (default) |
"serpentine" |
column-major, alternating direction |
See Also¶
- intrcmap_1dchain — 1D chain version.
- build_geometry — constructs the
Geometrypassed to this function whenlattice = "square". - build_intrcmap — calls this function based on
geo.lattice.