TAGGED: 3-d-model, ansys-mechanical-apdl, pipe-analyses, strain
-
-
June 21, 2022 at 4:53 am
askari
SubscriberDear all,
Â
Following my question in the previous forum in this link, we are modeling a pipeline under dynamic loading on a supercomputer, and need to extract the element number with maximum absolute total mechanical strain. For now, we are only getting the value of maximum and minimum strain using contour display in each time step via *GET, par, PLNSOL, 0, MAX and *GET, par, PLNSOL, 0, MIN methods.
Below, is our code for post-processing:
*** Code block begins***
! Select the pipe elements (soil springs are not selected)
ESEL,S,TYPE,,0.9,1.1
! Produce an element display
EPLOTÂ
! Display elements with shapes determined from the real constants etc.
/ESHAPE,1 Â
! Activates a coordinate system for printout or display of element and nodal results
RSYS,SOLUÂ
! Specifies the device and other parameters for graphics displays
/SHOW,WIN32C
! Read the first data set (subsetp and time are ignored).
SET,FIRST
! Control the graphics options on subsequent displays
/PLOPTS,INFO,3 ! Legend on
/CONTOUR,ALL,18 ! Specifies the uniform contour values on the stress displays
/PNUM,MAT,1 ! Controls entity numbering
/NUMBER,1 Â ! Specifies whether numbers are used for display
/REPLOT,RESIZEÂ
! Read the last data set (substep and time are ignored)
SET,LAST
*get,totalStep,active,,set,LSTP
*dim,ResultData,array,totalStep,3
/graph,power
/show,figure_temp.png
*DO,i,1,totalStep,1
SET,i,
plns,EPTO,X
*get,ResultData(i,1),active,,set,time
*get,ResultData(i,2),plnsol,0,max
*get,ResultData(i,3),plnsol,0,min
*enddo
Finish
*MWRITE,ResultData,Output,txt,,jik
(F14.9, F14.9, F14.9)
/show,close
/dele,figure_temp,png*** Code block ends***
Â
We appreciate your help and support in advance,
-
Viewing 0 reply threads
- The topic ‘Extract element label/number with max/min strain – ANSYS Mechanical APDL’ is closed to new replies.
Ansys Innovation Space
Trending discussions
Top Contributors
-
3597
-
1243
-
1092
-
1068
-
953
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.