×
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

sweep optimization

sweep optimization

sweep optimization

(OP)
Hi all,

I am trying to do a sweep of a particular parameter using the optype,sweep feature in the ANSYS optimization module. But I am having a problem in which I the Design variable I am doing a sweep - value is not changing.

Can anyone point me to an example where i can have a look at the code and learn. search the manual and net. everybody says its simple. but have tried for over an hour and it ain't working.

my opt macro file is as follows:

/com run analysis for optimization makes use of optcb macro
/com Entering optimizarion ..............
!
!run macro file once
!
FINISH
/CLEAR,START
optcb_v1_2
/OPT
OPANL,C:\Research\Ansys\Optimization\optcb_v1_2,mac
! ASSIGN OPT LOOP FILE  
!OPVAR,Ky,OBJ,,,.01               ! OBJECTIVE FUNCTION
OPVAR,R,DV,55,80,2                ! DESIGN VARIABLES
!
OPSAVE,INITIAL,OPT               ! SAVE INITIAL DESIGN
!OPLOOP,,,ALL
OPDATA,C:\Research\Ansys\Optimization\opt_v1.dat
OPTYPE,SWEEP
OPSWEEP,LAST,10
OPEXE                            ! PERFORM SWEEP
!
PARSAV,All,C:\Research\Ansys\Optimization\SET1
OPLIST,ALL,,1                    ! LIST DESIGN SETS
/AXLAB,Y,Radius                  ! DV ALONG Y-AXIS
PLVAROPT,R                       ! PLOT R sweep verify
/AXLAB,Y,Ky                      ! OBJECTIVE FUNCTION ALONG Y-AXIS
PLVAROPT,R                       ! PLOT OBJ sweep

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