AbstractLattice<Vector>, CubicLattice, SpaceLatticepublic class LatticeCubicSimple extends BravaisLattice implements CubicLattice
| Constructor | Description |
|---|---|
LatticeCubicSimple(Space space) |
Simple 3D cubic lattice with a unit lattice constant.
|
LatticeCubicSimple(Space space,
double latticeConstant) |
Makes a simple cubic lattice of a spatial dimension given by the first
argument, and with the given lattice constant.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getBasisSize() |
Returns 1.
|
double |
getLatticeConstant() |
Accesses the size of the unit cell, the length of each edge of a single cell.
|
void |
scaleBy(double scaleFactor) |
Rescales the lattice by the given factor.
|
void |
setLatticeConstant(double latticeConstant) |
The lattice constant is the size of the cubic primitive vectors.
|
java.lang.String |
toString() |
Returns "Simple cubic".
|
DD, getLatticeConstants, getPrimitive, getSpace, setPrimitive, siteclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLatticeConstants, getSpace, sitepublic LatticeCubicSimple(Space space)
public LatticeCubicSimple(Space space, double latticeConstant)
space - : space of lattice; values of 2D or 3D are expected, 1D might also worklatticeConstant - spacing between adjacent lattice sitespublic void setLatticeConstant(double latticeConstant)
setLatticeConstant in interface CubicLatticelatticeConstant - the unit cell sizepublic double getLatticeConstant()
CubicLatticegetLatticeConstant in interface CubicLatticepublic void scaleBy(double scaleFactor)
public int getBasisSize()
public java.lang.String toString()
toString in class java.lang.Object