lattice: Generate a spatial lattice

View source: R/rapt_sim.R

latticeR Documentation

Generate a spatial lattice

Description

lattice creates a spatial region filled with lattice points of the specified type. Currently, only simple cubic ("sc"), body-centered cubic ("bcc"), and face-centered cubic ("fcc") are implemented.

Usage

lattice(domain = box3(), a = 1, lattice = "sc")

Arguments

domain

A box3. The domain in which to generate the lattice

a

Numeric. The lattice parameter of the lattice. For cubic lattices (i.e. "sc", "bcc", "fcc"), this is the length of the side of the cube; for "hcp", this is the length of the side of the hexagon. See Details.

lattice

character. The lattice to generate (one of "sc", "bcc", "fcc", or "hcp").

Details

For a hexagonal close packed (hcp) lattice, there are two dimensions that are defined: the side of the hexagon, a, and the height of the hexagonal prism, c. For a perfect hcp crystal, the ratio of these two dimensions is exactly c/a = √{8/3}.

Value

A pp3 with points at the lattice positions

See Also

hcp.gen, pp3

Other simulation functions: clustersim(), makecluster(), morph_lamellar(), morph_rods(), nmers(), read.rcp(), scaleRCP(), stitch.size()


aproudian2/rapt documentation built on Dec. 15, 2022, 4:24 a.m.