ansys.mapdl.core.Mapdl.mplib#
- Mapdl.mplib(r_w_opt='', path='', **kwargs)#
Sets the default material library read and write paths.
Mechanical APDL Command: /MPLIB
- Parameters:
Notes
The mplib command sets two path strings used in conjunction with the material library feature and the mpread and mpwrite commands.
For mpread, when you use the
LIBoption and no directory path is given in the file name, the command searches for the file in these locations: the current working directory, the user’s home directory, the user-specified material library directory (as defined by the mplib,READ,PATHcommand), and/ansys_dir/matlib.For mpwrite, when you use the
LIBoption and the directory portion of the specification for the material library file is blank, the command writes the material library file to the directory specified by the mplib,WRITE,PATHcommand (if that path has been set). If the path has not been set, the default is to write the file to the current working directory.The Material Library files supplied with the distribution media are meant for demonstration purposes only. These files are not intended for use in customer applications.