Page 170 - Using ANSYS for Finite Element Analysis Dynamic, Probabilistic, Design and Heat Transfer Analysis
P. 170

apDl programming   •   157
                               Preprocessor -> Meshing -> Size Controls -> ManualSize
                               -> Lines > Picked Lines > type 2 then press Enter > type
                                4 then press Enter-> OK > Enter # of divisions = 600
                                > Apply > type 1 then press Enter > type 3 then press
                                    Enter-> OK > Enter # of divisions = 5 -> OK
                           •  Now create the mesh:
                                Preprocessor -> Meshing -> Mesh  -> Areas -> Free ->
                                     Click on the area of select Pick All -> OK
                           •  Select type of analysis:
                               Solution > Analysis Type -> New Analysis -> Steady-State
                                                     -> OK
                           •  Apply the temperature boundary condition:
                                Solution > Define Loads > Apply -> Thermal > Tem-
                               perature  > On Line > Enter line No. = 1 > Select TEMP
                                           and enter value = 100 > OK.
                           •  Apply the convective boundary conditions:
                              Solution > Define Loads > Apply -> Thermal > Convection
                               > On Lines > Enter line Numbers = 2, 3 and 4 (after typ-
                               ing each number press ENTER key) > OK > Enter Film
                                    Coeff = 10 and Bulk Temperature = 25 > OK.
                           •  Perform the solution:
                                       Solution -> Solve -> Current LS -> OK
                           •  To establish a command  log file from the database log, pick
                              Utility Menu> File> Write DB Log File. You can specify a
                              file  name or use  the  default  name, Jobname.LGW.
                        2.  Edit the Command Log File
                           Using any text editor, edit the Database command log file: Tutorial 2.lgw
                               /BATCH
                               ! /COM,ANSYS  RELEASE  11.0  UP20070125
                           13:36:28 08/30/2008
                               /input,start110,ans,’C:\Program            Files\
                           ANSYS
                               Inc\v110\ANSYS\apdl\’,,,,,,,,,,,,,,,,1
                               !*
                               /NOPR
                               /PMETH,OFF,0
                               KEYW,PR_SET,1
                               KEYW,PR_STRUC,0
                               KEYW,PR_THERM,1
                               KEYW,PR_FLUID,0
                               KEYW,PR_ELMAG,0
   165   166   167   168   169   170   171   172   173   174   175