Obtaining the max value
Obtaining the max value
(OP)
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
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





RE: Obtaining the max value
the best way is not the ETABLE but the ESOL command. See next code.
CODE
/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
RE: Obtaining the max value
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?
RE: Obtaining the max value
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
RE: Obtaining the max value
its a steel frame with columns and beam, and i need the max in the columns and in the beams
Regards,
Plamen
RE: Obtaining the max value
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
RE: Obtaining the max value
Regards,
Plamen