

Now you have a place to write to, next you need to use *VWRITE to write. We don’t recommend this because other stuff might get written as well to the file. So if you use /output you can redirect to a file instead of the *.out or screen. This is the preferred method.īy default *VWRITE output to standard output – the jobname.out (batch) file or the command window (interactive).

This opens the specified file for writing with *cfwrite and *vwrite commands. A Lot Moreįirst off you need to open up a file to write to. Looks pretty simple right, just *vwrite and list what you want printed. Something that every ANSYS user should have in their back pocket. Originally written to write out data in arrays, it is a very flexible and powerful command that can be used to write pretty much any type of formatted output. The way most people do that is with *VWRITE. Sometimes you are running in MAPDL, sometimes you are using ANSYS Mechanical but you still need to write stuff out using APDL with a code snippet. A very common need in the world of ANSYS FEA simulation is to write text to a text file from within Mechanical APDL.
