cwd#

Mapdl.cwd(dirpath='', **kwargs)[source]#

Changes the current working directory.

dirpath must not contain any singular quotations/apostrophes. These are not supported in APDL.

APDL Command: /CWD

Parameters:
dirpath

The full path name of the new working directory.

Notes

After issuing the /CWD command, all new files opened with no default directory specified (via the FILE, /COPY, or RESUME commands, for example) default to the new dirpath directory.

Examples

Change MAPDL’s working directory to "C:/temp". This assumes that MAPDL running on Windows.

>>> mapdl.cwd("C:/temp")

MAPDL on Linux example:

>>> mapdl.cwd("/tmp/")