15 #ifndef BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFINITE2DLATTICE_H
16 #define BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFINITE2DLATTICE_H
30 std::string
className() const final {
return "InterferenceFinite2DLattice"; }
Defines and implements the interface class IInterference.
Defines classes of Lattice2D family.
Abstract base class of interference functions.
Interference function of a finite 2D lattice.
const Lattice2D & lattice() const
unsigned m_N_2
Size of the finite lattice in lattice units.
unsigned numberUnitCells2() const
bool m_integrate_xi
Integrate over the orientation xi.
unsigned numberUnitCells1() const
~InterferenceFinite2DLattice() override
double particleDensity() const override
Returns the particle density associated with this 2d lattice.
InterferenceFinite2DLattice(const Lattice2D &lattice, unsigned N_1, unsigned N_2)
Constructor of two-dimensional finite lattice interference function.
std::string className() const final
Returns the class name, to be hard-coded in each leaf class that inherits from INode.
InterferenceFinite2DLattice * clone() const override
std::vector< const INode * > nodeChildren() const override
Returns all children.
double iff_without_dw(R3 q) const override
Calculates the structure factor without Debye-Waller factor.
std::unique_ptr< Lattice2D > m_lattice
double interferenceForXi(double xi, double qx, double qy) const
bool integrationOverXi() const
void setIntegrationOverXi(bool integrate_xi)
A two-dimensional Bravais lattice.