hexrd.material module
Module for XRD material class
Use the Material class directly for new materials. Known materials are defined by name in materialDict.
- class hexrd.material.Material(name=None, material_file=None, dmin=None, kev=None, sgsetting=0)[source]
Bases:
objectSimple class for holding lattice parameters, accessible by name.
The class references materials by name and contains lattice and space group data. default data is for nickel, but name is material
- DFLT_ATOMINFO = array([[0., 0., 0., 1.]])
- DFLT_ATOMTYPE = array([28])
- DFLT_CHARGE = array(['0'], dtype='<U1')
the dmin parameter is used to figure out the maximum sampling for g-vectors this parameter is in angstroms
- DFLT_DMIN = valWUnit("lp","LENGTH",0.75,"angstrom")
default stiffness tensor in voight notation
- DFLT_KEV = valWUnit("wavelength","ENERGY",80.725,"keV")
- DFLT_LPARMS = [valWUnit("lp","LENGTH",3.61,"angstrom"), valWUnit("lp","LENGTH",3.61,"angstrom"), valWUnit("lp","LENGTH",3.61,"angstrom"), valWUnit("lp","ANGLE",90.0,"degrees"), valWUnit("lp","ANGLE",90.0,"degrees"), valWUnit("lp","ANGLE",90.0,"degrees")]
- DFLT_NAME = 'material.xtal'
- DFLT_SGNUM = 225
- DFLT_SGSETTING = 0
- DFLT_SSMAX = 100
- DFLT_STIFFNESS = array([[1., 0., 0., 0., 0., 0.], [0., 1., 0., 0., 0., 0.], [0., 0., 1., 0., 0., 0.], [0., 0., 0., 1., 0., 0.], [0., 0., 0., 0., 1., 0.], [0., 0., 0., 0., 0., 1.]])
some materials have more than one space group setting. for ex the diamond cubic system has two settings with the origin either at (0,0,0) or at (1/4,1/4,1/4) etc. this handle takes care of these cases. but the defaiult is always 0
default space group setting
- DFLT_STR = 0.0025
- DFLT_TTH = 0.004363323129985824
- DFLT_TTHMAX = None
ATOMINFO Fractional Atom Position of an atom in the unit cell followed by the site occupany and debye waller (U) factor in A^(-2) B is related to U by B = 8 pi^2 U
ATOMTYPE atomic number of all the different species in the unitcell
- DFLT_U = array([0.00633])
- DFLT_XTAL = 'Ni'
- property U
- property absorption_length
- property aniU
- property atom_pos
- property atom_type
- property atominfo
Information about atomic positions and electron number
- property atomtype
Information about atomic types
- property beamEnergy
03/11/2021 SS 1.0 original
- property charge
- compute_powder_overlay(ttharray=array([0.000000e+00, 4.002001e-02, 8.004002e-02, ..., 7.991996e+01, 7.995998e+01, 8.000000e+01]), fwhm=0.25, scale=1.0)[source]
this function computes a simulated spectra for using in place of lines for the powder overlay. inputs are simplified as compared to the typical LeBail/Rietveld computation. only a fwhm (in degrees) and scale are passed
requested feature from Amy Jenei
- property dmin
- enable_hkls_below_tth(tth_threshold=90.0)[source]
enable reflections with two-theta less than @tth_threshold degrees
- property latticeParameters
- property latticeType
- property lparms
- property name
Name of material
- property natoms
- property planeData
(read only) Return the planeData attribute (lattice parameters)
- property reduced_lattice_parameters
- remove_duplicate_atoms()[source]
this function calls the same function in the unitcell class and updates planedata structure factors etc.
- property sgnum
Space group number
- property spaceGroup
(read only) Space group
- property unitcell
- property vol
- property vol_per_atom