BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ComputeFluxScalar.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Resample/Specular/ComputeFluxScalar.h
6 //! @brief Defines namespace Compute::SpecularScalar.
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_RESAMPLE_SPECULAR_COMPUTEFLUXSCALAR_H
21 #define BORNAGAIN_RESAMPLE_SPECULAR_COMPUTEFLUXSCALAR_H
22 
24 #include <heinz/Complex.h>
25 #include <heinz/Vectors3D.h>
26 #include <memory>
27 #include <vector>
28 
29 class IFlux;
30 class SliceStack;
31 using Fluxes = std::vector<std::unique_ptr<const IFlux>>;
32 
33 //! Methods to compute scalar propagation directions and fluxes as function of slice.
34 
36 
37 //! Computes refraction angles and transmission/reflection coefficients
38 //! for given coherent wave propagation in a sample.
39 Fluxes fluxes(const SliceStack& slices, const R3& k);
40 
41 //! Computes the Fresnel R coefficient for the top layer only.
42 //! Introduced in order to speed up pure reflectivity computations.
43 complex_t topLayerR(const SliceStack& slices, const std::vector<complex_t>& kz);
44 
45 } // namespace Compute::SpecularScalar
46 
47 #endif // BORNAGAIN_RESAMPLE_SPECULAR_COMPUTEFLUXSCALAR_H
48 #endif // USER_API
std::vector< std::unique_ptr< const IFlux > > Fluxes
Define RoughnessModels enumerator and Python wrapper.
Interface to access reflection/transmission coefficients. Realized by ScalarFlux and MatrixFlux.
Definition: IFlux.h:30
A stack of Slices.
Definition: SliceStack.h:38
Methods to compute scalar propagation directions and fluxes as function of slice.
complex_t topLayerR(const SliceStack &slices, const std::vector< complex_t > &kz)
Computes the Fresnel R coefficient for the top layer only. Introduced in order to speed up pure refle...
Fluxes fluxes(const SliceStack &slices, const R3 &k)
Computes refraction angles and transmission/reflection coefficients for given coherent wave propagati...