mpread#
- Mapdl.mpread(fname='', ext='', lib='', **kwargs)#
APDL Command: MPREAD
Reads a file containing material properties.
- Parameters:
- fname
File name and directory path (248 characters maximum, including directory). If you do not specify the
LIB
option, the default directory is the current working directory. If you specify theLIB
option, the default is the following search path: the current working directory, the user’s home directory,MPLIB_DIR
(as specified by the/MPLIB,READ,PATH
command) and/ansys_dir/matlib
(as defined by installation). If you use the default for your directory, you can use all 248 characters for the file name.- ext
Filename extension (eight-character maximum).
- lib
Reads material library files previously written with the MPWRITE command. (See the description of the
LIB
option for theMPWRITE
command.) The only allowed value forLIB
isLIB
.
Notes
Material properties written to a file without the
LIB
option do not support nonlinear properties. Also, properties written to a file without theLIB
option are restored in the same material number as originally defined. To avoid errors, useMPREAD
with theLIB
option only when reading files written using MPWRITE with theLIB
option.If you omit the
LIB
option forMPREAD
, this command supports only linear properties.Material numbers are hardcoded. If you write a material file without specifying the
LIB
option, then read that file in using theMPREAD
command with theLIB
option, the ANSYS program will not write the file to a new material number. Instead, it will write the file to the “old” material number (the number specified on the MPWRITE command that created the file.)This command is also valid in SOLUTION.