23 unsigned N_1,
unsigned N_2,
27 setName(
"InterferenceFinite3DLattice");
43 throw std::runtime_error(
"InterferenceFunctionFinite3DLattice::lattice() -> Error. "
44 "No lattice defined.");
50 return std::vector<const INode*>() <<
m_lattice;
56 const double qadiv2 = q.
dot(
m_lattice->getBasisVectorA()) / 2.0;
57 const double qbdiv2 = q.
dot(
m_lattice->getBasisVectorB()) / 2.0;
58 const double qcdiv2 = q.
dot(
m_lattice->getBasisVectorC()) / 2.0;
Defines M_PI and some more mathematical constants.
Defines functions in namespace Math.
Defines class InterferenceFunctionFinite3DLattice.
Defines class RealParameter.
auto dot(const BasicVector3D< U > &v) const
Returns dot product of vectors (antilinear in the first [=self] argument).
Abstract base class of interference functions.
void registerChild(INode *node)
void setName(const std::string &name)
Interference function of a finite 3D lattice.
double iff_without_dw(const kvector_t q) const override
Calculates the structure factor without Debye-Waller factor.
std::unique_ptr< Lattice3D > m_lattice
InterferenceFunctionFinite3DLattice * clone() const override
Returns a clone of this ISampleNode object.
InterferenceFunctionFinite3DLattice(const Lattice3D &lattice, unsigned N_1, unsigned N_2, unsigned N_3)
~InterferenceFunctionFinite3DLattice() override
std::vector< const INode * > getChildren() const override
Returns a vector of children.
const Lattice3D & lattice() const
unsigned m_N_3
Size of the finite lattice in lattice units.
void setLattice(const Lattice3D &lattice)
A Bravais lattice, characterized by three basis vectors, and optionally an ISelectionRule.
double Laue(const double x, size_t N)
Real Laue function: .