BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
InterferenceFunctionRadialParaCrystal.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Sample/Aggregate/InterferenceFunctionRadialParaCrystal.h
6 //! @brief Defines class InterferenceFunctionRadialParaCrystal.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTIONRADIALPARACRYSTAL_H
16 #define BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTIONRADIALPARACRYSTAL_H
17 
20 #include <memory>
21 
22 //! Interference function of radial paracrystal.
23 //! @ingroup interference
24 
26 public:
27  InterferenceFunctionRadialParaCrystal(double peak_distance, double damping_length);
29 
30  void accept(INodeVisitor* visitor) const final { visitor->visit(this); }
31 
32  void setKappa(double kappa);
33  double kappa() const;
34 
35  void setDomainSize(double size);
36  double domainSize() const { return m_domain_size; }
37 
38  complex_t FTPDF(double qpar) const;
39 
41 
42  double peakDistance() const { return m_peak_distance; }
43 
44  double dampingLength() const { return m_damping_length; }
45 
46  std::vector<const INode*> getChildren() const final;
47 
48  double randomSample() const { return m_pdf->createSampler()->randomSample(); }
49 
50 private:
51  double iff_without_dw(const kvector_t q) const final;
53 
54  double m_peak_distance; //!< the distance to the first neighbor peak
55  double m_damping_length; //!< damping length of paracrystal
56  //! Fourier transformed probability distribution of the nearest particle
57  std::unique_ptr<IFTDistribution1D> m_pdf;
59  double m_kappa; //!< Size-spacing coupling parameter
60  double m_domain_size; //!< Size of coherence domain
61 };
62 
63 #endif // BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTIONRADIALPARACRYSTAL_H
std::complex< double > complex_t
Definition: Complex.h:20
Defines interface class IFTDistribution1D, and children thereof.
Defines and implements the interface class IInterferenceFunction.
Interface for a one-dimensional distribution, with normalization adjusted so that the Fourier transfo...
Abstract base class of interference functions.
Visitor interface to visit ISampleNode objects.
Definition: INodeVisitor.h:146
Interference function of radial paracrystal.
InterferenceFunctionRadialParaCrystal * clone() const final
Returns a clone of this ISampleNode object.
InterferenceFunctionRadialParaCrystal(double peak_distance, double damping_length)
Constructor of interference function of radial paracrystal.
void setDomainSize(double size)
Sets domain size (finite size corrections).
double iff_without_dw(const kvector_t q) const final
Calculates the structure factor without Debye-Waller factor.
std::vector< const INode * > getChildren() const final
Returns a vector of children.
void setKappa(double kappa)
Sets size spacing coupling parameter of the Size Spacing Correlation Approximation.
std::unique_ptr< IFTDistribution1D > m_pdf
Fourier transformed probability distribution of the nearest particle.
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
double m_peak_distance
the distance to the first neighbor peak
void setProbabilityDistribution(const IFTDistribution1D &pdf)
Sets one-dimensional probability distribution.