read#

ansXpl.read(recordname, asarray=False)[source]#

Read a record and return either an APDL math matrix or an APDL math vector.

Returns:
ansys.mapdl.AnsMath or ansys.mapdl.AnsVec

A handle to the APDLMath object.

asarraybool, optional

Return a numpy.ndarray rather than a AnsMath. Default False.

Examples

>>> vec = xpl.read('MASS')
>>> vec.asarray()
array([ 4,  7, 10, 13, 16, 19, 22, 25, 28, 31, 34, 37, 40, 43,
       46, 49, 52, 55, 58,  1], dtype=int32)
>>> vec = xpl.read('MASS', asarray=True)
array([ 4,  7, 10, 13, 16, 19, 22, 25, 28, 31, 34, 37, 40, 43,
       46, 49, 52, 55, 58,  1], dtype=int32)