|
tfel
|
Generic crystallography handler. More...
#include </home/runner/work/tfel/tfel/include/NUMODIS/Crystallo.hxx>
Public Member Functions | |
| Crystallo (Crystallo &&) noexcept | |
| Crystallo (const Crystallo &) | |
| GSystem | InitGSystem (const IBurgers &iburgers, const IPlane &iplane) const |
| virtual Vect3 | direction (const IDirection &) const |
| virtual Vect3 | normal (const IPlane &) const |
| virtual Vect3 | burgers_vector (const IBurgers &) const |
| virtual double | Norm2 (const IBurgers &iburgers) const =0 |
| virtual GSystem | Symmetry (int k, const GSystem &gsystem) const =0 |
| virtual int | getNsymmetries () const =0 |
| virtual bool | SameGlideSystem (const IPlane &iplane0, const IBurgers &iburgers0, const IPlane &iplane1, const IBurgers &iburgers1) const |
| virtual void | GenerateEquivalentIBurgers (const IBurgers &iburgers, std::vector< IBurgers > &eqiburgers) const |
| virtual void | GenerateEquivalentPlanes (const IPlane &iplane, std::vector< IPlane > &planes) const |
| virtual void | GenerateEquivalentGSystems (const GSystem &gsystem, std::vector< GSystem > &allGSystems) const |
| virtual void | GenerateEquivalentIndices (const std::vector< int > &ind0, std::vector< std::vector< int > > &equivalent) const =0 |
| virtual GSystem | ComputeJunctionGSystem (const GSystem &gsystem1, const GSystem &gsystem2) const |
| const std::string & | PrintName () const |
| Returns the name of the Crystallo handler. | |
| virtual int | getNindices () const |
| Returns the number of indices used for discrete coordinates. | |
| bool | Collinear (const IDirection &idirection1, const IDirection &idirection2) const |
| Determine whether two directions are collinear or not. | |
| virtual void | CrossProduct (const IPlane &iplane0, const IPlane &iplane1, IDirection &idirection) const =0 |
| Compute the cross product of two plane normals. | |
| virtual void | CrossProduct (const IBurgers &iburgers, const IDirection &idirection, IPlane &iplane) const =0 |
| Compute the cross product of a Burgers and a direction. | |
| virtual int | ScalProduct (const IPlane &iplane, const IBurgers &iburgers) const =0 |
| Compute the scalar product of a IPlane * IBurgers. | |
| virtual int | ScalProduct (const IPlane &iplane, const IDirection &idirection) const =0 |
| Compute the scalar product of a IPlane * IDirection. | |
| virtual void | GenerateOrthogonalVector (const IPlane &u, IDirection &v) const =0 |
| Find a vector v orthogonal to u. | |
| virtual bool | SamePlaneFamily (const IPlane &iplane0, const IPlane &iplane1) const =0 |
| Return true if two planes are equivalent. | |
| virtual bool | SameBurgersFamily (const IBurgers &iburgers0, const IBurgers &iburgers1) const =0 |
| Return true if two Burgers are equivalent. | |
| const std::string | getName () const |
Protected Attributes | |
| std::string | _name |
| name of the class | |
| std::vector< Vect3 > | _alattice |
| basis used to compute atomic positions and directions | |
| std::vector< Vect3 > | _blattice |
| basis used to compute Burgers' vector | |
| std::vector< Vect3 > | _plattice |
| basis used to compute plane normal | |
Generic crystallography handler.
Crystallo handles all the crystallographic operations and data. Specific handlers dedicated to particular crystallographic structures may be found in the sub-directory "crystallo". They can be used polymorphically as Crystallo objects.
|
inlinenodiscard |
Determine whether two directions are collinear or not.
| idirection1 | first direction |
| idirection2 | second direction |
|
pure virtual |
Compute the cross product of a Burgers and a direction.
Compute iburgers x idirection
This method returns 0 if iburgers and idirection are collinear.
| iburgers | indices of the Burgers vector |
| idirection | indices of the direction |
| iplane | indices of the corresponding plane |
Implemented in numodis::Cubic, and numodis::HCP.
|
pure virtual |
Compute the cross product of two plane normals.
Compute iplane0 x iplane1
This method returns 0 if iplane0 and iplane1 are collinear.
| iplane0 | index of the first plane |
| iplane1 | index of the second plane |
| idirection | common direction |
Implemented in numodis::Cubic, and numodis::HCP.
|
pure virtual |
Find a vector v orthogonal to u.
| u | a vector (input) |
| v | a vector orthonal to u (output) |
Implemented in numodis::Cubic, and numodis::HCP.
|
inlinenodiscardvirtual |
Returns the number of indices used for discrete coordinates.
Reimplemented in numodis::HCP.
|
inlinenodiscard |
Returns the name of the Crystallo handler.
|
nodiscardpure virtual |
Return true if two Burgers are equivalent.
Example for cubic crystals: [110] is equivalent to [-101]
| iburgers0 | first Burgers vector |
| iburgers1 | second Burgers vector |
Implemented in numodis::Cubic, and numodis::HCP.
|
nodiscardpure virtual |
Return true if two planes are equivalent.
Example for cubic crystals: (110) is equivalent to (-101)
| iplane0 | first plane |
| iplane1 | second plane |
Implemented in numodis::Cubic, and numodis::HCP.
|
nodiscardpure virtual |
Compute the scalar product of a IPlane * IBurgers.
This method returns 0 if a Burgers vector is included in a plane
| iplane | indices of the glide plane |
| iburgers | indices of the Burgers vector |
Implemented in numodis::Cubic, and numodis::HCP.
|
nodiscardpure virtual |
Compute the scalar product of a IPlane * IDirection.
This method returns 0 if a discrete direction is included in a plane
| iplane | indices of the glide plane |
| idirection | indices of a discrete direction |
Implemented in numodis::Cubic, and numodis::HCP.