ansys.materials.manager.util.common
#
Provides the common
module.
Module Contents#
Functions#
|
Convert a vector of coefficients into a full matrix. |
Attributes#
- 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:
- vector
List
[float
] Coefficients of the lower half-matrix. E.g. D11, D12, D22, etc.
- vector
- Returns:
np.ndarray
Square symmetric matrix.
- Raises:
ValueError
If the length of the input vector is not a triangular number.