ANSYS   MISC
***** ADDITIONAL ANSYS ROUTINES *****     
      
 NAME         ROUTINE DESCRIPTION   
/OPT     OPTIMIZATION CONTROL ROUTINE     
*END  
ANSYS   MISC    OPT     
   *****  OPT IS AN OPTIONAL MODULE FOR USE WITH ANSYS-PC/LINEAR *****  
  THIS ANSYS ROUTINE IS A CONTROL ROUTINE WHICH ALLOWS THE USER TO
CYCLE THROUGH A SERIES OF ANSYS ANALYSES, VARYING THE DESIGN PARAMETERS 
AND TABULATING THE RESULTS.  THE USER CAN OBTAIN DESIGN SENSITIVITY     
COEFFICIENTS AND USE THEM FOR DESIGN MODIFICATION ASSISTANCE.     
  THIS ROUTINE CAN ALSO DO A COMPLETE DESIGN OPTIMIZATION BASED ON
USER SUPPLIED DESIGN VARIABLES, STATE VARIABLES, AN OBJECTIVE FUNCTION  
AND APPROPRIATE CONSTRAINTS AND TOLERANCES.     
$END  
ANSYS   MISC    OPT     INFO  
THIS IS THE ANSYS OPTIMIZATION PROGRAM FOR USE WITH ANSYS-PC/LINEAR     
      
ENTER DOCU,ALL FOR SUMMARY OF COMMANDS    
$END  
ANSYS   MISC    OPT     INFO    ALL 
OPVAR,NAME,TYPE,MIN,MAX -DEFINE VARIABLE NAME AS DV,CV,SV OR OBJ AND    
                           DEFINE LIMITS  
OPLIST,SET1,SET2        -DISPLAYS VALUES OF VARIABLES (DEFAULTS TO
                          CURRENT SET)    
RUN,NUMBER              -RUN ANALYSIS NUMBER AND RETURN TO OPT    
OPRUN,NOPT              -RUN A DESIGN OPTIMIZATION WITH NOPT MAX ITER.  
OPADD,NRES,NUM1,NUM2,C1,C2  -FORM A LINEAR COMBINATION OF TWO ANALYSES. 
FINISH                  -END OF OPTIMIZATION ANALYSIS 
$END  
ANSYS   MISC    OPT     INFO    OPVAR     
OPVAR,NAME,TYPE,MIN,MAX,TOLERANCE   
      
 THESE COMMANDS MUST BE GIVEN TO CLASSIFY THE PARAMETERS AND TO DEFINE  
  THE ALLOWABLE RANGE AND CONVERGENCE TOLERANCE.
      
 NAME       - THE VARIABLE NAME AS DEFINED ON A *SET OR *GET
 TYPE       - NONE (DEFAULT) VARIABLES NOT SPECIFIED ARE OF THIS TYPE   
            - DV   A DESIGN VARIABLE
            - SV   STATE VARIABLE    A RESULT FROM THE ANALYSIS (*GET)  
            - OBJ  THE OBJECTIVE FUNCTION    THE OBJECTIVE FUNCTION MUST
                    BE A RESULT FROM THE ANALYSIS. IT WILL BE MINIMIZED.
                    ONLY ONE OBJECTIVE FUNCTION IS ALLOWED. 
 MIN        - MINIMUM VALUE FOR THIS VARIABLE (SIDE CONSTRAINT)   
 MAX        - MAXIMUM VALUE FOR THIS VARIABLE (SIDE CONSTRAINT)   
               (IF MIN AND MAX ARE BOTH 0.0, THERE IS NO CONSTRAINT)    
TOLERANCE   - THE ACCEPTABLE CHANGE OF THIS PARAMETER AT CONVERGENCE    
               APPLICABLE ONLY TO DV'S.  DEFAULTS TO 0.005*(MAX-MIN).   
$END  
ANSYS   MISC    OPT     INFO    OPLIST    
OPLIST,SET1,SET2 - DISPLAYS THE VALUES OF THE VARIABLES.  NOTE, A 
   STATUS COMMAND MAY ALSO BE ISSUED TO DISPLAY VARIOUS     
   OPTIMIZATION DATA.   
      
  SET1 - DISPLAY VALUES OF ALL ANALYSIS VARIABLES FROM SET1 (DEFAULTS   
  SET2    TO THE CURRENT SET) TO SET2 (DEFAULTS TO SET1).  IF SET1 =    
          ALL  DISPLAY FOR ALL SETS.   NOTE, WITH OPRUN LOOPING, THE    
          POSITION OF SETS MAY BE CHANGED FROM THE ORDER IN WHICH THEY  
          WERE GENERATED.     
$END  
ANSYS   MISC    OPT     INFO    OPRUN     
OPRUN, NOPT, POLD,PRAND,NRAND 
      
  RUN AN OPTIMIZATION ANALYSIS ON THE STRUCTURE WITH A MAXIMUM OF NOPT  
LOOPS.  THE OPVAR COMMANDS MUST PRECEED   
THE OPRUN COMMAND.
  THE OPTIMIZATION PROCESS BEGINS WITH A RANDOM SAMPLE (INCLUDING THE   
INITIAL DESIGN AND 3 (DEFAULT) MORE FROM THE ALLOWABLE DESIGN SPACE.    
IT THEN PROCEEDS FROM THE BEST OF THIS SAMPLE IN A DIRECTION HAVING     
THE HIGHEST CORRELATION WITH THE OBJECTIVE FUNCTION.  
  OPTIMIZATION IS AN ADVANCED ANALYSIS TECHNIQUE AND SHOULD BE APPROACHE
WITH CONSIDERABLE CARE.  EACH STEP IS A COMPLETE RE-ANALYSIS OF THE     
SYSTEM, SO COMPUTER TIMES CAN BE EXPECTED TO BE LONG. 
 POLD - THE FRACTION OF BEST PREVIOUS SOLUTION USED (0.25 DEFAULT)
 PRAND- THE FRACTION OF RANDOM VARIATION INCLUDED   (0.10 DEFAULT)
 NRAND- THE NUMBER OF INITIAL RANDOM SAMPLES (4 DEFAULT, INCLUDING INITI
$END  
ANSYS   MISC    OPT     INFO    OPADD     
OPADD, NRES, NUM1,NUM2, C1,C2 
      
  THIS COMMAND DEFINES A RESULT SET OF PARAMETERS  NUM1  AS THE LINEAR  
COMBINATION OF THE SETS  NUM1  AND  NUM2.  THE EQUATION USED IS:  
      
      NRES = C1*(NUM1) + C2*(NUM2)  
      
C1  AND  C2  DEFAULT TO 1.0 IF NOT DEFINED.  NUM1 OR NUM2 (BUT NOT BOTH)
MAY BE 0.0   NRES MAY NOT BE 0   THE MAXIMUM SET ALLOWED IS 50.   
  THIS COMMAND MAY BE USED TO TAKE THE DIFFERENCE OF TWO SLIGHTLY 
DIFFERENT DESIGNS TO TABULATE THE DESIGN SENSITIVITIES.     
$END  
ANSYS   /   
ENTER  HELP,PRINT  FOR INFO ON /TITLE, /COM, /NOPR, /GOPR, /NOLIST,     
                               /GOLIST    
ENTER  HELP,PLOT   FOR INFO ON /PMODE, /SHOW, /VIEW, /TYPE, ETC.  
$END  
ANSYS   PRINT     
 ***** DISPLAY (PRINT) OPTIONS *****
/TITLE, TEXT....   DEFINE NEW TITLE 
/COM, TEXT...      DEFINE COMMENT LINE (C*** MAY BE USED FOR /COM)
/NOPR    TURN OFF DISPLAY (PRINT)   
/GOPR    TURN DISPLAY (PRINT) ON    
$END  
ANSYS   *   
 *SET,PAR,V1,VINC  TO SET PARAMETER  PAR  TO VALUE V1 
  PAR IS ONE TO FOUR CHARACTERS     
  ALL OCCURANCES OF PAR WILL BE REPLACED WITH VALUE V1
   -PAR, PAR1$CONST, PAR1$PAR2, -PAR1$CONST, -PAR1$PAR2     
    WHERE  $ CAN BE  +,-,*,/,**  ARE ALLOWED PARAMETER FORMS
  MAXIMUM PARAMETERS IS 120    V1,VINC BLANK REMOVES PARAMETER    
  V1,VINC MAY THEMSELVES BE PARAMETERS    
 *GET,PAR,LAB,NLAB  SETS PARAMETER  PAR  TO THE FOLLOWING POST1 RESULT  
  ITEMS:  TIME,FREQ,LOAD,ITER,MAX,MIN,LDI,CRR,PLR,TI,TOV,SSUM,FSUM
 *STAT DISPLAYS CURRENT PARAMETERS  
 *UFILE,NAME,EXT   DEFINES USER FILE FOR *USE COMMAND 
 *USE,NAME,ARG1,ARG2,---ARG9   READ FROM USER FILE  NAME  AND SUBST.    
                    ARGUMENTS 
 RPNNNN,VINC1,VINC2,----(TO VINC12) 
  (REPEATS PREV. COMMAND NN TIMES (TOTAL) WITH VALUES INCR. 
$END  
ANSYS   HELP
  THE HELP SYSTEM ALLOWS DOCUMENTATION ON ANY COMMAND FROM ANYWHERE     
WITHIN THE ANSYS PROGRAM.  THE COMMAND MUST BE IDENTIFIED BY A PATH-    
NAME WHERE THE LAST ITEM OF THE NAME IS THE TARGET ITEM.    
THE PATHNAME CONSISTS OF THE PHASE OF THE PROGRAM, THE ROUTINE IN THAT  
PHASE, THE MODULE IN THAT ROUTINE, AND THE COMMAND IN THAT MODULE.
THE PATHNAME MAY END AT ANY ITEM.  THE GENERAL FORM IS -    
      
    HELP,PHASE,ROUTINE,MODULE,COMMAND     
      
FOR EXAMPLE, DOCUMENTATION ON THE "NGEN" COMMAND IN THE NODE MODULE OF  
PREP7 MAY BE OBTAINED FROM ANYWHERE IN THE ANSYS PROGRAM BY -     
      
    HELP,PREP,PRP7,NODE,NGEN  
      
NOTE, FROM WITHIN PREP7 THE SIMPLER  DOCU,NGEN  COMMAND SHOULD BE USED. 
      
ENTER  HELP,LIST    FOR VALID PHASE NAMES FOR THE HELP COMMAND    
ENTER  HELP,XXX,LIST  FOR VALID ROUTINE NAMES (WHERE XXX IS PHASE NAME) 
ETC.  
$END  
ANSYS   GLOS
ENTER   - USER GIVES COMMAND TO ANSYS     
COMMAND - AN INSTRUCTION TO SUPPLY DATA OR CONTROL    
MODULE  - A LOGICAL GROUP OF RELATED COMMANDS   
ROUTINE - A LOGICAL GROUP OF RELATED MODULES    
PHASE   - A LOGICAL GROUP OF ROUTINES.    
           THERE ARE THREE MAJOR PHASES IN ANSYS -    
           PREPROCESSING, SOLUTION, AND POSTPROCESSING.     
INPUT-TO-ROUTINE - THE INPUT TO A ROUTINE BEGINS WITH 
                    A / COMMAND AND ENDS WITH A FINISH.     
(ACTION) - USED IN INTERACTIVE DOCUMENTATION FOR COMMANDS   
            WITH NO PARAMETERS. ENTERING THE COMMAND WILL   
            CAUSE THE ACTION TO TAKE PLACE.     
(KEY)    - USED IN INTERACTIVE DOCUMENTATION FOR COMMANDS   
            THAT ARE ON/OFF SWITCHES (ON = 1)   
      
ENTER  DOCU,ALL  TO RE-DISPLAY TOPIC-NAME LIST  
*END  
ANSYS   PLOT
THE DISPLAY SCREEN GOES FROM -1.0 TO 1.0 IN X AND Y.  ON THE SCREEN IS  
ONE DISPLAY WINDOW, WN  (WN DEFAULTS TO 1).     
PLOTS MAY BE "ABORTED" WITH SYSTEM BREAK. ANSYS COMMAND PROMPT FOLLOWS. 
      
/VIEW,WN,XV,YZ,ZV               LINE FROM FOCUS TO OBSERVER 
/ANGLE,WN,THETA                 SCREEN ORIENT. ANGLE (+ IS C.W.)  
/FOCUS,WN,XF,YF,ZF              POINT IN SPACE AT WINDOW CENTER   
/DIST,WN,DVAL                   DIST FROM FOCUS PT. TO OBSERVER   
/RATIO,WN,RATOX,RATOY           SCALES OBJECT IN WINDOW (DEF.=1.0)
/VCONE,WN,PHI                   0.0=PARALLEL PROJ.  45.0=PERSPECTIVE    
/DSCALE,WN,DMULT                DISTORTION MULT. (1.=TRUE SCALE)  
/CONT,WN,NCONT,VMIN,VINC,VMAX   CONTOURS FOR STRESS PLOTS (-1=NONE)     
/CLABEL,WN,KEY                  0=NO CONTOUR LABELS, 1=LABEL
      
ENTER-   HELP,PLOT,MORE   TO GET MORE DOCUMENTATION   
$END  
ANSYS   PLOT    MORE    
 ***** CONTINUATION OF PLOT DISPLAY COMMANDS *****    
      
/TYPE,WN,KEY                    0=ORDINARY  2=HIDDEN  
/NORMAL,WN,KEY                  0=BOTH FACES, 1=TOP, -1=BOTTOM
/SHRINK,RATIO                   0.=NO SHRINK  .5=MAX. SHRINK
/NUMBER,KEY,NCPL                -1=NONE  0=COLOR  1=NUMBER  
/STAT,WN                        STATUS OF WINDOW REQUESTED  
/RESET                          RESET DISPLAY COMMANDS TO DEFAULT 
/PLOFF,NOTRI,NOFRM,NODOC,NOTLE  PLOT ITEM KEYS- 0=PLOTTED  1=NOT PLOTTED
$END  
