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

Options

Make a lattice or grid with integer coordinates.

Lattice types (default: sc)
Lattice TypeDescriptionSquares of Strut Lengths
scSimple Cubic1, 2, 3
fccFace Centred Cubic2, 4, 6, 12
bccBody Centred Cubic3, 4, 8
rh_dodecRhombic Dodecahedra3, 8
cubo_octCuboctahedron / Octahedron2
tr_octTruncated Octahedron2
tr_tet_tetTruncated Tetrahedron / Tetrahedron2
tr_tet_tr_oct_cuboTruncated Tetrahedron / Truncated Octahedron / Cuboctahedron4
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.

Up: Programs and Documentation
Next: zono - zonohedra from OFF files

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