×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Obtaining the max value

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

RE: Obtaining the max value

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

RE: Obtaining the max value

(OP)
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?

RE: Obtaining the max value

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

RE: Obtaining the max value

(OP)
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

RE: Obtaining the max value

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

RE: Obtaining the max value

(OP)
Thank you very much, you helped me a lot

Regards,
Plamen

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources