Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Export min, max temperature and volume of all elements in a body

Status
Not open for further replies.

safranyikf

Mechanical
Aug 8, 2022
1
0
0
HU
Hi All,

I have done a transient thermal analysis and would like to export maximum, minimum temperature and volume of each element within a specific body in each time step.
I presume it's possible to make with an APDL command. Unfortunately I'm not experienced in command writing. I was able only to do this, but it gave me only the average temperature of each element in a single time step.
Is any suggestion?

Thank you, Feri

ALLSEL
*GET,maximumElementNumber,ELEM,,NUM,MAX
*DIM,volumes,ARRAY,maximumElementNumber
*DIM,thermalGradient,ARRAY,maximumElementNumber
*DIM,mask,ARRAY,maximumElementNumber
ESEL,s,MAT,,2,2,!select the named selection
*VGET,volumes(1),ELEM,1,GEOM
*VGET,thermalGradient(1),NODE,N,TEMP
*VGET,mask(1),ELEM,1,ESEL
*VMASK,mask(1)
*VSCFUN,totalVolume,SUM,volumes(1)
*CFOPEN,SIEres2,txt
*VWRITE,volumes(1),mask(1),thermalGradient(1)
(F18.8,F18.8,F18.8)
*CFCLOS

 
Status
Not open for further replies.
Back
Top