treams.Lattice.rectangular

classmethod Lattice.rectangular(x, y, alignment=None)

Create a two-dimensional rectangular lattice.

Parameters:
  • x (float) – Lattice constant along the first dimension. For the default alignment this corresponds to the x-axis.

  • y (float) – Lattice constant along the second dimension. For the default alignment this corresponds to the y-axis.

  • alignment (str, optional) – Alignment of the two-dimensional lattice in the three-dimensional space. Defaults to ‘xy’.

Returns:

Lattice