Erik Kostson
Ansys Employee

 

It can be done probably by a combination of *GET (*GET, vele, ELEM,i,VOLU), then by saving these values *DIM (vols(i)=vele) in a *DO loop over all elements, and then finally write the array (*cfopen,vw1.out – *VWRITE,’Vol. is: ‘, vols(1) – (A12, E13.5) – *cfclose) to a file:


Here is an example that shows some of this (except of *get, but the *get for the element volume is shown above).
https://www.padtinc.com/2012/05/18/writing-text-files-with-vwrite/
 
All the best
Erik