calculate_elastic_tensor

torch_sim.elastic.calculate_elastic_tensor(model, *, state, bravais_type=BravaisType.TRICLINIC, max_strain_normal=0.01, max_strain_shear=0.06, n_deform=5)[source]

Calculate the elastic tensor of a structure.

Parameters:
  • model (Module) – Model to use for stress calculation

  • state (SimState) – SimState containing the reference structure

  • bravais_type (BravaisType) – Bravais type of the structure

  • max_strain_normal (float) – Maximum normal strain

  • max_strain_shear (float) – Maximum shear strain

  • n_deform (int) – Number of deformations

Returns:

Elastic tensor

Return type:

Tensor