15 #ifndef BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTION2DPARACRYSTAL_H
16 #define BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTION2DPARACRYSTAL_H
31 double domain_size_1,
double domain_size_2);
56 std::vector<const INode*>
getChildren()
const override;
66 double interference1D(
double qx,
double qy,
double xi,
size_t index)
const;
67 complex_t FTPDF(
double qx,
double qy,
double xi,
size_t index)
const;
69 double& q_pa_2)
const;
std::complex< double > complex_t
Defines interface class IFTDistribution2D, and children thereof.
Defines and implements the interface class IInterferenceFunction.
Defines classes of Lattice2D family.
Interface for two-dimensional distributions in Fourier space.
Abstract base class of interference functions.
Visitor interface to visit ISampleNode objects.
virtual void visit(const BasicLattice2D *)
Interference function of a 2D paracrystal.
double getParticleDensity() const override
If defined by this interference function's parameters, returns the particle density (per area).
void setProbabilityDistributions(const IFTDistribution2D &pdf_1, const IFTDistribution2D &pdf_2)
Sets the probability distributions (Fourier transformed) for the two lattice directions.
InterferenceFunction2DParaCrystal(const Lattice2D &lattice, double damping_length, double domain_size_1, double domain_size_2)
const IFTDistribution2D * pdf1() const
double iff_without_dw(const kvector_t q) const override
Calculates the structure factor without Debye-Waller factor.
std::vector< double > domainSizes() const
double m_domain_sizes[2]
Coherence domain sizes.
InterferenceFunction2DParaCrystal * clone() const override
Returns a clone of this ISampleNode object.
const IFTDistribution2D * pdf2() const
std::unique_ptr< IFTDistribution2D > m_pdf1
void setIntegrationOverXi(bool integrate_xi)
Enables/disables averaging over the lattice rotation angle.
bool m_integrate_xi
Integrate over the orientation xi.
double m_damping_length
Damping length for removing delta function singularity at q=0.
void setDampingLength(double damping_length)
Sets the damping length.
std::unique_ptr< IFTDistribution2D > m_pdf2
~InterferenceFunction2DParaCrystal() override
const Lattice2D & lattice() const
double dampingLength() const
bool integrationOverXi() const
double interferenceForXi(double xi) const
Returns interference function for fixed angle xi.
complex_t FTPDF(double qx, double qy, double xi, size_t index) const
void setDomainSizes(double size_1, double size_2)
Sets the sizes of coherence domains.
void transformToPrincipalAxes(double qx, double qy, double gamma, double delta, double &q_pa_1, double &q_pa_2) const
std::vector< const INode * > getChildren() const override
Returns a vector of children.
std::unique_ptr< Lattice2D > m_lattice
void accept(INodeVisitor *visitor) const override
Calls the INodeVisitor's visit method.
double interference1D(double qx, double qy, double xi, size_t index) const
Returns interference function for fixed xi in the dimension determined by the given index.
A two-dimensional Bravais lattice.