Download presentation
1
ANSYS命令: 基礎與觀念 Fundamentals and Concepts
Chapter 5 ANSYS命令: 基礎與觀念 Fundamentals and Concepts
2
Contents 5.1 ANSYS命令分類 5.2 準備工作 5.3 ANSYS數學式 5.4 座標系統 5.5 模型的元件及選擇
Classification of ANSYS Commands 5.2 準備工作 Set Up Commands 5.3 ANSYS數學式 ANSYS Expressions 5.4 座標系統 Coordinate Systems 5.5 模型的元件及選擇 Model Entities and Selections
3
ANSYS命令分類 Classification of ANSYS Commands
第5.1節 ANSYS命令分類 Classification of ANSYS Commands
4
ANSYS程序結構 ... ! Set up ... ! Define parameters /PREP7 ! Enter preprocessor ... ! Build solid model ... ! Define attribute tables ... ! Generate mesh FINISH ! Back to begin level /SOLU ! Enter solver ... ! Specify loads ... ! Specify solution options ... ! Solve the model FINISH ! Back to begin level /POST1 ! Enter general postprocessor ... ! Read a set of results ... ! Plot or print results FINISH ! Back to begin level /POST26 ! Enter time history postprocessor ... ! Store solution in variables ... ! Plot or print variables
5
5.1.2 ANSYS命令分類 Chapter 5 Chapter 6 Chapter 7 Set Up
Enter/Leave a Module Parameters and Expressions Coordinate Systems Entities Selections Components Preprocessing Solid Modeling Keypoints Lines Areas Volumes Primitives Booleans Element Attributes ET Table MP Table R Table CS Table Attributes Assignment Mesh Generation Nodes Elements Mesh Size/Shape Auto-Meshing Solution Loads Loads on Analysis Model Loads on Solid Model Initial Conditions Solution Options Solve General Postprocessing Basic Commands Element Tables Path Operations Graphics Controls Time-History Postprocessing
6
第5.2節 準備工作 Set Up Commands
7
5.2.1 ANSYS資料庫與檔案結構 Jobname.DB Model Loads Database Result Model Loads
Jobname.RST Result Result at t1 Result at t2 etc.
8
5.2.2 Set Up 命令 01 02 03 04 05 06 07 FINISH /CLEAR /TITLE, Title
/FILNAME, Fname /SHOW, Fname, Ext RESUME, Fname, Ext, Dir SAVE, Fname, Ext, Dir
9
5.2.3 進入與離開模組 01 02 03 04 05 06 07 /PREP7 /SOLU /POST1 /POST26 /OPT
進入與離開模組 01 02 03 04 05 06 07 /PREP7 /SOLU /POST1 /POST26 /OPT FINISH /EXIT
10
ANSYS數學式 ANSYS Expressions
第5.3節 ANSYS數學式 ANSYS Expressions
11
ANSYS數學式 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 X=A+B P=(R2+R1)/2 D=-B+(E**2)-(4*A*C) XYZ=(A<B)+Y**2 INC=A1+(31.4/9) M=((X2-X1)**2-(Y2-Y1)**2)/2 PI=ACOS(-1) Z3=COS(2*THETA)-Z1**2 R2=SQRT(ABS(R1-3)) X=RAND(-24,R2) *AFUN,DEG THETA=ATAN(SQRT(3)) PHI=ATAN2(-SQRT(3),-1) *AFUN,RAD X249=NX(249) SLOPE=(KY(2)-KY(1))/(KX(2)-KX(1))
12
5.3.2 參數名稱 Grammatically similar FORTRAN variable names.
參數名稱 Grammatically similar FORTRAN variable names. The first 8 letters are significant. Example of legal names are: ABC, PI, X_OR_Y. Examples of illegal names are: NEW_VALUE, 2CF3, M&E.
13
5.3.3 ANSYS運算符號 Operator Description + Addition - Subtraction *
Multiplication / Division ** Exponentiation < Less-than > Greater-than
14
5.3.4 ANSYS數學函數 (FORTRAN-Like Functions)
ABS(X) SQRT(X) SIN(X) TANH(X) SIGN(X,Y) NINT(X) COS(X) ASIN(X) EXP(X) MOD(X,Y) TAN(X) ACOS(X) LOG(X) RAND(X,Y) SINH(X) ATAN(X) LOG10(X) GDIS(X,Y) COSH(X) ATAN2(Y,X)
15
5.3.5 ANSYS “GET” Functions Coordinate ID Number DOF Results NX(N)
NODE(X,Y,Z) UX(N) TEMP(N) ENDS(N) NY(N) KP(X,Y,Z) UY(N) PRES(N) VOLT(N) NZ(N) UZ(N) VX(N) MAG(N) KX(N) ROTX(N) VY(N) AX(N) KY(N) ROTY(N) VZ(N) AY(N) KZ(N) ROTZ(N) ENKE(N) AZ(N)
16
座標系統 Coordinate Systems
第5.4節 座標系統 Coordinate Systems
17
5.4.1 為什麼需要座標系統? When construct a model, you need a CS to refer to.
為什麼需要座標系統? When construct a model, you need a CS to refer to. For various purpose, more than one CS’s are preferable. In ANSYS, CS’s are stored in a CS table.
18
5.4.2 Global Coordinate Systems (Predefined CS)
(0) Cartesian (X,Y,Z) (1) Cylindrical (R,q,Z) (2) Spherical (R,q,f) (5) Cylindrical (R,q,Y)
19
5.4.3 Local Coordinate System (User-defined CS)
To defined a local CS, you need to specify The CS type (e.g., Cartesian) Position of origin in global CS Directions of the 3 axes
20
5.4.4 CS Table ID Description Global Cartesian (X,Y,Z) 1
Global Cartesian (X,Y,Z) 1 Global Cylindrical (R,q,Z) 2 Global Spherical (R,q,f) 3 (Reserved) 4 Working Plane 5 Global Cylindrical (R,q,Y) 6-10 11 User Defined Local CS 12 …
21
Working Plane WP is a predefined CS (no. 4) which is always coincident with the Active CS. Many commands are available to manipulate the WP. WP can be used as dynamic Local CS. Primitives are created referring to WP.
22
Use of CS’s Active CS Element CS Nodal CS Result CS Display CS
23
CS Table 命令 01 02 03 04 LOCAL, KCN, KCS, XC, YC, ZC, THXY, THYZ, THZX CLOCAL, KCN, KCS, XL, YL, ZL, THXY, THYZ, THZX CSWPLA, KCN, KCS CSLIST
24
5.4.8 指定座標系統 01 02 03 04 05 CSYS, KCN DSYS, KCN ESYS, KCN RSYS, KCN
指定座標系統 01 02 03 04 05 CSYS, KCN DSYS, KCN ESYS, KCN RSYS, KCN NROTAT, NODE1, NODE2, NINC (a) Parallel to global cartesian CS (Default) (b) Parallel to a local cylindrical CS (c) Parallel to global cylindrical CS
25
5.4.9 Working Plane 命令 01 02 03 04 WPCSYS,, KCN
WPOFFS, XOFF, YOFF, ZOFF WPROTA, THXY, THYZ, THZX WPLANE,, X, Y, Z, XA, YA, ZA, XP, YP, ZP
26
模型的元件及選擇 Model Entities and Selections
第5.5節 模型的元件及選擇 Model Entities and Selections
27
Model Entities Entities to construct a solid model consist of keypoints, lines, areas, and volumes. Entities to construct an analysis model consist of nodes and elements. The hierarchical relations (from bottom to top) are: keypoints-lines-areas-volumes-nodes-elements.
28
5.5.2 Selection of Entities (1/3)
01 02 03 04 05 06 07 NSEL, S, LOC, X, 0 D, ALL, ALL, 0 ... NSEL, ALL F, N1, FY, -P/2 SOLVE
29
5.5.2 Selection of Entities (2/3)
NSEL, Type, Item, Comp, VMIN, VMAX, VINC NSEL,, LOC, X, 0 NSEL,, LOC, Y, -5, 5 NSEL,, NODE, 1, 100 NSEL, ALL NLIST, 1, 100 NLIST, ALL 選出X = 0的所有節點 選出Y座標在-5至5之間的所有節點 選出1至100號的所有節點 選出所有定義過的節點 以文字列印出1至100號節點的資料 以文字列印出所有節點的資料
30
5.5.2 Selection of Entities (3/3)
Type Description S Select a new set (default) R Reselect a set from the current set A Select a set and add to the current set U Unselect a set from the current set ALL Restore the full set NONE Clear the current set INVE Invert the current set; selected becomes unselected and vice versa STAT Display the current selection status
31
5.3.3 Entities Selection Commands
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 NSEL, Type, Item, Comp, VMIN, VMAX, VINC NSLE, Type NSLK, Type NSLL, Type, NKEY NSLA, Type, NKEY NSLV, Type, NKEY ESEL, Type, Item, Comp, VMIN, VMAX, VINC ESLN, Type, EKEY ESLL, Type ESLA, Type ESLV, Type KSEL, Type, Item, Comp, VMIN,VMAX, VINC KSLN, Type KSLL, Type LSEL, Type, Item, Comp, VMIN, VMAX, VINC LSLK, Type, LSKEY LSLA, Type ASEL, Type, Item, Comp, VMIN, VMAX, VINC ASLL, Type, ARKEY ASLV, Type VSEL, Type, Item, Comp, VMIN, VMAX, VINC VSLA, Type, VLKEY DOFSEL, Type, Dof1, Dof2, ..., Dof6 ALLSEL
32
5.5.4 Components 01 02 03 04 CM, Cname, Entity
CMGRP, Aname, Cname1, Cname2, ..., Cname8 CMSEL, Type, Name CMLIST, Name
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.