ansys.mapdl.core.Mapdl.nwrite#
- Mapdl.nwrite(fname='', ext='', kappnd='', **kwargs)#
Writes nodes to a file.
Mechanical APDL Command: NWRITE
- Parameters:
- fname
str File name and directory path (248 characters maximum, including the characters needed for the directory path). An unspecified directory path defaults to the working directory; in this case, you can use all 248 characters for the file name. The file name defaults to
Jobname.- ext
str Filename extension (eight-character maximum). The extension defaults to NODE if
Fnameis blank.- kappnd
intorstr Append key:
0- Rewind file before the write operation.1- Append data to the end of the existing file.
- fname
Notes
Writes selected nodes ( nsel ]) to a file. The write operation is not necessary in a standard Mechanical APDL run but is provided as a convenience to those who want coded node file.
Data are written in a coded format. The format used is (I9, 6G21.13E3) to write out
NODE,X,Y,Z,THXY,THYZ,THZX. If the last number is zero (THZX= 0), or the last set of numbers are zero, they are not written but are left blank. Therefore, use a formatted read to process this file.Coordinate values are in the global Cartesian system.