bid
Mechanical
- Feb 16, 2005
- 2
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
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