Class UnitCell
java.lang.Object
org.episteme.natural.chemistry.crystallography.UnitCell
Unit cell and crystal system representation.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RealbraggAngle(Real d, Real wavelength, int n) Bragg's law: calculates diffraction angle. nλ = 2d·sin(θ)static UnitCellcubic(double a) static UnitCellCreates a cubic unit cell.dSpacing(int h, int k, int l) Calculates d-spacing for a given Miller index.getA()getAlpha()getB()getBeta()getC()getGamma()static UnitCellhexagonal(double a, double c) static UnitCellCreates a hexagonal unit cell.static UnitCellorthorhombic(double a, double b, double c) static UnitCellorthorhombic(Real a, Real b, Real c) Creates an orthorhombic unit cell.static UnitCelltetragonal(double a, double c) static UnitCelltetragonal(Real a, Real c) Creates a tetragonal unit cell.volume()Calculates unit cell volume.
-
Field Details
-
NACL
-
DIAMOND
-
SILICON
-
CU_K_ALPHA
Cu-Kα X-ray wavelength -
MO_K_ALPHA
Mo-Kα X-ray wavelength
-
-
Constructor Details
-
UnitCell
-
UnitCell
public UnitCell(double a, double b, double c, double alpha, double beta, double gamma)
-
-
Method Details
-
cubic
-
cubic
-
tetragonal
-
tetragonal
-
orthorhombic
-
orthorhombic
-
hexagonal
-
hexagonal
-
volume
Calculates unit cell volume. V = abc * sqrt(1 - cos²α - cos²β - cos²γ + 2cosα·cosβ·cosγ) -
dSpacing
Calculates d-spacing for a given Miller index. -
braggAngle
-
getA
-
getB
-
getC
-
getAlpha
-
getBeta
-
getGamma
-
getSystem
-