BCRectLat3: Generator of 3D body-centered rectangular lattices as VecLat...

Description Usage Arguments Details Value See Also Examples

View source: R/pgs.R

Description

Create an object of class "VecLat" representing a 3D body-centered rectangular vector lattice.

Usage

1
BCRectLat3(dx=1,dy=dx,dz=dx)

Arguments

dx

spacing along the x-axis. Default: 1.

dy

spacing along the y-axis. Default: dx.

dz

spacing along the z-axis. Default: dy.

Details

Note that default parameter values do not define a body-centered cubic lattice. A 3D body-centered rectangular lattice is considered as a series of horizontal 2D rectangular vector lattices. The arguments dx and dy define the spacings in the horizontal planes. A 2D rectangular lattice seen in a given horizontal plane is shift halfway (in both horizontal directions) in the next plane. The argument dz defines the distance between consecutive horizontal planes. Therefore in order to define a (unit) body-centered cubic lattice, one should set dz=0.5.

Value

A VecLat-class object.

See Also

Generators VecLat, RectLat3, FCRectLat3.

Examples

1
2

Example output

Loading required package: gsl
Loading required package: R2Cuba
An object of class "VecLat"
Slot "dimspace":
[1] 3

Slot "dimsupp":
[1] 3

Slot "gmat":
     [,1] [,2] [,3]
[1,]    1    0  0.5
[2,]    0    1  0.5
[3,]    0    0  1.0

Slot "gmat0":
     [,1] [,2] [,3]
[1,]    1    0  0.5
[2,]    0    1  0.5
[3,]    0    0  1.0

Slot "det":
[1] 1

An object of class "VecLat"
Slot "dimspace":
[1] 3

Slot "dimsupp":
[1] 3

Slot "gmat":
     [,1] [,2] [,3]
[1,]    1    0  0.5
[2,]    0    1  0.5
[3,]    0    0  3.0

Slot "gmat0":
          [,1]      [,2]      [,3]
[1,] 0.6933613 0.0000000 0.3466806
[2,] 0.0000000 0.6933613 0.3466806
[3,] 0.0000000 0.0000000 2.0800838

Slot "det":
[1] 3

pgs documentation built on May 29, 2017, 5:30 p.m.