Up    Next

lat_grid - lattices and grids with integer coordinates

Usage    |    Examples    |    Notes

Usage

Synopsis

lat_grid [options] [lat_type [outer_width [inner_width]]]

Description

Makes a lattice or grid with integer coordinates.

Options

Lattice types (default: sc)

Lattice Type Description Squares of Strut Lengths†
scSimple Cubic1, 2, 3
fccFace Centred Cubic2, 4, 6, 12
hcpHexagonal Close Packing18
bccBody Centred Cubic3, 4, 8
rh_dodecRhombic Dodecahedra3, 8
cubo_octCuboctahedron / Octahedron2
tr_octTruncated Octahedron2
tr_tet_tetTruncated Tetrahedron / Tetrahedron 2
tr_tet_tr_oct_cubo Truncated Tetrahedron / Truncated Octahedron / Cuboctahedron 4
diamondDiamond3
hcp_diamondHCP Diamond27
k_4K_4 Crystal2

†The first strut length value is the square of the radius of balls packed at the vertex positions.

Outer Width, Inner Width
The sizes of the outer and inner containers. For cubes, these are the length of a side, for spheres these are the squares of the radii (default: outer - 6, inner - 0).

-h
program help

-C <cent>
centre of lattice, in form x_val,y_val,z_val (default: calculated)

-c <type>
container, c - cube (default), s - sphere

-s <len2>
create struts, the value is the square of the strut length

-o <file>
write output to file, if this option is not used the program writes to standard output

Examples

View a cubic section of Close Cubic Packing
   lat_grid fcc 6 | antiview -v b
Make a spherical section of a diamond grid
   lat_grid -c s -s 3 diamond 16 > diam.off

Notes

Spherical container suggested by Steve Waterman, who has made a collection of hulls of spherically contained lattices.

The grids of shortest strut length represent the edges of a packing of polyhedra, with the exception of diamond, HCP diamond and K_4.

Up: Programs and Documentation
Next: bravais - Bravais lattices

Antiprism Documentation 24.11.2008 - http://www.antiprism.com/