ANSYS

From FarmShare

(Difference between revisions)
Jump to: navigation, search
Line 15: Line 15:
-
To run the ansys workbench, load the module and run runwb2.  Since the workbench is heavy graphics, we would recommend you run it inside a VNC session.  See [[FarmVNC]].
+
To run the ansys workbench, load the module and run runwb2.  Since the workbench is heavy graphics, we would recommend you run it inside a VNC session.  See [[FarmVNC]]. If you need accelerated 3D graphics, see [[Rye]]/
<source lang="sh">
<source lang="sh">
Line 21: Line 21:
runwb2
runwb2
</source>
</source>
 +
 +
 +
 +
 +
 +
 +
 +

Revision as of 16:38, 13 February 2014

Contents

ANSYS

ANSYS v14.5

ANSYS v14.5 is installed. Update v14.5.1 is applied. To use it, try 'module avail' and module load ANSYS and 'which ansys145'.

but if you executed the 'module load ANSYS' command, you should be able to just type ansys145 or launcher145.

In the launcher program, if you need to choose a license, use "ANSYS Academic Research".


running the workbench

ansysworkbench.png


To run the ansys workbench, load the module and run runwb2. Since the workbench is heavy graphics, we would recommend you run it inside a VNC session. See FarmVNC. If you need accelerated 3D graphics, see Rye/

module load ANSYS
runwb2











ansys v14.5 example

ansysexample.png

In this example, ansys is run in batch mode with an input command file. It produces file000.png which should look like the image here in this wiki.


$ module load ANSYS
$ mkdir ansystest
$ cd ansystest
$ ansys145 < /farmshare/software/examples/ansys/example1.cmd


 ANSYS Academic Teaching Advanced                  


 *------------------------------------------------------------------*
 |                                                                  |
 |   W E L C O M E   T O   T H E   A N S Y S (R)  P R O G R A M     |
 |                                                                  |
 *------------------------------------------------------------------*




 ***************************************************************
 *                  ANSYS 14.5 LEGAL NOTICES                   *
 ***************************************************************
 *                                                             *
 * Copyright 2012 SAS IP, Inc.  All rights reserved.           *
 * Unauthorized use, distribution or duplication is            *
 * prohibited.                                                 *
 *                                                             *
 * Ansys is a registered trademark of ANSYS, Inc. or its       *
 * subsidiaries in the United States or other countries.       *
 * See the ANSYS, Inc. online documentation or the ANSYS, Inc. *
 * documentation CD or online help for the complete Legal      *
 * Notice.                                                     *
 *                                                             *
 ***************************************************************
 *                                                             *
 * THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION       *
 * INCLUDE TRADE SECRETS AND CONFIDENTIAL AND PROPRIETARY      *
 * PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS.    *
 * The software products and documentation are furnished by    *
 * ANSYS, Inc. or its subsidiaries under a software license    *
 * agreement that contains provisions concerning               *
 * non-disclosure, copying, length and nature of use,          *
 * compliance with exporting laws, warranties, disclaimers,    *
 * limitations of liability, and remedies, and other           *
 * provisions.  The software products and documentation may be *
 * used, disclosed, transferred, or copied only in accordance  *
 * with the terms and conditions of that software license      *
 * agreement.                                                  *
 *                                                             *
 * ANSYS, Inc. is a UL registered                              *
 * ISO 9001:2008 company.                                      *
 *                                                             *
 ***************************************************************
 *                                                             *
 * This product is subject to U.S. laws governing export and   *
 * re-export.                                                  *
 *                                                             *
 * For U.S. Government users, except as specifically granted   *
 * by the ANSYS, Inc. software license agreement, the use,     *
 * duplication, or disclosure by the United States Government  *
 * is subject to restrictions stated in the ANSYS, Inc.        *
 * software license agreement and FAR 12.212 (for non-DOD      *
 * licenses).                                                  *
 *                                                             *
 ***************************************************************


 AFTER YOU HAVE READ, UNDERSTOOD, AND AGREED TO THE PREVIOUS NOTICES,
 PRESS <CR> OR <ENTER> TO CONTINUE


          *****  ANSYS COMMAND LINE ARGUMENTS  *****
  DESIGNXPLORER REQUESTED

 00670021          VERSION=LINUX x64       RELEASE= 14.5     UP20120918
 CURRENT JOBNAME=file  14:57:00  FEB 13, 2013 CP=      0.192


 RUN SETUP PROCEDURE FROM FILE= /farmshare/software/non-free/ANSYS-install/v145/ansys/apdl/start145.ans

 /INPUT FILE= /farmshare/software/non-free/ANSYS-install/v145/ansys/apdl/start145.ans  LINE=       0

 BEGIN:
     1  /BATCH,LIST,COPY
     2  /graphics,power 
     3  /show,png   
     4      
     5  /title, Simple Conduction Example   
     6  /PREP7  
     7      
     8  ! define geometry   
     9      
    10  length=1.0  
    11  height=1.0  
    12  blc4,0,0,length, height		! area - one corner, then width and height 
    13      
    14  ! mesh 2D areas 
    15      
    16  ET,1, PLANE55			! Thermal element only  
    17  MP,KXX,1,10			! 10 W/mC 
    18  ESIZE,length/20			! number of element sub-divisions/side
    19  AMESH,ALL   
    20      
    21  FINISH  
    22  /SOLU   
    23      
    24  ANTYPE,0			! STEADY-STATE THERMAL ANALYSIS  
    25      
    26  ! fixed temp BCs   
    27  NSEL,S,LOC,Y,height		! select nodes on top with y=height
    28  D,ALL,TEMP,500			! apply fixed temp of 500C 
    29  NSEL,ALL
    30  NSEL,S,LOC,X,0			! select nodes on three sides  
    31  NSEL,A,LOC,X,length 
    32  NSEL,A,LOC,Y,0  
    33  D,ALL,TEMP,100			! apply fixed temp of 100C 
    34  NSEL,ALL
    35      
    36  SOLVE   
    37  FINISH  
    38      
    39  /POST1  
    40  PLNSOL,TEMP,,0,			! contour plot of temperatures

 Use PowerGraphics for solid and shell elements

 *** NOTE ***                            CP =       0.292   TIME= 14:57:03
 Facet level set to 1 for maximum speed                                  
  Use /EFACET,2 for curved boundaries.                                   

 /SHOW SWITCH PLOTS TO  PNG         - RASTER MODE.

 TITLE= 
  Simple Conduction Example                                                    

1

 ***** ANSYS - ENGINEERING ANALYSIS SYSTEM  RELEASE 14.5     *****
 ANSYS Academic Teaching Advanced                  
 00670021          VERSION=LINUX x64     14:57:03  FEB 13, 2013 CP=      0.296

  Simple Conduction Example                                                    


          ***** ANSYS ANALYSIS DEFINITION (PREP7) *****

 PARAMETER LENGTH =     1.000000000    

 PARAMETER HEIGHT =     1.000000000    

 CREATE A RECTANGULAR AREA WITH
 X-DISTANCES FROM      0.000000000     TO      1.000000000    
 Y-DISTANCES FROM      0.000000000     TO      1.000000000    
      OUTPUT AREA =     1

 ELEMENT TYPE      1 IS PLANE55      2-D THERMAL SOLID           
  KEYOPT( 1- 6)=        0      0      0        0      0      0
  KEYOPT( 7-12)=        0      0      0        0      0      0
  KEYOPT(13-18)=        0      0      0        0      0      0

 CURRENT NODAL DOF SET IS  TEMP
  TWO-DIMENSIONAL MODEL

 MATERIAL         1     KXX  =   10.00000      

 DEFAULT ELEMENT DIVISIONS PER LINE BASED ON ELEMENT SIZE =  0.500E-01

 GENERATE NODES AND ELEMENTS   IN  ALL  SELECTED AREAS    
    ** AREA     1 MESHED WITH     400 QUADRILATERALS,        0 TRIANGLES **

 NUMBER OF AREAS MESHED     =        1
 MAXIMUM NODE NUMBER        =      441
 MAXIMUM ELEMENT NUMBER     =      400


 ***** ROUTINE COMPLETED *****  CP =         0.312



 *****  ANSYS SOLUTION ROUTINE  *****


 PERFORM A STATIC ANALYSIS
  THIS WILL BE A NEW ANALYSIS

 SELECT       FOR ITEM=LOC  COMPONENT=Y     BETWEEN  1.0000     AND   1.0000    
   KABS=  0.  TOLERANCE= 0.500000E-02

       21  NODES (OF      441  DEFINED) SELECTED BY  NSEL  COMMAND.

 SPECIFIED CONSTRAINT TEMP FOR SELECTED NODES         1 TO      441 BY        1
 REAL=  500.000000       IMAG=  0.00000000    

 ALL SELECT   FOR ITEM=NODE COMPONENT=    
  IN RANGE       1 TO      441 STEP        1

      441  NODES (OF      441  DEFINED) SELECTED BY NSEL  COMMAND.

 SELECT       FOR ITEM=LOC  COMPONENT=X     BETWEEN  0.0000     AND   0.0000    
   KABS=  0.  TOLERANCE= 0.100000E-05

       21  NODES (OF      441  DEFINED) SELECTED BY  NSEL  COMMAND.

 ALSO SELECT  FOR ITEM=LOC  COMPONENT=X     BETWEEN  1.0000     AND   1.0000    
   KABS=  0.  TOLERANCE= 0.500000E-02

       42  NODES (OF      441  DEFINED) SELECTED BY  NSEL  COMMAND.

 ALSO SELECT  FOR ITEM=LOC  COMPONENT=Y     BETWEEN  0.0000     AND   0.0000    
   KABS=  0.  TOLERANCE= 0.100000E-05

       61  NODES (OF      441  DEFINED) SELECTED BY  NSEL  COMMAND.

 SPECIFIED CONSTRAINT TEMP FOR SELECTED NODES         1 TO      441 BY        1
 REAL=  100.000000       IMAG=  0.00000000    

 ALL SELECT   FOR ITEM=NODE COMPONENT=    
  IN RANGE       1 TO      441 STEP        1

      441  NODES (OF      441  DEFINED) SELECTED BY NSEL  COMMAND.

 *****  ANSYS SOLVE    COMMAND  *****
1

 ***** ANSYS - ENGINEERING ANALYSIS SYSTEM  RELEASE 14.5     *****
 ANSYS Academic Teaching Advanced                  
 00670021          VERSION=LINUX x64     14:57:04  FEB 13, 2013 CP=      0.316

  Simple Conduction Example                                                    


                       S O L U T I O N   O P T I O N S

   PROBLEM DIMENSIONALITY. . . . . . . . . . . . .2-D                  
   DEGREES OF FREEDOM. . . . . . TEMP
   ANALYSIS TYPE . . . . . . . . . . . . . . . . .STATIC (STEADY-STATE)
   GLOBALLY ASSEMBLED MATRIX . . . . . . . . . . .SYMMETRIC  

 *** NOTE ***                            CP =       0.320   TIME= 14:57:04
 Present time 0 is less than or equal to the previous time.  Time will   
 default to 1.                                                           

 *** NOTE ***                            CP =       0.320   TIME= 14:57:04
 The conditions for direct assembly have been met.  No .emat or .erot    
 files will be produced.                                                 

                      L O A D   S T E P   O P T I O N S

   LOAD STEP NUMBER. . . . . . . . . . . . . . . .     1
   TIME AT END OF THE LOAD STEP. . . . . . . . . .  1.0000    
   NUMBER OF SUBSTEPS. . . . . . . . . . . . . . .     1
   STEP CHANGE BOUNDARY CONDITIONS . . . . . . . .    NO
   PRINT OUTPUT CONTROLS . . . . . . . . . . . . .NO PRINTOUT
   DATABASE OUTPUT CONTROLS. . . . . . . . . . . .ALL DATA WRITTEN
                                                  FOR THE LAST SUBSTEP


 SOLUTION MONITORING INFO IS WRITTEN TO FILE= file.mntr                                                                                                                                                                                                                                                           


 Range of element maximum matrix coefficients in global coordinates
 Maximum = 6.66666667 at element 78.                                     
 Minimum = 6.66666667 at element 2.                                      

   *** ELEMENT MATRIX FORMULATION TIMES
  TYPE    NUMBER   ENAME      TOTAL CP  AVE CP

     1       400  PLANE55       0.040   0.000100
 Time at end of element matrix formulation CP = 0.500032008.             

 SPARSE MATRIX DIRECT SOLVER.
  Number of equations =         361,    Maximum wavefront =      6
  Memory allocated for solver =                 15.259 MB
  Memory required for in-core =                  0.162 MB
  Optimal memory required for out-of-core =      0.098 MB
  Minimum memory required for out-of-core =      0.091 MB

 *** NOTE ***                            CP =       0.552   TIME= 14:57:32
 The Sparse Matrix solver is currently running in the in-core memory     
 mode.  This memory mode uses the most amount of memory in order to      
 avoid using the hard drive as much as possible, which most often        
 results in the fastest solution time.  This mode is recommended if      
 enough physical memory is present to accommodate all of the solver      
 data.                                                                   
 Sparse solver maximum pivot= 26.6666667 at node 378 TEMP.               
 Sparse solver minimum pivot= 14.8603497 at node 359 TEMP.               
 Sparse solver minimum pivot in absolute value= 14.8603497 at node 359   
 TEMP.                                                                   

   *** ELEMENT RESULT CALCULATION TIMES
  TYPE    NUMBER   ENAME      TOTAL CP  AVE CP

     1       400  PLANE55       0.044   0.000110

   *** NODAL LOAD CALCULATION TIMES
  TYPE    NUMBER   ENAME      TOTAL CP  AVE CP

     1       400  PLANE55       0.008   0.000020
 *** LOAD STEP     1   SUBSTEP     1  COMPLETED.    CUM ITER =      1
 *** TIME =   1.00000         TIME INC =   1.00000      NEW TRIANG MATRIX


 *** ANSYS BINARY FILE STATISTICS
  BUFFER SIZE USED= 16384
        0.062 MB WRITTEN ON ASSEMBLED MATRIX FILE: file.full
        0.688 MB WRITTEN ON RESULTS FILE: file.rth

 FINISH SOLUTION PROCESSING


 ***** ROUTINE COMPLETED *****  CP =         0.716


1

 ***** ANSYS - ENGINEERING ANALYSIS SYSTEM  RELEASE 14.5     *****
 ANSYS Academic Teaching Advanced                  
 00670021          VERSION=LINUX x64     14:57:38  FEB 13, 2013 CP=      0.724

  Simple Conduction Example                                                    


          ***** ANSYS RESULTS INTERPRETATION (POST1) *****

 *** NOTE ***                            CP =       0.724   TIME= 14:57:38
 Reading results into the database (SET command) will update the current 
 displacement and force boundary conditions in the database with the     
 values from the results file for that load set.  Note that any          
 subsequent solutions will use these values unless action is taken to    
 either SAVE the current values or not overwrite them (/EXIT,NOSAVE).    

 DISPLAY NODAL SOLUTION,  ITEM=TEMP  COMP=                  

 CUMULATIVE DISPLAY NUMBER   1 WRITTEN TO FILE file000.png       - RASTER MODE.
 DISPLAY TITLE= 
  Simple Conduction Example                                              

 ***** END OF INPUT ENCOUNTERED *****


 NUMBER OF WARNING MESSAGES ENCOUNTERED=          0
 NUMBER OF ERROR   MESSAGES ENCOUNTERED=          0



 ***** PROBLEM TERMINATED BY INDICATED ERROR(S) OR BY END OF INPUT DATA *****

 *** NOTE ***

  libpng version 1.0.8 - July 24, 2000
    Copyright (c) 1998-2000 Glenn Randers-Pehrson
    Copyright (c) 1996, 1997 Andreas Dilger
    Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.

 ZLIB Version 1.1.3 Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler

+--------------------- A N S Y S   S T A T I S T I C S ------------------------+

Release: 14.5       Build: UP20120918   Platform: LINUX x64   
Date Run: 02/13/2013   Time: 14:57

Processor Model: Quad-Core AMD Opteron(tm) Processor 2384

Compiler: Intel(R) FORTRAN Compiler Version 11.1.0  (Build: 20100203)
          Intel(R) C/C++ Compiler Version 11.1.0  (Build: 20100203)
          Intel(R) Math Kernel Library Version 10.3.3 Product Build 20110314

Total number of cores available    :    8
Number of physical cores available :    8
Number of cores requested          :    2 (Shared Memory Parallel)

GPU Acceleration: Not Requested

Job Name: file
Working Directory: /farmshare/user_data/bishopj/ansystest

Total CPU time for main thread                    :        0.8 seconds
Total CPU time summed for all threads             :        1.1 seconds

Elapsed time spent pre-processing model (/PREP7)  :        0.4 seconds
Elapsed time spent solution - preprocessing       :        0.2 seconds
Elapsed time spent computing solution             :       27.1 seconds
Elapsed time spent solution - postprocessing      :        0.0 seconds
Elapsed time spent post-processing model (/POST1) :        0.0 seconds
Equation solver effective I/O rate                :        0.6 MB/sec

Maximum total memory used                         :       21.0 MB
Maximum total memory allocated                    :     1088.0 MB
Maximum total memory available                    :         31 GB

+------------------ E N D   A N S Y S   S T A T I S T I C S -------------------+


 *---------------------------------------------------------------------------*
 |                                                                           |
 |                            ANSYS RUN COMPLETED                            |
 |                                                                           |
 |---------------------------------------------------------------------------|
 |                                                                           |
 |            Release 14.5           UP20120918         LINUX x64            |
 |                                                                           |
 |---------------------------------------------------------------------------|
 |                                                                           |
 | Database Requested(-db)   512 MB    Scratch Memory Requested       512 MB |
 | Maximum Database Used       1 MB    Maximum Scratch Memory Used     20 MB |
 |                                                                           |
 |---------------------------------------------------------------------------|
 |                                                                           |
 |        CP Time      (sec) =          1.080       Time  =  14:57:40        |
 |        Elapsed Time (sec) =         46.000       Date  =  02/13/2013      |
 |                                                                           |
 *---------------------------------------------------------------------------*
$ ls -l
total 876
-rw-r--r-- 1 bishopj root   1979 Feb 13 14:57 file.BCS
-rw-r--r-- 1 bishopj root     67 Feb 13 14:56 file.err
-rw-r--r-- 1 bishopj root  65536 Feb 13 14:57 file.esav
-rw-r--r-- 1 bishopj root  65536 Feb 13 14:57 file.full
-rw-r--r-- 1 bishopj root    161 Feb 13 14:57 file.log
-rw-r--r-- 1 bishopj root    721 Feb 13 14:57 file.mntr
-rw-r--r-- 1 bishopj root 720896 Feb 13 14:57 file.rth
-rw-r--r-- 1 bishopj root    149 Feb 13 14:57 file.stat
-rw-r--r-- 1 bishopj root  20783 Feb 13 14:57 file000.png
$ display file000.png

reference

static page: https://itservices.stanford.edu/service/sharedcomputing/software/ansys

Personal tools
Toolbox
LANGUAGES