|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.lattice.crystal.Primitive
public abstract class Primitive
Collection of primitive elements that specify or are determined by the structure of a Bravais lattice.
| Field Summary | |
|---|---|
protected double[] |
angle
|
protected int |
D
|
protected int[] |
idx
|
protected IVectorMutable[] |
latticeVectors
|
protected static double |
rightAngle
|
protected double[] |
size
|
protected ISpace |
space
|
| Constructor Summary | |
|---|---|
Primitive(ISpace space)
This constructor is called directly when a Primitive is constructing its reciprocal primitive. |
|
| Method Summary | |
|---|---|
abstract Primitive |
copy()
Returns a new, identical instance of this primitive. |
double[] |
getSize()
Returns a new array with values equal to the lengths of the primitive vectors. |
ISpace |
getSpace()
|
abstract int[] |
latticeIndex(IVector r)
Returns the index which would give the unit cell containing the given point if the index were passed to a the site method of a sufficiently large lattice that uses this primitive. |
abstract int[] |
latticeIndex(IVector r,
int[] dimensions)
Same as latticeIndex(Space.Vector), but gives index for periodic system with number of unit cells in each direction as given by the dimensions array. |
abstract Primitive |
makeReciprocal()
Method defining and constructing reciprocal primitive; |
abstract void |
scaleSize(double scale)
Scales (multiplies) the size of each primitive vector by the given value. |
protected void |
setAngles(double[] newAngle)
Sets the angles between the primitive vector to the corresponding values in the given array. |
protected void |
setSize(double[] newSize)
Sets the length of each primitive vector to the corresponding value in the given array. |
Polytope |
unitCell()
Returns a the unit cell specified by this primitive. |
protected abstract void |
update()
|
IVector[] |
vectors()
Returns the primitive vectors. |
abstract Polytope |
wignerSeitzCell()
Returns the Wigner-Seitz cell specified by this primitive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final IVectorMutable[] latticeVectors
protected final int[] idx
protected final int D
protected final double[] size
protected final double[] angle
protected final ISpace space
protected static final double rightAngle
| Constructor Detail |
|---|
public Primitive(ISpace space)
| Method Detail |
|---|
public abstract Primitive makeReciprocal()
public final ISpace getSpace()
public double[] getSize()
protected final void setSize(double[] newSize)
protected final void setAngles(double[] newAngle)
protected abstract void update()
public abstract void scaleSize(double scale)
public IVector[] vectors()
public abstract Primitive copy()
public abstract int[] latticeIndex(IVector r)
public abstract int[] latticeIndex(IVector r,
int[] dimensions)
public abstract Polytope wignerSeitzCell()
public Polytope unitCell()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||