Diffcalc Software for diffractometer control Rob Walton 4 th June 2010.

Slides:



Advertisements
Similar presentations
Objectives By the end of this section you should:
Advertisements

Reciprocal Space Learning outcomes
Introduction Main technologies: core written in Java embedded Jython interpreter code managed using the Eclipse plugin framework client program uses Eclipse.
Chap 8 Analytical Instruments. XRD Measure X-Rays “Diffracted” by the specimen and obtain a diffraction pattern Interaction of X-rays with sample creates.
Crystal diffraction Laue Nobel prize Max von Laue
Lesson 15 Continue looking at data collection methods Look at film, serial diffractometers and area detectors.
CHAPTER 3: CRYSTAL STRUCTURES X-Ray Diffraction (XRD)
O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 1 Handling Single Crystals in Inelastic Neutron Scattering Experiments Mark Lumsden Center.
Followed by a few examples of
Reciprocal lattice How to construct reciprocal lattice
Øystein Prytz Introduction to diffraction 2 Øystein Prytz.
Lecture 2.1 Crystalline Solids. Poly-crystalline solids - Grains Mono-crystalline solids- Whiskers, Wafers.
CHAPTER 2 : CRYSTAL DIFFRACTION AND PG Govt College for Girls
Miller indices and crystal directions
Chem Single Crystals For single crystals, we see the individual reciprocal lattice points projected onto the detector and we can determine the values.
Yat Li Department of Chemistry & Biochemistry University of California, Santa Cruz CHEM 146C_Experiment #3 Identification of Crystal Structures by Powder.
© Oxford Instruments Analytical Limited 2001 MODULE 2 - Introduction to Basic Crystallography Bravais Lattices Crystal system Miller Indices Crystallographic.
Introduction to X-ray Pole Figures
Stanford Synchrotron Radiation Laboratory Software for X-ray Scattering Measurement Apurva Mehta.
X-ray Diffraction (XRD) and Forensic Geology X-ray diffraction pattern for goethite X-ray diffractometer (XRD) laboratory.
X-Ray Propagation Simulation Student: Jing Yee Chee Advisors: Kenneth D. Finkelstein David Sagan Georg H. Hoffstaetter 6/17/20151.
John Bargar 2nd Annual SSRL School on Hard X-ray Scattering Techniques in Materials and Environmental Sciences May 15-17, 2007 What use is Reciprocal Space?
A Fully Automated Small Molecule Single Crystal X-Ray Diffraction System Mark E Light * & Michael B Hursthouse, Department of Chemistry, University of.
The goal of Data Reduction From a series of diffraction images (films), obtain a file containing the intensity ( I ) and standard deviation (  ( I ))
Submitted By:- Nardev Kumar Bajaj Roll NO Group-C
Analysis of XRD Test.
Some Groups of Mathematical Crystallography Part Deux.
CHE (Structural Inorganic Chemistry) X-ray Diffraction & Crystallography lecture 2 Dr Rob Jackson LJ1.16,
Miller Indices And X-ray diffraction
Introduction to Crystallography
Protein Structure Determination Part 2 -- X-ray Crystallography.
The four-circle single crystal diffractometer.
Lesson 16 Preliminary Steps to Data Collection While there are many types of equipment out there our discussions will be directed at area detectors and.
STAC usage at Diamond Richard Fearn Software Engineer.
The goal of Data Processing From a series of diffraction images, obtain the intensity ( I ) and standard deviation (  ( I )) for each reflection, hkl.
BRAVAIS LATTICE Infinite array of discrete points arranged (and oriented) in such a way that it looks exactly the same from whichever point the array.
EEE539 Solid State Electronics 1. Crystal Structure Issues that are addressed in this chapter include:  Periodic array of atoms  Fundamental types of.
X-Ray Diffraction Dr. T. Ramlochan March 2010.
PHYS 430/603 material Laszlo Takacs UMBC Department of Physics
Diffraction Basics Coherent scattering around atomic scattering centers occurs when x-rays interact with material In materials with a crystalline structure,
Source Specifications in MCNP
Lesson 16 CCD Detectors Visit the Lab. Charged Coupled Device The ccd is essentially a digital camera To keep noise down it is cooled It is almost realtime.
GDA - Generic high speed data collection with EPICS Paul Gibbons Data Acquisition Team Leader Diamond Light Source.
X-ray diffraction. Braggs' law = 2d hkl sin  hkl X-ray diffraction From this set of planes, only get reflection at one angle -  From this set of planes,
Chapter 3: Structures via Diffraction Goals – Define basic ideas of diffraction (using x-ray, electrons, or neutrons, which, although they are particles,
XRD allows Crystal Structure Determination What do we need to know in order to define the crystal structure? - The size of the unit cell and the lattice.
© Oxford Instruments Analytical Limited 2001 Introduction to Basic Crystallography - Zones in the EBSP In an Electron Backscatter Diffraction Pattern (EBSP),
1 Data Acquisition What choices need to be made?.
X-ray powder diffractometer X-ray powder diffractometer.
PHY1039 Properties of Matter Crystallography, Lattice Planes, Miller Indices, and X-ray Diffraction (See on-line resource: )
Indexing. Q hkl = h 2 a* 2 + k 2 c* 2 + l 2 c* 2 + 2hka*b* cos gamma* + 2klb*c* cos alpha* + 2hlc*a* cos beta* = (1/d hkl ) 2.
X-Ray Diffraction Spring 2011.
Preferred orientation Stereographic projections of pole density random single crystal oriented polycrystalline material.
Fourier transform from r to k: Ã(k) =  A(r) e  i k r d 3 r Inverse FT from k to r: A(k) = (2  )  3  Ã(k) e +i k r d 3 k X-rays scatter off the charge.
Office of Science U.S. Department of Energy “Traditional” Tools for Beamline Applications Mark Rivers University of Chicago October 16, 2008.
Crystallography : How do you do? From Diffraction to structure…. Normally one would use a microscope to view very small objects. If we use a light microscope.
Diamond Light Source Data Acquisition System Paul Gibbons.
Crystal Structure NaCl Well defined surfaces
Generic Data Acquisition (GDA) Richard Fearn Data Acquisition Diamond Light Source.
Single crystal XRD.
CHARACTERIZATION OF THE STRUCTURE OF SOLIDS
X-ray diffraction.
Protein Structure Determination
X-ray powder diffractometer.
X-ray Neutron Electron
Chapter 1 Crystallography
X-ray powder diffractometer.
Chap 8 Analytical Instruments
Crystal and X-ray Diffraction
Presentation transcript:

Diffcalc Software for diffractometer control Rob Walton 4 th June 2010

Introduction: GDA Epics Client Diamond uses the open source GDA software (not SPEC) –Paul Gibbons has introduced this here –Client RCP (Eclipse) GUI Contains a Command line terminal –ObjectServer Scannables and Detectors (Some Epics via JCA queue) Other handy things Missing SPEC macros: fourc, sixc … –Commands for diffractometer angle calculations Substituting with Diffcalc –Runs in the GDA’s ObjectServer’s Jython interpreter

Overview 1.What does Diffcalc do? (Three theory slides) 2.Diffcalc 3.Diffcalc in the GDA

1) THEORY: Diffraction Single crystals such as salt –Made of many repeating unit-cells (cubes) –X-rays at just the right wavelength and angle will diffract from planes of these cells Braggs law

Specifying a reflection There are many (infinite) sets of planes –Specify a set of with vector normal to their plane –Miller indexes h, k, l (out of page) h k

Diffractometers Orient crystal and detector to look at reflections 4 circle –Align to any h, k, l (3 circles) –4 th degree-of-freedom normally used to rotate about plane normal (Choose Mode) 5 and 6 circles –Allow additional constraints (Choose Mode) –reach hard-to-reach reflections 5 circle diffractometer

An experiment With SPEC macros or Diffcalc: 1.Setup –Specify shape of unit cell –Find two reflections to infer crystal orientation on mount 2.Moving –Read hkl position from circle angles –Choose a mode –Go to an hkl position

2) DIFFCALC Written in Python –Scientists can extend it themselves –Thoroughly unit tested Environment 1.Standalone in Python 2.GDA software’s Jython interpreter Used on three beamlines. One more by end of year. Implements papers: –Busing & Levi (1966), "Angle Calculations for 3- and 4- Circle X-ray and Neutron Diffractometers", Acta Cryst. 22, 457 –Elias Vlieg & Martin Lohmeier (1993), "Angle Calculations for a Six-Circle Surface X-ray Diffractometer", J. Appl. Cryst. 26, Based on and tested against existing software –Elias Vlieg’s DIF software (closely) –SPEC –Alexander Bombardi’s software

DiffractionCalculator object UBCalculator - alignment AngleCalculator for generic 6 circle case –GeometryPlugin to customise Passive only –HwMonitorPlugin Methods: –setlat –addref –hklmode –fixpar –hklToAngles / AnglesToHkl DiffractionCalculator AngleCalculator UBCalculator AngleMapper HWMonitorPlugin GeometryPlugin

Modes > hklmode Available modes: 0) fourc fixed-bandlw (alpha, blw) 1) fourc bisecting (alpha) 2) fourc incoming (alpha, betain) 3) fourc outgoing (alpha, betaout) 4) fourc azimuth (alpha, azimuth) 5) fourc fixed-phi (alpha, phi) 10) fivec bisecting () 11) fivec incoming (betain) 12) fivec outgoing (betaout) Current mode: 1) fourc bisecting Current Parameters: alpha: 0.0 gamma: 0.0 (fixed by diff.) betain: --- (NA for mode) betaout: --- (NA for mode) azimuth: --- (NA for mode) phi: --- (NA for mode) blw: --- (NA for mode)

3) DIFFCALC IN THE GDA DiffractionCalculator (with ScannableMonitorPlugin) hkl hkl hklverbose alpha_par betaout betain fivec αδωχφ enwl Running in the GDA ObjectServer’s Jython Interpreter

Commands/Demo Methods exposed to user as commands: > newub ‘demo’ > setlat ‘cubic’ > pos wl 1 > pos fivec [ ] > addref > pos chi 91 > addref Calculating UB matrix. > checkub energy h k l h_c k_c l_c > def p(s): > print s > p(1) 1 Standard Jython terminal > alias(‘p’) > p 1 1 > p [1 2 3] [1,2,3] But… ‘Extended syntax’

Moving and Scanning > pos wl 1 > pos hkl [1 0 0] > scan betain hkl [1 0 0] det 1 > scan en hkl [1 0 0] det 1 > rscan h det 1 > scan hkl [1 0 0] [0 0 1] [ ] Use standard gda commands pos and scan –Like any other Scannable (motor, detector etc.) –E.g. :

Conclusion Open GDA and Diffcalc  SPEC (Disclaimer: Not all SPEC diffractometer macros are implemented) Available at opengda.org with documentation