-
Notifications
You must be signed in to change notification settings - Fork 0
atom.h
atom.h is a class which stores information about a single atom. This will be used later for storing information about atoms in the crystal.
The class constructor header is given by
Atom(int Z, float xf, float yf, float zf, int px, int py, float rx, float ry)
The inputs are as follows:
Z: atomic number of atom
(xf, yf, zf): fractional position of atom in unit cell
(px, py): dimensions of grid where calculations are carried out in pixels
(rx, ry): real space length of unit cell in Ang.
Calculates the scattering factor. The scattering factor is given by 5.17 of kirkland. The parameters for the fit are stored in scattering_amplitude_coefficients.cpp.
The structure factor is given by 5.23 of kirkland although this method only calculates F(q_\perp, q_z=0) in anticipation of the fourier projection theorem used to calculate the projected atomic potential.
The atomic potential is given by 5.21 of kirkland.
Stores the pixel resolution of the calculation. These must be powers of two since the fft used is a radix-2 fft.
occupancy and mean-square displacement, not currently used in code.
fractional coordinates of atom
atomic number
stores potential from calcPotential() method.