Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Obtaining the max value 1

Status
Not open for further replies.

balu25

Civil/Environmental
Jun 19, 2007
30
Hello,

I am trying to obtain the max value of FX for example for an element BEAM188, from solution with 2000 steps...
I am using ETABLE. Can somebody tell me how to find the max value, and print it, using a macro?

Thank you all
 
Replies continue below

Recommended for you

Hello,

the best way is not the ETABLE but the ESOL command. See next code.

Code:
! Enter Time post processor
/post26
! Read Axial Force FX at node I for Element elno
esol,2,elno,,smisc,1
! Get the maximum Axial Force
*dim,elemfx,array,2000 ! Array definition no more necessary since Ansys v11
vget,elemfx,2
*vscfun,fxmax,max,elemfx

Regards
Alex
 
Thanks a lot mihaiupb,
that really helps!
The problem is it works only if I write the element number. Do you know how can i make it for more than one element?
 
Can you explain in more detail what you want do do?

Do you want to:

1) get the ONE maximum FX of all elements over all steps ,
2) get N maximum values for EACH element over all steps,
3) get N maximum values for a GROUP of elements over all steps

?

Regards,
Alex
 
4) get the One maximum FX of all elements over all steps...
its a steel frame with columns and beam, and i need the max in the columns and in the beams

Regards,
Plamen
 
Then you will have to do a loop over all elements:

Code:
/post26
*dim,elemfx,array,2000
fmaxmax=0

esel,s,enam,,188
elno=elnext(0)
*dowhile,elno
 esol,2,elno,,smisc,1
 vget,elemfx,2
 *vabs,,1
 *vscfun,fxmax,max,elemfx
 fmaxmax=(fmax>fmaxmax) ! the maximum of FX over all elements
 elno=elnext(elno)
*enddo
 
Thank you very much, you helped me a lot

Regards,
Plamen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor