DIPARTIMENTO DI MECCANICA
POLITECNICO DI TORINO
ANSYS Introduction
Corso di
Progettazione di prodotto e processo con metodi numerici
Prof. Aurelio Somà
ELEMENTI FINITI : Getting Started with ANSYS
The main structure of commercial FINITE ELEMENT CODES can be divided in:
Preprocessor
Solution
Postprocessor
Getting Started with ANSYS
2 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
3 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
The main structure of commercial FINITE ELEMENT CODES can be divided in:
Preprocessor / PREP7
Solution /SOLVE
Postprocessor /POST1 o /POST26
4 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Preprocessor
Building the Model:
Defining Element Types
Defining Element Real Constants
Defining Material Properties
Creating the Model Geometry
Applying Loads and constraints
5 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Building the Model
Defining Element Types
The element type determines:
the degree-of-freedom set (which in turn implies the discipline -
structural, thermal, magnetic, electric, quadrilateral, brick, etc.)
whether the element lies in 2-D or 3-D space.
ANSYS APDL
ELEMENT LIBRARY / ELEMENT ARCHIVE
6 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Building the Model
Defining Element Types
The ANSYS element library contains almost 200 different element types.
Each element type has a unique number and a prefix that identifies the
element category: BEAM4, PLANE77, SOLID96, etc.
The following main element categories for structural applications are
available:
Defining Element Types
BEAM / PIPE
PLANE
SHELL
SOLID
CONTACT
MATRIX – USER DEFINED ELEMENT
7 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Preprocessor archive element LINK1 (2D)
8 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Preprocessor archive element BEAM3 (2D)
9 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Building the Model
Defining Element Types
The definition of the Element Type must be in PREP7, the general preprocessor, to
define element types.
Use the ET family of commands (ET) or their GUI path equivalents
Define the element type by name and give the element a type reference number.
For example, the commands shown below define two element types, BEAM4 and
SHELL63, and assign them type reference numbers 1 and 2 respectively.
ET,1,BEAM4
(for more element information HELP,BEAM4)
ET,2,SHELL63
(for more element information HELP,SHELL63)
This table of type reference number versus element name is called the element type
table. While defining the actual elements, you point to the appropriate type
reference number using the TYPE command
10 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Preprocessor
Building the Model:
Defining Element Types
Defining Element Real Constants
Defining Material Properties
Creating the Model Geometry
Applying Loads and constraints
11 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Building the Model
Defining Element Real Constants I
Element real constants are properties that depend on the element type,
such as cross-sectional properties of a beam element.
For example, real constants for BEAM3, the 2-D beam element, are area
(AREA), moment of inertia (IZZ), height (HEIGHT), shear deflection
constant (SHEARZ), initial strain (ISTRN), and added mass per unit
length (ADDMAS).
Not all element types require real constants, and different elements of the
same type may have different real constant values.
12 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Building the Model
Defining Element Real Constants II
Specify real constants using the R family of commands (R, RMODIF, etc.)
or their equivalent menu paths.
As with element types, each set of real constants has a reference
number, and the table of reference number versus real constant set is
called the real constant table.
While defining the elements, you point to the appropriate real constant
reference number using the REAL command.
13 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Preprocessor
Building the Model:
Defining Element Types
Defining Element Real Constants
Defining Material Properties
Creating the Model Geometry
Applying Loads and constraints
14 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Building the Model
Defining Material Properties I
Most element types require material properties. Depending on the
application, material properties can be linear (see Linear Material
Properties) or nonlinear (see Nonlinear Material Properties).
As with element types and real constants, each set of material properties
has a material reference number.
The table of material reference numbers versus material property sets is
called the material table. Within one analysis, you may have multiple
material property sets (to correspond with multiple materials used in
the model). ANSYS identifies each set with a unique reference
number.
15 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Building the Model
Defining Material Properties II
Linear material properties can be constant or temperature-dependent,
and isotropic or orthotropic. To define constant material properties
(either isotropic or orthotropic), use one of the following:
For example:
MP,EX,1,2E11 ! Young's modulus for material ref. no. 1 is 2E11
MP,DENS,1,7800 ! Density for material ref. no. 1 is 7800
While defining the elements, you point to the appropriate material
reference number using the MAT command.
16 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Preprocessor
Building the Model:
Defining Element Types
Defining Element Real Constants
Defining Material Properties
Creating the Model Geometry
Applying Loads and constraints
17 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Building the Model
Creating the Model Geometry
The model topology generate a finite element model - nodes and
elements - that adequately describes the model geometry.
There are two methods to create the finite element model: solid
modeling and direct generation.
With solid modeling, you describe the geometric shape of your model,
then instruct the ANSYS program to automatically mesh the geometry
with nodes and elements. It is possible to control the size and shape
in the elements that the program creates.
With direct generation, you "manually" define the location of each node
and the connectivity of each element.
18 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Building the Model
Creating the Model Geometry
Figures below shows some sample finite element models:
19 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Preprocessor
Building the Model:
Defining Element Types
Defining Element Real Constants
Defining Material Properties
Creating the Model Geometry
Applying Loads and constraints
20 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Building the Model
Applying Loads and constraints
The word loads as used in ANSYS documentation includes boundary
conditions (constraints, supports, or boundary field specifications) as well
as other externally and internally applied loads. Loads in the ANSYS
program are divided into six categories:
DOF Constraints
Forces
Surface Loads
Body Loads
Inertia Loads
Coupled-field Loads
21 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Example 3 link structure
22 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
The main structure of commercial FINITE ELEMENT CODES can be divided in:
Preprocessor / PREP7
Solution /SOLVE
Postprocessor /POST1 o /POST26
23 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS: Solution
Defining the Analysis Type and Analysis Options
It is possible to choose the analysis type based on the loading conditions
and the response you wish to calculate. For example, if natural
frequencies and mode shapes are to be calculated, you would choose a
modal analysis.
Not all analysis types are valid for all disciplines. Modal analysis, for
example, is not valid for a thermal model. The analysis guide manuals in
the ANSYS documentation set describe the analysis types available for
each discipline and the procedures to do those analyses.
To define the analysis type and analysis options, use the ANTYPE command
24 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS: Solution
Analysis type (defaults to the previously specified analysis type, or to STATIC if
none specified):
STATIC or 0 — Perform a static analysis. Valid for all degrees of freedom
BUCKLE or 1 — Perform a buckling analysis. Implies that a previous static
solution was performed with prestress effects calculated [PSTRES,ON]. Valid
for structural degrees of freedom only.
MODAL or 2 — Perform a modal analysis. Valid for structural and fluid
degrees of freedom.
HARMIC or 3 — Perform a harmonic analysis. Valid for structural, fluid,
magnetic, and electrical degrees of freedom.
TRANS or 4 — Perform a transient analysis. Valid for all degrees of freedom.
SUBSTR or 7 — Perform a substructure analysis. Valid for all degrees of
freedom.
25 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
The main structure of commercial FINITE ELEMENT CODES can be divided in:
Preprocessor / PREP7
Solution /SOLVE
Postprocessor /POST1 o /POST26
26 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS: PostProcessor
Reviewing the Results
After the solution has been calculated, you can use the ANSYS postprocessors to
review the results. Two postprocessors are available: POST1 and POST26.
Use POST1, the general postprocessor, to review results at one substep
(time step) over the entire model or selected portion of the model. The
command to enter POST1 is /POST1 (Main Menu> General Postproc), valid
only at the Begin level. You can obtain contour displays, deformed shapes,
and tabular listings to review and interpret the results of the analysis. POST1
offers many other capabilities, including error estimation, load case
combinations, calculations among results data, and path
Use POST26, the time history postprocessor, to review results at specific
points in the model over all time steps.
27 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Example 3 link structure
Analitycal solution
28 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Example input file for 3 link structure
/PREP7
! Element Type
ET,1,LINK1
! Real constant
R,1,1
! Material Properties
MP,EX,1,1000
! Nodes
N,1,0,0,0
N,2,1,0,0
N,3,0,1,0
! Elements
E,1,3
E,1,2
E,2,3
! Displacements
D,1,ux,0
D,1,uy,0
D,3,ux,0
D,3,uy,0
! Force
F,2,fy,-1
29 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Example Over constrained cantilever with
distributed load
Analitycal solution
30 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Example input file for Over constrained
cantilever with distributed load
! DATI
L=1000
H=10
/PREP7
! Element Type
et,1,beam3
! Real constant
r,1,h*h,h**4/12,h
! Material Properties
mp,ex,1,210000
mp,nuxy,1,0.3
! Nodes
n,1
n,2,L
! Elements
e,1,2
! Displacements
d,1,all
d,2,uy
! Force
sfbeam,1,1,pres,2
31 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Example for a simple beam /truss structure
model with distributed load
32 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Example input file for a simple beam/truss
structure with distributed load
/prep7
! Definizione delle variabili
E=70000 !MPa
nu=0.3 !Poisson
q=10/1000 !N/mm
L=3000 !mm
A1=3000 !mm^2
J1=3.5*10**5 !mm^4
H1=35
A2=615 !mm^2
n_el=10
! Definizione degli elementi che si utilizzeranno nel modello
ET,1,beam3
ET,2,link1
! Definizione delle real costant per ciascun tipo di elemento
! Area, Momento di inerzia, altezza sezione (Trave)
R,11,A1,J1,H1
! Area (Asta)
R,12,A2
!Definizione proprietà del materiale
MP,ex,21,E
MP,nuxy,21,nu
!Definizione dei punti geometrici
K,1,0,0
K,2,L,0
K,3,0,-L
33 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Example input file for a simple beam/truss
structure with distributed load
! Creazione delle linee
L,1,2
! Size di n_el element trave per ogni linea
LESIZE,1,,,n_el
TYPE,1
REAL,11
MAT,21
!Creazione dei nodi e degli elementi sulle linee definite in precedenza
LMESH,1
L,2,3
! Size di 1 element asta per ogni linea
LESIZE,2,,,1
TYPE,2
REAL,12
MAT,21
!Creazione dei nodi e degli elementi sulle linee definite in precedenza
LMESH,2
! Definizione dei vincoli
NSEL,s,loc,x,0
NSEL,r,loc,y,0
D,all,all
NSEL,all
NSEL,s,loc,x,0
NSEL,r,loc,y,-L
D,all,ux,0
D,all,uy,0
NSEL,all
! Definizione dei carichi
ESEL,s,TYPE,,1
SFBEAM,ALL,1,pres,q
ESEL,all
/SOLU
34 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Example for a simple beam /truss structure
model with concentrated load
35 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS : Example input file for a simple beam/truss
structure
/prep7
! Element Type definition
et,1,beam3
! Real Constants definition
r,1,100,10**4/12,10
! Material Properties definition
mp,ex,1,210000
! Model geometry : nodes
n,1
n,2,3800
n,3,400,800
! Model geometry : elements
type,1
real,1
mat,1
e,1,2
e,2,3
! Loads and constraints
f,2,fy,1000
d,1,all
d,2,all
/solu
solve
36 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
DIPARTIMENTO DI MECCANICA
POLITECNICO DI TORINO
ANYS
comandi di uso generale
Corso di
Progettazione di prodotto e processo con metodi numerici
Prof. Aurelio Somà
ELEMENTI FINITI : Getting Started with ANSYS
Attenzione quando inserite dei comandi da un file di input
Si può verificare la correttezza dell’input ad esempio listando i dati
Etlist - lista del tipo degli elementi
Rlist - lista delle costanti reali degli elementi
MPlist - lista delle proprietà del materiale che avete inserito fino a quel momento
38 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Esempio di ALCUNI semplici Comandi di PLOT
NPLOT plot dei soli nodi
EPLOT plot dei soli elementi
KPLOT plot dei soli punti di disegno (KPOINT)
…
Comandi di controllo del plot
/PNUM,node,1 attiva la numerazione nodale
/PNUM,node,0 disattiva la numerazione nodale
39 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS: Solution
Valori di output
Prdisp - lista degli spostamenti
Prrfor - lista reazioni vincolari
PLDISP – plot della deformata
PLDISP ,1 - plot della deformata ed indeformata
40 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici
ELEMENTI FINITI : Getting Started with ANSYS
Getting Started with ANSYS: PostProcessor
/post1
Nelle strutture di travi ed aste 2d e 3d
Ad esempio per tracciare i diagrammi di caratteristiche di sollecitazioni
E’ necessario definire dei parametri leggendo nel database dei risultati
DEFINISCO DEI PARAMETRI UTENTE AD ESEMPIO MOM1 E MOM2
etable, mom1, smisc,6
etable, mom2, smisc,12
PLOT DEL DIAGRAMMA DEI PARAMETRI
plls,mom1,mom2
41 Prof. Aurelio Somà - Ing. [Link]
De Pasquale di prodotto e processo
Progettazione assistita di sistemi biomeccanici
con metodi numerici