starinquire#

MatrixOperations.starinquire(obj='', property_='', var1='', **kwargs)#

Retrieves properties of an existing APDL Math object.

Mechanical APDL Command: *INQUIRE

Parameters:
objstr

Name of the vector or matrix of interest.

property_str

Object property to get:

  • DIM1 - First dimension of a matrix, or size of a vector.

  • DIM2 - Second dimension of a matrix.

var1str

Name of the resulting parameter that contains the property value.

Notes

The following example demonstrates using starinquire to get the number of rows and columns of an existing matrix.

*SMAT,K,D,IMPORT,FULL,file.full,STIFF  ! Import the stiffness matrix from an existing FULL file
*INQUIRE,K,DIM1,NROW                   ! Get the first dimension of the stiffness matrix
*INQUIRE,K,DIM2,NCOL                   ! Get the second dimension of the stiffness matrix
/COM, K matrix size: %NROW% x %NCOL%