AbstractLattice<Vector>
, CubicLattice
, SpaceLattice
public 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".
|
D
D, getLatticeConstants, getPrimitive, getSpace, setPrimitive, site
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLatticeConstants, getSpace, site
public 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 CubicLattice
latticeConstant
- the unit cell sizepublic double getLatticeConstant()
CubicLattice
getLatticeConstant
in interface CubicLattice
public void scaleBy(double scaleFactor)
public int getBasisSize()
public java.lang.String toString()
toString
in class java.lang.Object