BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Crystal Class Reference

A crystal structure, defined by a Bravais lattice, a basis, and a position variance. More...

+ Inheritance diagram for Crystal:

Public Member Functions

 Crystal (const IParticle &basis, const Lattice3D &lattice, double position_variance=0)
 
void accept (INodeVisitor *visitor) const final
 
Crystalclone () const final
 
IFormFactor * createTotalFormFactor (const IFormFactor &meso_crystal_form_factor, const IRotation *p_rotation, const kvector_t &translation) const
 
std::vector< const INode * > getChildren () const final
 
std::vector< HomogeneousRegion > homogeneousRegions () const
 
Lattice3D transformedLattice (const IRotation *p_rotation=nullptr) const
 

Detailed Description

A crystal structure, defined by a Bravais lattice, a basis, and a position variance.

The basis is either a Particle or a ParticleComposition.

Computations are delegated to class FormFactorCrystal.

Used in MesoCrystal, where it is given an outer shape.