non_interactive#

property Mapdl.non_interactive#

Non-interactive context manager.

Allow to execute code without user interaction or waiting between PyMAPDL responses. It can also be used to execute some commands which are not supported in interactive mode. For a complete list of commands visit Unsupported “interactive” commands.

View the last response with Mapdl.last_response method.

Notes

All the commands executed inside this context manager are not executed until the context manager exits which then execute them all at once in the MAPDL instance.

This command uses Mapdl.input() method.

Examples

Use the non-interactive context manager for the VWRITE ( Mapdl.vwrite()) command.

>>> with mapdl.non_interactive:
...    mapdl.run("*VWRITE,LABEL(1),VALUE(1,1),VALUE(1,2),VALUE(1,3)")
...    mapdl.run("(1X,A8,'   ',F10.1,'  ',F10.1,'   ',1F5.3)")
>>> mapdl.last_response