Mapdl.ewrite(fname='', ext='', kappnd='', format_='', **kwargs)#

Writes elements to a file.


Writes the selected elements to a file. The write operation is not necessary in a standard ANSYS run but is provided as convenience to users wanting a coded element file. If issuing ewrite() from ANSYS to be used in ANSYS, you must also issue NWRITE to store nodal information for later use. Only elements having all of their nodes defined (and selected) are written. Data are written in a coded format. The data description of each record is: I, J, K, L, M, N, O, P, MAT, TYPE, REAL, SECNUM, ESYS, IEL, where MAT, TYPE, REAL, and ESYS are attribute numbers, SECNUM is the beam section number, and IEL is the element number.

The format is (14I6) if Format is set to SHORT and (14I8) if the Format is set to LONG, with one element description per record for elements having eight nodes of less. For elements having more than eight nodes, nodes nine and above are written on a second record with the same format.


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.


Filename extension (eight-character maximum).


Append key:

0 - Rewind file before the write operation.

1 - Append data to the end of the existing file.


Format key:

SHORT - I6 format (the default).

LONG - I8 format.


>>> mapdl.ewrite('etable.txt', format_='LONG')
Return type