Symbolic Elasticity

class mechpy.core.symbolic.elasticity.SymbolicLinearElasticity

Bases: object

A class used to represent symbolic linear elasticity computations.

Methods

hookes_law(compliance_tensor, stress_tensor)

Computes the strain tensor from the compliance tensor and the stress tensor.

hookes_law_inverse(stiffness_tensor, strain_tensor)

Computes the stress tensor from the stiffness tensor and the strain tensor.

static hookes_law(compliance_tensor: SymbolicComplianceTensor, stress_tensor: SymbolicStressTensor) SymbolicStrainTensor

Computes the strain tensor from the compliance tensor and the stress tensor using Hooke’s Law.

Parameters:
  • compliance_tensor – SymbolicComplianceTensor The compliance tensor of the material.

  • stress_tensor – SymbolicStressTensor The stress tensor.

Returns:

SymbolicStrainTensor The computed strain tensor.

static hookes_law_inverse(stiffness_tensor: SymbolicStiffnessTensor, strain_tensor: SymbolicStrainTensor) SymbolicStressTensor

Computes the stress tensor from the stiffness tensor and the strain tensor using the inverse of Hooke’s Law.

Parameters:
  • stiffness_tensor – SymbolicStiffnessTensor The stiffness tensor of the material.

  • strain_tensor – SymbolicStrainTensor The strain tensor.

Returns:

SymbolicStressTensor The computed stress tensor.