lswrite#
- LoadStepOperations.lswrite(lsnum='', **kwargs)#
Writes load and load step option data to a file.
Mechanical APDL Command: LSWRITE
Warning
This command must be run using
non_interactive. Please visit Unsupported Interactive Commands for further information.- Parameters:
- lsnum
str Number to be assigned to the load step file name for identification purposes. Defaults to 1 + highest
LSNUMused in the current session. Issue lswrite,STAT to list the current value ofLSNUM. Issue lswrite,INIT to reset to 1. The load step file will be namedJobname.Sn, wherenis the specifiedLSNUMvalue (preceded by “0” for values 1-9). On systems with a 3-character limit on the file name extension, the “S” is dropped forLSNUM> 99.
- lsnum
Notes
Writes all load and load step option data for the selected model to a load step file for later use. lswrite does not capture changes made to real constants ( r ), material properties ( mp ), couplings ( cp ), or constraint equations ( ce ).
Solid model loads will not be saved if the model is not meshed. Solid model loads, if any, are transferred to the finite element model. Issue lsclear,FE to delete finite element loads.
One file is written for each load step. Use the lsread command to read a single load step file, and the lsdele command to delete load step files. Use the lssolve command to read and solve the load steps sequentially.
Solution control commands are typically not written to the file unless you specifically change a default solution setting.
lswrite does not support the following commands: dj, fj, gsbdata, gsgdata, estif, ekill, ealive, mpchg, and outres. These commands will not be written to the load step file.
lswrite cannot be used with the birth-death option.
This command is also valid in PREP7.