atomistics.workflows.elastic.elastic_moduli.ElasticProperties#
- class atomistics.workflows.elastic.elastic_moduli.ElasticProperties(elastic_matrix: ndarray)[source]#
Bases:
object- __init__(elastic_matrix: ndarray)[source]#
Initialize the ElasticProperties class.
- Parameters:
elastic_matrix (np.ndarray) – The elastic matrix.
Methods
AVR()Calculate the average value ratio (AVR) of the shear modulus.
__init__(elastic_matrix)Initialize the ElasticProperties class.
Calculate the Hill average of the bulk modulus.
Calculate the Reuss average of the bulk modulus.
Calculate the bulk modulus in Voigt notation.
Get the elastic matrix.
Calculate the eigenvalues and eigenvectors of the elastic matrix.
Calculate the inverse of the elastic matrix.
Calculate the Poisson's ratio using Hill's approximation.
Calculate the Poisson's ratio using the Reuss approximation.
Calculate the Poisson's ratio using the Voigt approximation.
Calculate the shear modulus using the Hill approximation.
Calculate the Reuss average of the shear modulus.
Calculate the shear modulus in Voigt notation.
to_dict([output_keys])Convert the ElasticProperties object to a dictionary.
Calculate the Young's modulus using the Hill approximation.
Calculate the Young's modulus using the Reuss approximation.
Calculate the Young's modulus using the Voigt approximation.
- AVR() float[source]#
Calculate the average value ratio (AVR) of the shear modulus.
- Returns:
The average value ratio (AVR) of the shear modulus.
- Return type:
float
- bulkmodul_hill() float[source]#
Calculate the Hill average of the bulk modulus.
- Returns:
The Hill average of the bulk modulus.
- Return type:
float
- bulkmodul_reuss() float[source]#
Calculate the Reuss average of the bulk modulus.
- Returns:
The Reuss average of the bulk modulus.
- Return type:
float
- bulkmodul_voigt() float[source]#
Calculate the bulk modulus in Voigt notation.
- Returns:
The bulk modulus in Voigt notation.
- Return type:
float
- elastic_matrix() ndarray[source]#
Get the elastic matrix.
- Returns:
The elastic matrix.
- Return type:
np.ndarray
- elastic_matrix_eigval() tuple[ndarray, ndarray][source]#
Calculate the eigenvalues and eigenvectors of the elastic matrix.
- Returns:
The eigenvalues and eigenvectors of the elastic matrix.
- Return type:
Tuple[np.ndarray, np.ndarray]
- elastic_matrix_inverse() ndarray[source]#
Calculate the inverse of the elastic matrix.
- Returns:
The inverse of the elastic matrix.
- Return type:
np.ndarray
- poissonsratio_hill() float[source]#
Calculate the Poisson’s ratio using Hill’s approximation.
- Returns:
The Poisson’s ratio calculated using Hill’s approximation.
- Return type:
float
- poissonsratio_reuss() float[source]#
Calculate the Poisson’s ratio using the Reuss approximation.
- Returns:
The Poisson’s ratio calculated using the Reuss approximation.
- Return type:
float
- poissonsratio_voigt() float[source]#
Calculate the Poisson’s ratio using the Voigt approximation.
- Returns:
The Poisson’s ratio calculated using the Voigt approximation.
- Return type:
float
- shearmodul_hill() float[source]#
Calculate the shear modulus using the Hill approximation.
- Returns:
The shear modulus calculated using the Hill approximation.
- Return type:
float
- shearmodul_reuss() float[source]#
Calculate the Reuss average of the shear modulus.
- Returns:
The Reuss average of the shear modulus.
- Return type:
float
- shearmodul_voigt() float[source]#
Calculate the shear modulus in Voigt notation.
- Returns:
The shear modulus in Voigt notation.
- Return type:
float
- to_dict(output_keys: tuple = ('elastic_matrix', 'elastic_matrix_inverse', 'bulkmodul_voigt', 'bulkmodul_reuss', 'bulkmodul_hill', 'shearmodul_voigt', 'shearmodul_reuss', 'shearmodul_hill', 'youngsmodul_voigt', 'youngsmodul_reuss', 'youngsmodul_hill', 'poissonsratio_voigt', 'poissonsratio_reuss', 'poissonsratio_hill', 'AVR', 'elastic_matrix_eigval')) dict[source]#
Convert the ElasticProperties object to a dictionary.
- Parameters:
output_keys (tuple) – The keys to include in the output dictionary.
- Returns:
The ElasticProperties object as a dictionary.
- Return type:
dict
- youngsmodul_hill() float[source]#
Calculate the Young’s modulus using the Hill approximation.
- Returns:
The calculated Young’s modulus.
- Return type:
float