Beruflich Dokumente
Kultur Dokumente
The text (in this format!) is an input-file to ANSYS classic, version 11.0. This inputfile is used for analyzing a clamped thick plate. The displacement and equivalent stress (von Mises) will be plotted for the entire plate.
! Start of the input-file ! An analysis of a clamped plate ! Entering the title of the simulation /TITLE, Analysis of a clamped plate ! Entering the pre-processor ! Here the material properties and the geometry will be defined, ! the mesh will be created and the loads and boundary conditions will ! be defined /PREP7 ! Parameters, using SI-units Youngs=210e9 PR=0.3 DENSITY=7980 a=1 b=1 h=0.1 Pressure=500000 nx=10 ny=10 nz=2 ! ! ! ! ! ! ! ! ! ! Young's modulus [Pa] Poissons ratio [-] Density [kg/m3] Plate width [m] Plate length [m] Plate height [m] Applied pressure [Pa] Number of elements in x-direction [-] Number of elements in y-direction [-] Number of elements in z-direction [-]
! Creating a 3D-plate by defining the dimensions using the command ! block. BLOCK,0,a,0,b,0,h ! The element type is a 20-node solid element, SOLID186 ET,1,SOLID186 ! Material properties, a normal steel MPTEMP,,,,,,,, MPTEMP,1,0 MPDATA,EX,1,,Youngs MPDATA,PRXY,1,,PR ! Defining number of elements per line, used for meshing LESIZE,2,,,nx,1,4,0,0,0 LESIZE,7,,,nx,1,4,0,0,0 LESIZE,4,,,nx,1,4,0,0,0 LESIZE,5,,,nx,1,4,0,0,0 LESIZE,1,,,ny,1,4,0,0,0 LESIZE,3,,,ny,1,4,0,0,0 LESIZE,6,,,ny,1,4,0,0,0 LESIZE,8,,,ny,1,4,0,0,0 LESIZE,9,,,nz,1,4,0,0,0 LESIZE,10,,,nz,1,4,0,0,0 LESIZE,11,,,nz,1,4,0,0,0 LESIZE,12,,,nz,1,4,0,0,0 ! Meshing the plate, using sweep...
VSWEEP,ALL ! Locking all the sides, making the plate clamped DA,3,All,0 DA,4,All,0 DA,5,All,0 DA,6,All,0 ! Applying pressure on top of the plate SFA,2,1,PRES,Pressure ! Exits the pre-processor and enters the solution processor FINISH /SOLU ! Defining the type of analysis, in this case a static one. ! SOLVE= Solving the problem... ANTYPE,0 SOLVE ! Exits the solution processor and enters the post-processor FINISH /POST1 ! Saves the database information, in order to analyze it in the next part ! Stores all the data available SAVE,Demo,DB,,ALL ! End of the input-file
Tip! In the help file, a description of every command and its location (how you reach it from the GUI, by clicking in the menus) can be found. The help file is found at Help>Help topics. Tip! In the Session Editor, every command that has been used in the simulation is logged. Performing an analysis with ANSYS can be done in several ways; this is a recall of the steps taken in this simulation. 1. Preferences, selecting the type of simulation. 2. Preprocessor, entering the preprocessor where the model is created, meshed and loads and boundary conditions are applied. 3. Element Type, defining which type of elements to use (in the simulation above SOLID186). 4. Material Props, defining the material properties. 5. Modeling, creating the geometry used in the simulations. 6. Meshing, defining the mesh for the plate. 7. Loads, defining the type of analysis, the loads and the boundary values for the plate. 8. Solution, here the problem is solved; the loads can be defined here as well. 9. Solve, used for solving the problem. 10. General Postproc (or TimeHist Postproc), here the results are post processed (this part will be discussed in the next half).
PLPATH,UZ /IMAGE,SAVE,Displacement_path,png PLPATH,SEQV /IMAGE,SAVE,Von_Mises_path,png ! Command used for storing values from the mid-nodes /EFACET,4 ! Storing the items generated from the path, equivalent stress ! The command page governs the page properties. /PAGE,4000,80,4000,80 /OUTPUT,Path_information,txt,,APPEND PRPATH,UZ,SEQV /OUTPUT displacement and
! Storing the displacement and stress vector in the node situated in the middle of the plate... Mid1 = node(0.5*a,0.5*b,0) Mid2 = node(0.5*a,0.5*b,0.5*h) Mid3 = node(0.5*a,0.5*b,h) *GET,U1,NODE,Mid1,U,Z *GET,U2,NODE,Mid2,U,Z *GET,U3,NODE,Mid3,U,Z ! (F15.10) is Fortran number format... /output,Mid_displacements,txt,,append /COM, Displacements for mid-nodes in z-direction *VWRITE,U1, U2, U3, , , , , , , (F15.10) /output ! Storing the stress matrix for all nodes /OUTPUT,Stress_matrix2,txt,,APPEND PRNSOL,S /OUTPUT ! End of input file /eof
Tip! When using the command /COM, the comment is written in the output window, which is not the case when using ! The post processing in ANSYS can be done in several ways, depending on which results that are desired. Two different post processors are available in ANSYS (General Postproc and TimeHist Postproc), here the general postprocessor will be described. The time historic postprocessor processes results from a transient analysis, i.e. an analysis with time as a variable. The following items are used in this analysis: o List results, used for listing results for example the stress state in each element. o Results viewer, used for visualizing the results, e.g. the maximal principal stress. o Path operations, used for visualizing how the displacement changes over the width of the plate.