cratepy.tensor.matrixoperations

Strain/Stress tensors matricial storage and procedures.

This module contains fundamental procedures associated with the matricial storage of strain/stress tensorial quantities and related manipulations.

Among others, it includes functions that set the strain/stress components symmetric and nonsymmetric matricial storage order and that perform the conversion between tensorial and matricial forms of second- and fourth-order tensors following the Kelvin notation [1].

Functions

get_problem_type_parameters

Get parameters dependent on the problem type.

get_tensor_mf

Get tensor matricial form.

get_tensor_from_mf

Recover tensor from associated matricial form.

kelvin_factor

Get Kelvin notation coefficient of given strain/stress component.

get_condensed_matrix

Perform condensation of matrix given a set of rows and columns.

get_state_3Dmf_from_2Dmf

Build 3D counterpart of 2D strain/stress second-order tensor.

get_state_2Dmf_from_3Dmf

Build 2D counterpart of 3D strain/stress second- or fourth-order tensor.

matrix_root

Compute p-th root of general nonsymmetric square matrix.

Functions

get_condensed_matrix(matrix, rows, cols[, ...])

Perform condensation of matrix given a set of rows and columns.

get_problem_type_parameters(problem_type)

Get parameters dependent on the problem type.

get_state_2Dmf_from_3Dmf(problem_type, mf_3d)

Build 2D counterpart of 3D strain/stress second- or fourth-order tensor.

get_state_3Dmf_from_2Dmf(problem_type, ...)

Build 3D counterpart of 2D strain/stress second-order tensor.

get_tensor_from_mf(tensor_mf, n_dim, comp_order)

Recover tensor from associated matricial form.

get_tensor_mf(tensor, n_dim, comp_order)

Get tensor matricial form.

kelvin_factor(idx, comp_order)

Get Kelvin notation coefficient of given strain/stress component.

matrix_root(matrix, p)

Compute p-th root of general nonsymmetric square matrix.