ansys.mapdl.core.Mapdl.lcdef#

Mapdl.lcdef(lcno='', lstep='', sbstep='', kimg='', **kwargs)#

Creates a load case from a set of results on a results file.

Mechanical APDL Command: LCDEF

Parameters:
lcnostr

Arbitrary pointer number (1-99) to be assigned to the load case specified by LSTEP, SBSTEP and by the FILE command. Defaults to 1 + previous value.

lstepstr

Load step number to be defined as the load case. Defaults to one.

sbstepstr

Substep number. Defaults to the last substep of the load step.

kimgint or str

Used only with results from complex analyses:

  • 0 - Use real part of complex solution

  • 1 - Use imaginary part.

Notes

Creates a load case by establishing a pointer to a set of results on a results file (written during the analysis solution phase). This pointer ( LCNO ) can then be used on the lcase or lcoper commands to read the load case data into the database.

Issue lcdef,ERASE to delete all load case pointers (and all load case files, if any). Issue lcdef, LCNO,ERASE to delete only the specific load case pointer LCNO (and its file, if any). With the ERASE options, all pointers are deleted; however only files with the default extension ( lcwrite ) are deleted. Issue lcdef,STAT for status of all selected load cases ( lcsel ), or lcdef,STAT,ALL for status of all load cases. The stat command may be used to list all load cases. See also lcfile to establish a pointer to a set of results on a load case file (written by lcwrite ). Harmonic element data read from a result file load case is stored at the zero-degree position.

For details on using load case combination, see Creating and Combining Load Cases