From 5062b19d1227eaf5e43c0f3ce2bea56181a4af93 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Sun, 6 Dec 2020 22:58:16 +0100 Subject: [PATCH] Start analysis Lattice.md --- devtools/architecture/Lattice.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 devtools/architecture/Lattice.md diff --git a/devtools/architecture/Lattice.md b/devtools/architecture/Lattice.md new file mode 100644 index 00000000000..41910b4fd55 --- /dev/null +++ b/devtools/architecture/Lattice.md @@ -0,0 +1,12 @@ +## Lattices + +Typical sample construction with a 3d lattice: +``` + lattice = ba.FCCLattice(30*nm).transformed(rot.getTransform3D()) + peak_shape = ba.MisesFisherGaussPeakShape(peak_intensity, peak_width, zenith, kappa, kappa2) + iff = ba.InterferenceFunction3DLattice(lattice) + iff.setPositionVariance(1.) + iff.setPeakShape(peak_shape) +``` + +`bake::FCCLattice` returns a `Lattice3d` with an fcc primitive cell. -- GitLab