symcrys
    Preparing search index...

    Function rotateTensor

    • The components of tensor (length 3^rank, flat index) in a frame rotated by the orthogonal matrix rotation: t′{i…} = f·Σ R{ia}…R_{…}·t_{a…}, with f = det(R) for an axial tensor and 1 for a polar one. To express a tensor in the frame of a surface, pass the matrix whose rows are the new axes in the old frame. Time parity plays no part. The kind of tensor is given by its specification or by the name of a property in TENSOR_PROPERTIES.

      Parameters

      • tensor: readonly number[]
      • rotation: Mat3
      • specOrName:
            | TensorSpec
            | "pyroelectric"
            | "ferroaxial"
            | "piezoelectric"
            | "gyrotropic"
            | "ferromagnetic"
            | "magnetoelectric"
            | "piezomagnetic"

      Returns number[]