Commands Output

Various PyMAPDL classes and commands which helps in data post-processing.

All these classes are subclasses of str class, hence they inherit all the methods and attributes of string.

class ansys.mapdl.core.commands.CommandListingOutput(content, cmd=None)

Allow the conversion of command output to native Python types.

Custom class for handling the commands whose output is sensible to be converted to a list of lists, a Numpy array or a Pandas DataFrame.

CommandListingOutput.to_list()

Export the command output a list or list of lists.

CommandListingOutput.to_array()

Export the command output as a numpy array.

CommandListingOutput.to_dataframe([data, ...])

Export the command output as a Pandas DataFrame.

class ansys.mapdl.core.commands.BoundaryConditionsListingOutput(content, cmd=None)

Allow the conversion of command output to native Python types.

Custom class for handling the boundary condition listing commands whose output is sensible to be converted to a list of lists, or a Pandas DataFrame.

BoundaryConditionsListingOutput.to_list()

Export the command output a list or list of lists.

BoundaryConditionsListingOutput.to_dataframe()

Convert the command output to a Pandas Dataframe.