ansys.materials.manager.util.common#

Provides the common module.

Module Contents#

Functions#

fill_upper_triangular_matrix(→ numpy.ndarray)

Convert a vector of coefficients into a full matrix.

Attributes#

MP_MATERIAL_HEADER_REGEX

TB_MATERIAL_HEADER_REGEX

FLOAT_VALUE_REGEX

INTEGER_VALUE_REGEX

MATRIX_LABEL_REGEX

model_type

ansys.materials.manager.util.common.MP_MATERIAL_HEADER_REGEX#
ansys.materials.manager.util.common.TB_MATERIAL_HEADER_REGEX#
ansys.materials.manager.util.common.FLOAT_VALUE_REGEX#
ansys.materials.manager.util.common.INTEGER_VALUE_REGEX#
ansys.materials.manager.util.common.MATRIX_LABEL_REGEX#
ansys.materials.manager.util.common.model_type#
ansys.materials.manager.util.common.fill_upper_triangular_matrix(vector: List[float]) numpy.ndarray#

Convert a vector of coefficients into a full matrix.

Generates a symmetric, square matrix.

Parameters:
vectorList[float]

Coefficients of the lower half-matrix. E.g. D11, D12, D22, etc.

Returns:
np.ndarray

Square symmetric matrix.

Raises:
ValueError

If the length of the input vector is not a triangular number.