public class LatticeCubicFcc extends BravaisLatticeCrystal implements CubicLattice
basis
primitive
Constructor and Description |
---|
LatticeCubicFcc(ISpace space)
Cubic fcc crystal with a lattice constant that gives a
maximum-density structure for spheres of unit size.
|
LatticeCubicFcc(ISpace space,
double latticeConstant) |
Modifier and Type | Method and Description |
---|---|
double |
getLatticeConstant()
Accesses the size of the unit cell, the length of each edge of a single cell.
|
PrimitiveFcc |
getPrimitiveFcc()
Returns a new PrimitiveFcc instance corresponding to the fcc lattice.
|
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
of the lattice underlying this crystal.
|
java.lang.String |
toString()
Returns "Fcc".
|
D, getBasis, site
getLatticeConstants, getPrimitive, getSpace, setPrimitive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLatticeConstants, getSpace
D, site
public LatticeCubicFcc(ISpace space)
Use scaleBy method if desired to make lattice constant give maximum density for another sphere size.
public LatticeCubicFcc(ISpace space, double latticeConstant)
public PrimitiveFcc getPrimitiveFcc()
public 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 java.lang.String toString()
toString
in class java.lang.Object