|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.lattice.crystal.Primitive
etomica.lattice.crystal.PrimitiveHexagonal2D
public class PrimitiveHexagonal2D
Primitive group for a 2D hexagonal system. Primitive-vector angle is 120 degrees and two vectors are of equal length.
| Nested Class Summary | |
|---|---|
protected static class |
PrimitiveHexagonal2D.PrimitiveHexagonal2DReciprocal
|
| Field Summary | |
|---|---|
protected double |
ab
|
protected static double |
cosGamma
|
protected static double |
gamma
|
protected static double |
sinGamma
|
| Fields inherited from class etomica.lattice.crystal.Primitive |
|---|
angle, D, idx, latticeVectors, rightAngle, size, space |
| Constructor Summary | |
|---|---|
PrimitiveHexagonal2D(ISpace space)
|
|
PrimitiveHexagonal2D(ISpace space,
double ab)
|
|
| Method Summary | |
|---|---|
Primitive |
copy()
Returns a new PrimitiveHexagonal with the same size as this one. |
double |
getSizeAB()
|
int[] |
latticeIndex(IVector q)
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. |
int[] |
latticeIndex(IVector q,
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. |
Primitive |
makeReciprocal()
Method defining and constructing reciprocal primitive; |
void |
scaleSize(double scale)
Scales (multiplies) the size of each primitive vector by the given value. |
void |
setSizeAB(double newAB)
|
String |
toString()
|
protected void |
update()
|
Polytope |
wignerSeitzCell()
Returns the Wigner-Seitz cell specified by this primitive. |
| Methods inherited from class etomica.lattice.crystal.Primitive |
|---|
getSize, getSpace, setAngles, setSize, unitCell, vectors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double ab
protected static final double gamma
protected static final double cosGamma
protected static final double sinGamma
| Constructor Detail |
|---|
public PrimitiveHexagonal2D(ISpace space)
public PrimitiveHexagonal2D(ISpace space,
double ab)
| Method Detail |
|---|
public Primitive makeReciprocal()
Primitive
makeReciprocal in class Primitivepublic void setSizeAB(double newAB)
public double getSizeAB()
protected void update()
update in class Primitivepublic Primitive copy()
copy in class Primitivepublic void scaleSize(double scale)
Primitive
scaleSize in class Primitivepublic int[] latticeIndex(IVector q)
Primitive
latticeIndex in class Primitive
public int[] latticeIndex(IVector q,
int[] dimensions)
Primitive
latticeIndex in class Primitivepublic Polytope wignerSeitzCell()
Primitive
wignerSeitzCell in class Primitivepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||