Bsoft  2.1.0
Bernard's software package
scatter.h
Go to the documentation of this file.
1 
9 #include "rwatomprop.h"
10 #include "ctf.h"
11 #include "json.h"
12 #include "utilities.h"
13 
14 // Function prototypes
15 vector<double> calculate_scattering_curve(Batomtype* at,
16  double ds, double scut);
17 map<string, vector<double>> calculate_scattering_curves(JSvalue& el,
18  Batomtype* atompar, double ds, double scut);
20 double elastic_cross_section(Batomtype* at, double volt);
22 double elastic_cross_section(JSvalue& el, Batomtype* atompar, double volt);
24 double inelastic_cross_section_langmore(long Z, double volt);
25 double inelastic_cross_section_langmore(JSvalue& el, Batomtype* atompar, double volt);
26 double cross_section(JSvalue& el, Batomtype* atompar, double volt);
27 double cross_section_integrated(JSvalue& el, Batomtype* atompar, CTFparam& ctf);
30 double ice_density();
31 double ice_cross_section(Batomtype* atompar, double volt);
32 double intensity(JSvalue& el, double d, double thickness, Batomtype* atompar, CTFparam& ctf);
33 double ice_intensity(double thickness, Batomtype* atompar, CTFparam& ctf);
34 vector<double> ice_intensity(double thick_step, double thick_max, Batomtype* atompar, CTFparam& ctf);
35 double ice_lambda(Batomtype* atompar, CTFparam& ctf);
ice_intensity
double ice_intensity(double thickness, Batomtype *atompar, CTFparam &ctf)
Calculates the expected intensity given a thickness of vitreous ice.
Definition: scatter.cpp:433
cross_section_half_maximal_frequency
double cross_section_half_maximal_frequency(Batomtype *at)
Calculates the half-maximal frequency for an atom type.
Definition: scatter.cpp:307
Batomtype
Definition: rwatomprop.h:19
cross_section_integrated
double cross_section_integrated(JSvalue &el, Batomtype *atompar, CTFparam &ctf)
Calculates the combined total cross section for a defined composition.
Definition: scatter.cpp:288
calculate_scattering_curve
vector< double > calculate_scattering_curve(Batomtype *at, double ds, double scut)
Calculates an elastic electron scattering profile for an atom type.
Definition: scatter.cpp:65
cross_section
double cross_section(JSvalue &el, Batomtype *atompar, double volt)
Calculates the combined total cross section for a defined composition.
Definition: scatter.cpp:265
scatter_curve_integral
double scatter_curve_integral(Batomtype *at)
Calculates the integral of the whole curve.
Definition: scatter.cpp:121
intensity
double intensity(JSvalue &el, double d, double thickness, Batomtype *atompar, CTFparam &ctf)
Calculates the expected intensity given a thickness of vitreous ice.
Definition: scatter.cpp:391
ice_density
double ice_density()
Returns vitreous ice density.
Definition: scatter.cpp:349
rwatomprop.h
Header file for reading atom property files.
ctf.h
Header file for CTF (contrast transfer function) functions.
inelastic_cross_section_langmore
double inelastic_cross_section_langmore(long Z, double volt)
Calculates the inelastic cross section for an atom type.
Definition: scatter.cpp:224
JSvalue
Definition: json.h:53
ice_cross_section
double ice_cross_section(Batomtype *atompar, double volt)
Calculates the total cross section for ice up to the aperture cutoff.
Definition: scatter.cpp:371
utilities.h
Header file for general utilities.
elastic_cross_section_integrated
double elastic_cross_section_integrated(Batomtype *at, CTFparam &ctf)
Integrates the elastic scattering curve up to the aperture cutoff.
Definition: scatter.cpp:158
CTFparam
Definition: ctf.h:28
json.h
elastic_cross_section
double elastic_cross_section(Batomtype *at, double volt)
Calculates the full elastic cross section (no aperture).
Definition: scatter.cpp:141
ice_lambda
double ice_lambda(Batomtype *atompar, CTFparam &ctf)
Calculates the average lambda proportionality parameter for vitreous ice.
Definition: scatter.cpp:501
calculate_scattering_curves
map< string, vector< double > > calculate_scattering_curves(JSvalue &el, Batomtype *atompar, double ds, double scut)
Calculates elastic electron scattering profiles for a subset of atom types.
Definition: scatter.cpp:97