ansXpl#
- class ansys.mapdl.core.xpl.ansXpl(mapdl)#
ANSYS database explorer.
Examples
>>> from ansys.mapdl.core import launch_mapdl >>> mapdl = launch_mapdl() >>> xpl = mapdl.xpl
Open a mode file and extract a vector.
>>> xpl.open('file.mode') >>> 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)
Methods
Close the MAPDL file after opening.
ansXpl.copy
(newfile[, option])Copy the current opened as a new file.
ansXpl.extract
(recordname[, sets, asarray])Import a Matrix/Vector from a MAPDL result file.
ansXpl.goto
(path)Go directly to a new location in the file.
XPL help message.
ansXpl.info
(recname[, option])Gives details on a specific record, or all records (using
"*"
)Return a JSON representation of the tree or records.
ansXpl.list
([nlev])List the records at the current level.
ansXpl.open
(filename[, option])Open an MAPDL file to explore.
ansXpl.print
(recname)Print values of a given records, or all records (using
"*"
).ansXpl.read
(recordname[, asarray])Read a record and return either an APDL math matrix or an APDL math vector.
Save the current file, ignoring the marked records.
ansXpl.step
(where)Go down in the tree of records
ansXpl.up
([nlev])Go up in the tree.
Returns the current location in the MAPDL file.
ansXpl.write
(recordname, vecname)Write a given record back to an MAPDL file.