SimulationGenerator#

class diffsims.generators.simulation_generator.SimulationGenerator(accelerating_voltage: float = 200, scattering_params: str = 'lobato', precession_angle: float = 0, shape_factor_model: str = 'lorentzian', approximate_precession: bool = True, minimum_intensity: float = 1e-20, **kwargs)[source]#

Bases: object

A class for generating kinematic diffraction simulations.

Attributes

Methods

SimulationGenerator.calculate_diffraction1d(phase)

Calculates the 1-D profile of the diffraction pattern for one phases.

SimulationGenerator.calculate_diffraction2d(phase)

Calculates the diffraction pattern for one or more phases given a list of rotations for each phase.

SimulationGenerator.get_intersecting_reflections(...)

Calculates the reciprocal lattice vectors that intersect the Ewald sphere.

Examples using SimulationGenerator#

0.5.x –> 0.6.x Migration Guide

0.5.x --> 0.6.x Migration Guide

Simple Diffraction Pattern Simulation Examples

Simple Diffraction Pattern Simulation Examples