General Mechanical

General Mechanical

Volume of each element in a mesh

    • alexandre.casadei


      I'm having problems exporting information about the volume of each element of a mesh generated in Ansys mechanical.
      Is there any way I can access and/or export this data?

    • 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).
      All the best


    • Mike Rife
      Ansys Employee

      alexandre.casadei Look up *vget in the help - it will be faster to use than *get.  

Viewing 2 reply threads
  • You must be logged in to reply to this topic.