![]() |
Bsoft 2.1.4
Bernard's software package
|
Functions for calculating electron scattering profiles. More...
Functions | |
double | signal_integrated (double emu, double imu, double ke, double ki, int ef) |
double | signal_integrated_new (double emu, double imu, double k, int ef) |
vector< string > | all_elements (map< string, Bcomptype > &types) |
JSvalue | js_all_elements (map< string, Bcomptype > &types) |
JSvalue | js_composition (vector< string > &vs) |
JSvalue | js_composition (string s) |
vector< double > | calculate_scattering_curve (Bcomptype &ct, double ds, double scut) |
Calculates an elastic electron scattering profile for a component type. More... | |
map< string, vector< double > > | calculate_scattering_curves (JSvalue &el, map< string, Bcomptype > &types, double ds, double scut) |
Calculates elastic electron scattering profiles for a subset of component types. More... | |
map< string, vector< double > > | calculate_scattering_curves (map< string, Bcomptype > &types, double ds, double scut) |
double | scatter_curve_integral (Bcomptype &ct) |
Calculates the integral of the whole curve. More... | |
vector< double > | calculate_potential_curve (Bcomptype &ct, double dr, double rmax) |
Calculates the atomic potential for elastic electron scattering for a component type. More... | |
map< string, vector< double > > | calculate_potential_curves (JSvalue &el, map< string, Bcomptype > &types, double dr, double rmax) |
Calculates potential profiles for a subset of component types. More... | |
double | elastic_cross_section (Bcomptype &ct, double volt) |
Calculates the full elastic cross section (no aperture). More... | |
double | elastic_cross_section_integrated (Bcomptype &ct, CTFparam &ctf) |
Integrates the elastic scattering curve up to the aperture cutoff. More... | |
double | elastic_cross_section (map< string, Bcomptype > &types, double volt) |
Calculates the combined elastic cross section for a defined composition. More... | |
double | elastic_cross_section_integrated (map< string, Bcomptype > &types, CTFparam &ctf) |
Calculates the combined elastic cross section for a defined composition. More... | |
double | inelastic_cross_section_langmore (long Z, double volt) |
Calculates the inelastic cross section for an component type. More... | |
double | inelastic_cross_section_langmore (map< string, Bcomptype > &types, double volt) |
Calculates the combined inelastic cross section for a defined composition. More... | |
double | cross_section (map< string, Bcomptype > &types, double volt) |
Calculates the combined total cross section for a defined composition. More... | |
double | cross_section_integrated (map< string, Bcomptype > &types, CTFparam &ctf) |
Calculates the combined total cross section for a defined composition. More... | |
double | cross_section_half_maximal_frequency (Bcomptype &ct) |
Calculates the half-maximal frequency for a component type. More... | |
double | cross_section_half_maximal_frequency (map< string, Bcomptype > &types) |
Calculates the half-maximal frequency for an component type. More... | |
Bmaterial | material_combine (vector< Bmaterial > &mlist, vector< double > fractions) |
Creates a newAssembles a component composition from a set of materials with fractional contributions. More... | |
Bmaterial | material_ice (map< string, Bcomptype > &types) |
Returns vitreous ice as material. More... | |
double | ice_cross_section (map< string, Bcomptype > &types, double volt) |
Calculates the total cross section for ice up to the aperture cutoff. More... | |
double | effective_mean_free_path (Bmaterial &material, CTFparam &ctf) |
Calculates the average effective mean free path. More... | |
double | effective_mean_free_path (vector< Bmaterial > &materials, vector< double > fractions, CTFparam &ctf) |
Calculates the expected intensity given a thickness of vitreous ice. More... | |
double | ice_intensity (map< string, Bcomptype > &types, double thickness, CTFparam &ctf) |
Calculates the expected intensity given a thickness of vitreous ice. More... | |
double | signal_intensity (Bmaterial &material, double thickness, CTFparam &ctf) |
Calculates the expected intensity given a thickness of vitreous ice. More... | |
vector< double > | signal_intensity (Bmaterial &material, double thick_step, double thick_max, CTFparam &ctf) |
Calculates the expected intensity vs thickness of vitreous ice. More... | |
int | write_scattering_curves (Bstring ¶mfile, Bstring &outfile, Bstring &selection, double resolution) |
Calculates and writes atomic scattering profiles to a file. More... | |
int | write_potential_curves (Bstring ¶mfile, Bstring &outfile, Bstring &selection, double radius) |
Calculates and writes atomic scattering profiles to a file. More... | |
Variables | |
int | verbose |
auto | string_is_empty |
Functions for calculating electron scattering profiles.
vector< string > all_elements | ( | map< string, Bcomptype > & | types | ) |
vector< double > calculate_potential_curve | ( | Bcomptype & | ct, |
double | dr, | ||
double | rmax | ||
) |
Calculates the atomic potential for elastic electron scattering for a component type.
&ct | component type. |
dr | radius increment. |
rmax | maximum radius. |
map< string, vector< double > > calculate_potential_curves | ( | JSvalue & | el, |
map< string, Bcomptype > & | types, | ||
double | dr, | ||
double | rmax | ||
) |
Calculates potential profiles for a subset of component types.
&el | elements to calculate curves for. |
&types | component type. |
dr | radius increment. |
rmax | maximum radius. |
vector< double > calculate_scattering_curve | ( | Bcomptype & | ct, |
double | ds, | ||
double | scut | ||
) |
Calculates an elastic electron scattering profile for a component type.
&ct | component type. |
ds | frequency space sampling increment. |
scut | maximum spacial frequency. |
map< string, vector< double > > calculate_scattering_curves | ( | JSvalue & | el, |
map< string, Bcomptype > & | types, | ||
double | ds, | ||
double | scut | ||
) |
Calculates elastic electron scattering profiles for a subset of component types.
&el | elements to calculate curves for. |
&types | component type. |
ds | frequency space sampling increment. |
scut | maximum spacial frequency. |
map< string, vector< double > > calculate_scattering_curves | ( | map< string, Bcomptype > & | types, |
double | ds, | ||
double | scut | ||
) |
double cross_section | ( | map< string, Bcomptype > & | types, |
double | volt | ||
) |
Calculates the combined total cross section for a defined composition.
&types | component types. |
volt | acceleration voltage. |
double cross_section_half_maximal_frequency | ( | Bcomptype & | ct | ) |
Calculates the half-maximal frequency for a component type.
&ct | component type. |
double cross_section_half_maximal_frequency | ( | map< string, Bcomptype > & | types | ) |
Calculates the half-maximal frequency for an component type.
&types | component types. |
Calculates the combined total cross section for a defined composition.
&types | component types. |
&ctf | CTF and microscope parameters. |
If the slit width is specified, the energy filter is assumed to be used and only the elastic cross section is returned.
Calculates the average effective mean free path.
&material | material with types. |
&ctf | microscope parameters. |
double effective_mean_free_path | ( | vector< Bmaterial > & | materials, |
vector< double > | fractions, | ||
CTFparam & | ctf | ||
) |
Calculates the expected intensity given a thickness of vitreous ice.
&materials | list of materials with types. |
&fractions | fractional contributions. |
&ctf | microscope parameters. |
double elastic_cross_section | ( | Bcomptype & | ct, |
double | volt | ||
) |
Calculates the full elastic cross section (no aperture).
&ct | component type. |
volt | acceleration voltage. |
double elastic_cross_section | ( | map< string, Bcomptype > & | types, |
double | volt | ||
) |
Calculates the combined elastic cross section for a defined composition.
&types | component types. |
volt | acceleration voltage. |
Integrates the elastic scattering curve up to the aperture cutoff.
&ct | component type. |
ctf | CTF and microscope parameters. |
Calculates the combined elastic cross section for a defined composition.
&types | component types. |
ctf | CTF and microscope parameters. |
double ice_cross_section | ( | map< string, Bcomptype > & | types, |
double | volt | ||
) |
Calculates the total cross section for ice up to the aperture cutoff.
&types | component types. |
volt | acceleration voltage. |
Calculates the expected intensity given a thickness of vitreous ice.
thickness | component types. |
&types | component types. |
ctf | microscope parameters. |
double inelastic_cross_section_langmore | ( | long | Z, |
double | volt | ||
) |
Calculates the inelastic cross section for an component type.
Z | atomic number. |
volt | acceleration voltage. |
double inelastic_cross_section_langmore | ( | map< string, Bcomptype > & | types, |
double | volt | ||
) |
Calculates the combined inelastic cross section for a defined composition.
&types | component types. |
volt | acceleration voltage. |
JSvalue js_composition | ( | string | s | ) |
JSvalue js_composition | ( | vector< string > & | vs | ) |
Creates a newAssembles a component composition from a set of materials with fractional contributions.
&mlist | list of materials. |
&fractions | fractional contributions. |
Returns vitreous ice as material.
types | reference parameters. |
double scatter_curve_integral | ( | Bcomptype & | ct | ) |
Calculates the integral of the whole curve.
&ct | component type. |
Burge & Smith (1962) formula
double signal_integrated | ( | double | emu, |
double | imu, | ||
double | ke, | ||
double | ki, | ||
int | ef | ||
) |
double signal_integrated_new | ( | double | emu, |
double | imu, | ||
double | k, | ||
int | ef | ||
) |
vector< double > signal_intensity | ( | Bmaterial & | material, |
double | thick_step, | ||
double | thick_max, | ||
CTFparam & | ctf | ||
) |
Calculates the expected intensity vs thickness of vitreous ice.
&material | material with types. |
thick_step | specimen tickness step size (angstrom). |
thick_max | maximum specimen thickness (angstrom). |
&ctf | microscope parameters. |
Calculates the expected intensity given a thickness of vitreous ice.
&material | material with types. |
thickness | specimen thickness. |
ctf | microscope parameters. |
int write_potential_curves | ( | Bstring & | paramfile, |
Bstring & | outfile, | ||
Bstring & | selection, | ||
double | radius | ||
) |
Calculates and writes atomic scattering profiles to a file.
¶mfile | file with scattering coefficients. |
&outfile | file to write curves to. |
&selection | element selection. |
radius | maximum radius. |
The scattering coefficients are obtained from an input parameter file.
int write_scattering_curves | ( | Bstring & | paramfile, |
Bstring & | outfile, | ||
Bstring & | selection, | ||
double | resolution | ||
) |
Calculates and writes atomic scattering profiles to a file.
¶mfile | file with scattering coefficients. |
&outfile | file to write curves to. |
&selection | element selection. |
resolution | resolution limit. |
The scattering coefficients are obtained from an input parameter file.
auto string_is_empty |
|
extern |