prepostfe

213
MME MÀSTER EN MECÀNICA DE MATERIALS I ESTRUCTURES Universitat de Girona PRE AND POST-PROCESS TOOLS IN FINITE ELEMENT ANALYSIS M. Baena, C. Barris, N. Blanco, E.V. González, J.A. Mayugo, J. Renart, D. Trias, A. Turon September 2012 This document can be found at: ftp://amade.udg.edu/mms/PrePostFE/PrePostFE.pdf

Upload: muneer-salim

Post on 21-Jan-2016

47 views

Category:

Documents


3 download

DESCRIPTION

post

TRANSCRIPT

Page 1: PrePostFE

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Universitat de Girona

PRE AND POST-PROCESS TOOLS IN FINITE

ELEMENT ANALYSIS

M. Baena, C. Barris, N. Blanco, E.V. González, J.A. Mayugo, J.

Renart, D. Trias, A. Turon

September 2012

This document can be found at:

ftp://amade.udg.edu/mms/PrePostFE/PrePostFE.pdf

Page 2: PrePostFE
Page 3: PrePostFE

Contents

1 Introduction to Pre and Post-Process programs 1

1.1 Typical structure of the Finite Element programs . . . . . . . . . . . . . . . . . . . . . 1

1.2 Finite element generation, calculation and analysis of a typical mechanical problem 2

1.2.1 Generation of finite element models with the Graphical User Interface (GUI)

of ANSYSTM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.2.2 Generation of ANSYSTM finite element models via commands: APDL . . . . . 6

1.2.3 Generation of ANSYSTM parametrized finite element models . . . . . . . . . . 7

2 Types of finite elements 9

2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

2.2 2D bar/truss elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

2.3 3D bar/truss elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

2.4 2D beam elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

2.5 Plane stress elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

2.6 Plane strain elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

2.7 Shell elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

2.8 Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

3 Geometric modeling and meshing techniques 21

3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

3.2 Direct generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

3.3 Solid Modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

3.4 Assessment of the mesh quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

3.4.1 Connectivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

3.4.2 Avoid elements with high distortions, warping and inadmissible narrow or

wide angles between edges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

3.5 Techniques to Import Models and Geometries . . . . . . . . . . . . . . . . . . . . . . . 44

3.6 Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

4 Boundary conditions 47

4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

4.2 Load application in FEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

4.3 Constrain DOF of FE model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

4.3.1 Constrained displacements and rotations . . . . . . . . . . . . . . . . . . . . . . 56

4.3.2 Symmetry conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

4.3.3 Antisymmetry conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

4.4 Superposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

4.5 Structural analysis with temperature change . . . . . . . . . . . . . . . . . . . . . . . 61

4.6 Loadcases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

4.7 Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

iii

Page 4: PrePostFE

5 Linear elastic material models 67

5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

5.2 One-dimensional elastic properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

5.3 Bi-dimensional and Three-dimensional elastic properties . . . . . . . . . . . . . . . . 68

5.3.1 Isotropic material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

5.3.2 Orthotropic material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

5.3.3 Anisotropic material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

5.4 Element coordinate system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

5.5 Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

6 Postprocessing 77

6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

6.2 General postprocessing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

6.3 Time-history postprocessing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

6.4 Result analysis of combined stresses or strains . . . . . . . . . . . . . . . . . . . . . . 84

6.4.1 Combined strain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

6.4.2 Combined stress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

6.5 Assessment of the mesh and results quality . . . . . . . . . . . . . . . . . . . . . . . . 87

6.5.1 Energy norm to estimate the error of the elements . . . . . . . . . . . . . . . . 87

6.6 Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

7 Coupling and constrain equations. Submodelling 95

7.1 Coupling and constrain equations. Introductory concepts . . . . . . . . . . . . . . . . 95

7.1.1 Coupled DOF sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

7.1.2 Constraint equations of DOF . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

7.2 Submodelling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

7.2.1 The global model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

7.2.2 The submodel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

7.2.3 Submodelling procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

7.3 Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

8 Nonlinear analysis. Geometric nonlinearities 113

8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

8.2 Geometric nonlinear behaviour due to large displacements . . . . . . . . . . . . . . . 114

8.3 Buckling analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117

8.3.1 Eigenvalue buckling analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117

8.3.2 Nonlinear buckling analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

8.4 Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

9 Material nonlinearities 127

9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

9.2 Plasticity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

9.2.1 Bilinear Kinematic Plasticity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

9.2.2 Multiple-point Isotropic Plasticity . . . . . . . . . . . . . . . . . . . . . . . . . . 132

9.3 Two parameter Mooney-Rivlin Hyperelastic . . . . . . . . . . . . . . . . . . . . . . . . 135

9.4 Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

Page 5: PrePostFE

10Contact 141

10.1Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

10.2Frictional Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147

10.3Glue-type or assembly contact for dense-to-coarse mesh transition . . . . . . . . . . . 151

10.4Proposed Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154

11Heat transfer 155

11.1Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

11.2Heat transfer mechanisms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156

11.2.1Heat conduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156

11.2.2Convection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

11.2.3Radiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

11.3Thermal transient analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163

11.4Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165

12Modal Analysis 169

12.1Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169

12.2Finite element models: lumped mass . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170

12.2.1Single lumped mass . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170

12.2.2Multiple lumped mass . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

12.3Finite element models: continuous distributed mass . . . . . . . . . . . . . . . . . . . 175

12.4Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

13Introduction to ANSYS Workbench 179

13.1Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

13.2ANSYS Workbench Design Modeler . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

13.3ANSYS Workbench Mechanical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

13.4Basic review of results and post-processing . . . . . . . . . . . . . . . . . . . . . . . . 185

14Fluid-Structure Interaction 189

14.1ANSYS Workbench FSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189

14.2ANSYS Workbench CFX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

14.2.1Example 14.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

14.3FSI: CFX and Static Structural . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198

14.3.1Example 14.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198

14.4Suggested problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200

Page 6: PrePostFE
Page 7: PrePostFE

Chapter 1

Introduction to Pre and Post-Process

programs

1.1 Typical structure of the Finite Element programs

Typically, the Finite Element programs are divided in three parts, the Pre-processor module, the

Solution module, and the Post-processor module. In the Pre-processor, the geometry, element

type, material properties, and discretisation of the problem (mesh) is achieved. Once all of the

previous are defined, the analysis type, the boundary conditions, the assembly of the stiffness

matrices, and the solution of the system of the equations is performed in the Solution module.

Finally, once the problem has been solved, the Post-processor module helps the user to analyze

the results, plotting stress, strains, displacement or reaction forces at different load levels, for

example.

Figure 1.1: Structure of a FEM program.

It should be mentioned here that different softwares can be used for the three different parts.

For example, a specific software can be used for preprocessing the problem, and another one for

solving the problem and postprocessing the results. In most of the commercial FE programs all

the Pre-Process, Solution and Post-Process can be done either directly by commands or using the

Graphical User Interphase (GUI). Although the latter is more user-friendly, it is important to know

how to use the different commands and command scripts as it results in a much more flexible

way to use these programs. A very powerful tool using command scripts is the parametrization

of the model, which allows the modification of the model in a very easy way.

1

Page 8: PrePostFE

2 Pre and post-process tools in finite element analysis

1.2 Finite element generation, calculation and analysis of a typi-

cal mechanical problem

The common procedures for the mechanical simulation and analysis with finite elements using

ANSYSTM are described in the following examples.

Reminder: Units

Finite element analysis are dimensionless, so before starting to create the model it is conve-

nient to establish which dimensions are to be used and be coherent. If the material properties

to be used are expressed in N/mm2, the geometric units should be in mm while forces should

be expressed in N.

1.2.1 Generation of finite element models with the Graphical User Interface

(GUI) of ANSYSTM

Example 1.1. Use the ANSYSTM graphical environment to simulate and analyse the cantilever

beam shown in Figure 1.2. The beam is clamped on its left end, while on the right end a constant

1 mm displacement is imposed. The cross-section of the beam is rectangular and constant along

the span. The span of the beam is 2 m, its base is 200 mm and its height is 100 mm. The material

is steel, E = 210 GPa and ν = 0.3.

In the post-process, use the graphical interface to plot the strain and stress distributions in

the beam, show the reactions forces and represent the deformed shape of the beam. Obtain a

list of the reaction forces, the stress variation with the vertical coordinate by defining a Path-plot

and represent the temporal variation of the stress in a point with History-plot.

Figure 1.2: Cantilever beam with an imposed displacement.

Solution to Example 1.1. The ANSYSTM Environment for ANSYSTM 13.0 contains 2 windows:

the Main Window and an Output Window. Within the Main Window are 5 divisions:

1. Utility Menu. The Utility Menu contains functions that are available throughout the

ANSYSTM session, such as file controls, selections, graphic controls and parameters.

2. Input Line. The Input Line shows program prompt messages and allows you to type in

commands directly.

3. Toolbar. The Toolbar contains push buttons that execute commonly used ANSYSTM com-

mands. More push buttons can be added if desired.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 9: PrePostFE

Chapter 1. Introduction to Pre and Post-Process programs 3

4. Main Menu. The Main Menu contains the primary ANSYSTM functions, organized by

preprocessor, solution, general postprocessor, design optimizer. It is from this menu that

the vast majority of modelling commands are issued.

5. Graphics Window. The Graphic Window is where graphics are shown and graphical pick-

ing can be made. It is here where you will graphically view the model in its various stages

of construction and the ensuing results from the analysis.

Graphics Window

Main Menu

Tool Bar

Input Line Utility Menu

Figure 1.3: ANSYSTM 13.0 interface.

On the other hand, the Output Window shows text output from the program, such as listing

of data etc. It is usually positioned behind the main window and can be put to the front if

necessary.

Before starting with the generation of the model, it is important to know how to locate and

obtain help on the different commands within ANSYSTM . The Help for the program can be

started within the Graphic Window by different procedures. The first option is by clicking on the

Help button in the Utility Menu and selecting Help Topics. The second option is by clicking on

the question mark button next to the Input Line. The last option, only valid to obtain help on

a specific ANSYSTM command, consists on typing help,XXXXX on the Input Line, where XXXXX

is the name of the specific command. Using one of the three options, a new window appears

with four different tabs. In the first tab, Contents, all the information about the program has

been arranged in accordance to different subjects. Here you can find specific help for different

commands, elements, analysis types, theory, tutorials and examples. In the second tab, Index,

you can find specific help for any command, element or analysis types arranged in alphabetical

order. In the third tab, you can search all the relative information within ANSYSTM (theory,

command structure, analysis types, examples, etc.) related to a specific keyword. In the last tab,

Favourites, you can store all the information about frequently consulted or important Help items

you wish to locate easily.

Once you have identified the different parts of the ANSYSTM environment, start with the

creation of the new model.

1. First, the model has to be identified with the simulated problem. Change the name of the

model to PrePostFE_Ex101 (File>Change Jobname).

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 10: PrePostFE

4 Pre and post-process tools in finite element analysis

2. Save the generated model. The menu command File>Save As Jobname.db saves the model

as PrePostFE_Ex101.db.

3. Start with the preprocessor module (»PreProcessor in the Main Menu).

• Define the type of the element you are going to use throughout the analysis: »Pre-

processor>Element Type>Add/Edit/Delete>Add...>Solid>Brick 8node 185. ANSYSTM

13.0 recommends the use of the current-technology SOLID185 element instead of

SOLID45. However, for the SOLID185 element to have the same behaviour as SOLID45,

the element technology should be stated to be "simplified enhanced element formula-

tion", which stands as keyoption(2)=3. Edit the options of the element and choose this

property. Spend a while looking at the different type of elements available in ANSYSTM

13.0

• Define the material properties of the model: »Preprocessor>Material Props>Material

Models>Structural>Linear>Elastic>Isotropic. Enter the required material properties

for the model, Young modulus and Poisson ratio, using the appropriate units. Again,

take a while to examine the different material models available.

• Generate the geometry: »Preprocessor>Modelling>Create>Volumes>Block>By Di-

mensions. Note that on the top left corner of the prompt there is the name of the

associated command, [BLOCK], and a short description. Use one of the three HELP

options to obtain further information on this command. Enter the dimensions of the

model in order to align the span of the beam with x-axis. Use the graphical tools on

the right of the Graphic Window to obtain different views of the created geometry.

• Mesh the model. First define the controls to guide the mesh, for example, 40 divisions

in X-direction, 4 in Y direction and 8 in Z direction. Open the mesh module »Prepro-

cessor>Meshing>MeshTool and apply the mesh controls to the model with the option

Size Controls>Lines>Set and then NDIV equal to 40, 4, 8 for the corresponding lines.

Define the shape of the element to be hexahedral Hex. Then click on the Mesh button

to select the block and mesh it (Mesh>Volumes>Mapped>4 to 6 sided ).

4. Continue with the solution module, »Solution in the Main Menu.

• Define the type of the analysis: »Solution>Analysis Type>New Analysis>Static.

• Define the parameters of the analysis »Solution>Analysis Type>Sol’n Controls. Time

at the end of load step=1, Number of substeps=10 and Write Items to Results file>

Frequency>Write every Nth substep. With these choices the computation will be per-

formed in 10 substeps, and the results file will be updated every Nth substep.

• After that, define the boundary conditions of the model. Apply a 1mm vertical displace-

ment at the end of the beam »Solution>Define Loads>Apply> Structural> Displace-

ment>On Lines. Make sure the displacement is applied in the correct direction. In

order to select the appropriate lines, it might result convenient to plot only the lines in

the model. In the Utility Menu »Plot>Lines. To display the number of the lines »PlotC-

trls>Numbering...>LINE Line numbers. The same procedure can be used for areas,

volumes, nodes, elements, etc. Clamp the other side of the beam »Solution>Define

Loads>Apply>Structural>Displacement>On Areas selecting ALL DOF.

• Finally, solve the model »Solution>Solve>CurrentLS

5. Continue with the postprocess: General Postproc in the Main Menu.

• Plot the deformed shape: »General Postproc>Plot Results>Deformed Shape

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 11: PrePostFE

Chapter 1. Introduction to Pre and Post-Process programs 5

• Plot Stress or Strain quantities: »General Postproc>Plot Results>Contour Plot

• List Reactions: »General Postproc>List Results>Reaction Solu

• List any nodal quantity: »General Postproc>List Results>Nodal Solution. Repeat the

previous instructions for another substep. To do that you must move to another substep

with the command »General Postproc>Read Results>By Pick

Reminder: Results Viewer

Alternatively, you can open the Results viewer tool »General Postproc>Results Viewer to plot

contour plots, list nodal or element quantities, easily change substeps and animate the results

among many other utilities.

Figure 1.4: Contour plot of stresses in X-direction.

6. Create a PATH PLOT. You can define a path through the mesh and then plot a quantity on

that PATH. To do this follow the next instructions.

• Define the PATH, »General Postproc>Path Operations>Define Path>By nodes, select-

ing a line of nodes. For example, select the nodes on the vertical edge of the clamped

area and name it.

• Plot the PATH:»General Postproc>Path Operations>Plot Paths.

• Create the path plot mapping the desired quantity onto the pathGeneral Postproc>Path

Operations>Map onto Path>Stress>X-direction SX.

• Plot the path onto the geometry »General Postproc>Path Operations>Plot Path Item>On

Graph>SX

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 12: PrePostFE

6 Pre and post-process tools in finite element analysis

7. HISTORY PLOT. Plot the evolution of a quantity on a node/element with step time or another

quantity.

• Open the Time History Postprocess tool: »TimeHist Postpro.

• Add Time-History Variable, for exampleNodal Solution>Stress>X-Component of Stress.

• Select the desired node.

• Plot the Time-History variable.

• As an exercise plot the stress-strain evolution of a selected node.

1.2.2 Generation of ANSYSTM finite element models via commands: APDL

In ANSYSTM the generation, solving and analysis of the results can be done via commands using

an specific programming language called ANSYS Parametric Design Language (APDL). Using

this language the finite models can be defined as a sequence of commands in an external file,

which results to be very convenient for execution and modification of the models.

Example 1.2. Generate, simulate and analyse the model for the beam presented in Ex. 1.1 by

means of a command file.

Solution to Example 1.2. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext or just use copy and paste.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Cantilever beam

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SOLID185 !element type #1: SOLID185 (3 DoF)

KEYOPT,1,2,3 !element #1: keyoption 2=3

MP,EX,1,210000 !Young’s modulus for material #1

MP,NUXY,1,0.3 !Poisson modulus for material #1

BLOCK,0,2000,0,100,0,200 !create a solid of 2mx100mmx200mm

LESIZE,5,,,40 !40 divisions in line 5 (2m)

LESIZE,6,,,4 !4 division in line 6 (100mm)

LESIZE,10,,,8 !8 divisions in line 10 (200mm)

MSHAPE,0,3D !hexaedral-shape: Element shape to be used for meshing

VMESH,1 !mesh volume

FINISH !end of PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

ANTYPE,0 !static analysis

NSUBST,10,0,0 !perform the analysis in 10 sub-steps

OUTRES,ALL,1 !write results for each sub-step

TIME,1 !end time of the analysis

DL,10,,UY,-1 !applied 1mm displacement in vertical direction at x=2000mm.

!bottom line of the area

DA,5,ALL !clamped area at x=0

SOLVE !solve the current load case

FINISH !end of the SOLUTION MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T1/PrePostFE_Ex102.dat

The ANSYSTM command sequence for postprocessing this example is listed below.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 13: PrePostFE

Chapter 1. Introduction to Pre and Post-Process programs 7

/POST1 !start Post-Processor module

PLDISP,1 !plot the deformed shape

PLESOL,S,EQV,0,1. !contour plot of Von Mises stress

PLESOL,S,X,0,1. !contour plot of stress in X-direction

PLESOL,EPEL,X,0,1. !contour plot of strain in X-direction

PLESOL,EPEL,1,0,1. !contour plot of principal strain

PRRSOL !list of reaction forces

PATH,cami,2,1,1 !definition of PATH "cami"

PPATH,1,414 !start node on PATH "cami"

PPATH,2,708 !end node on PATH "cami"

/PBC,PATH,1 !show path

/REPLOT

PDEF,defcami,EPEL,X,AVG !project x-strain on path, name it ’defcami’

PLPATH,defcami !plot defined "defcami"

/POST26 !history plot module

ANSOL,2,866,EPEL,X,EPELX_2 !create evolution of X-strain at node 866

PLVAR,2 !plot x-strain evolution

PRVAR,2 !list x-strain evolution

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T1/PrePostFE_Ex102post.dat

1.2.3 Generation of ANSYSTM parametrized finite element models

Example 1.3. Modify the input file generated in Ex.1.2 to parametrize the geometry, loading

and material properties of the model.

Solution to Example 1.3. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext. For post-processing the command sequence

is the same as in the previous example.

Hint 1: Parameter definition in ANSYSTM

Basically, there are two different ways to define parameters in ANSYSTM scripts:

• Using the command *SET followed by the name and value for the parameter

*SET,L,2000 (defines the parameter L with a value of 2000)

• Directly defining the parameter and its value

H=100 (defines the parameter H with a value of 100)

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Parametrized cantilever beam

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

H=100 !beam height in mm

L=2000 !beam span in mm

B=200 !beam base in mm

Young=210000 !Young modulus in MPa

Pois=0.3 !Poisson

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 14: PrePostFE

8 Pre and post-process tools in finite element analysis

ndiv=L/H*2 !number of divisions

ET,1,SOLID185 !element type #1: SOLID185 (3 DoF)

KEYOPT,1,2,3 !element #1: keyoption 2=3

MP,EX,1,Young !Young’s modulus for material #1

MP,NUXY,1,Pois !Poisson modulus for material #1

BLOCK,0,L,0,H,0,B !create a solid block

LESIZE,5,,,ndiv !divisions in line 5

LESIZE,6,,,4 !4 division in line 6

LESIZE,10,,,8 !8 divisions in line 10

MSHAPE,0,3D !hexaedral-shape: Element shape to be used for meshing

VMESH,1 !mesh volume

FINISH !end PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

ANTYPE,0 !static analysis

NSUBST,10,0,0 !perform the analysis in 10 sub-steps

OUTRES,ALL,1 !write results for each sub-step

TIME,1 !end time of the analysis

DL,10,,UY,-1 !applied 1mm displacement in vertical direction at x=L.

!bottom line of the area

DA,5,ALL !clamped area at x=0

SOLVE !solve the current load case

FINISH !end SOLUTION MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T1/PrePostFE_Ex103.dat

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 15: PrePostFE

Chapter 2

Types of finite elements

2.1 Introduction

Finite element programs usually have an element library that contains different element types.

In addition, there are several different physical problems that can be modeled and simulated by

means of the finite element method and every field of application needs a different element type.

For instance, the type of finite element used to simulate and obtain displacements and stresses

of the beam in Fig. 1.2 cannot be used to simulate and obtain the gradients of temperature in

the same beam when a heat focus is acting on the top surface. The element type determines the

element formulation used, the degrees of freedom, interpolation functions, wheter the element

is 2D or 3D, etc. Thus, before starting the simulation of any real problem with finite elements it

is necessary to stablish the nature of the problem and determine the type of finite elements that

fit the simulation.

In this course, most of the analyses and simulations will be of structural nature. Table 2.1

summarises some of the ANSYSTM structural elements that are more commonly used.

9

Page 16: PrePostFE

10 Pre and post-process tools in finite element analysis

Element nodes DOFs Element description Element Order

Linear

LINK1 2 ux uy line bar/truss, 2D space linear

LINK8 2 ux uy uz line bar/truss, 3D space linear

LINK180 2 ux uy uz line bar/truss, 3D space linear

BEAM3 2 ux uy θz line beam in 2D space linear

BEAM4/44 2 ux uy uz θx θy θz line beam in 3D space linear

BEAM188 2 ux uy uz θx θy θz ω Timoshenko beam (includes

shear deformation)

linear(2 nodes)/

quadratic(2+1 nodes) /

cubic (2+2 nodes)

BEAM189 3 ux uy uz θx θy θz ω 3-node quadratic version of

BEAM188

quadratic

2D Solid

PLANE42 4 ux uy solid 4-node quadrilateral in

2D space

linear

PLANE82 8 ux uy solid 8-node quadrilateral in

2D space

quadratic

PLANE182 4 ux uy Similar to PLANE42 linear

PLANE183 8 ux uy Similar to PLANE82 quadratic

3D Solid

SOLID45 8 ux uy uz Basic linear brick. 8-node hex-

ahedral 3D space

linear

SOLID95 20 ux uy uz 20-node version of SOLID45 quadratic

SOLID92 8 ux uy uz 10-node tetrahedral 3D space quadratic

SOLID185 8 ux uy uz Similar to SOLID45 linear

SOLID186 20 ux uy uz Similar to SOLID85 quadratic

3D Shell

SHELL63 4 ux uy uz θx θy θz shell 4-node quadrilateral in

3D space

linear

SHELL93 8 ux uy uz θx θy θz shell 8-node quadrilateral in

3D space

quadratic

SHELL91 4 ux uy uz θx θy θz nonlinear layered shell 4-node

quadrilateral in 3D space

linear

SHELL99 4 ux uy uz θx θy θz linear layered shell 4-node

quadrilateral in 3D space

linear

SHELL181 4 ux uy uz θx θy θz Similar to SHELL63 linear

Table 2.1: Some linear structural elements available in ANSYSTM . Try to stick with the 18x series

of elements when possible because they incorporate the latest technology.

Each element type has different options. For example, the planar solid element has an option

to choose between plane strain and plane stress. On the other hand, some elements require the

determination of real constants. These are properties that depend on the element type, such as

cross-sectional properties of a beam, the ply sequence in a laminated shell element, etc.

In the following sections, different structural problems are modelled using one of the suitable

finite element types in order to illustrate the selection of the most appropriate finite element for

each problem.

2.2 2D bar/truss elements

Example 2.1. Compute the maximum vertical displacement in the 2D overhead hoist repre-

sented in Figure 2.1, where P = 100 kN, b = 10 cm, h = 20 cm, t = 2 mm, L = 3 m, and a = 1.5 m.

The material of the trusses is linear elastic with E = 210 GPa and ν = 0.3. Use TRUSS elements.

Solution to Example 2.1. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Overhead hoist, 2D truss

/PREP7 !start PRE-PROCESSOR MODULE

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 17: PrePostFE

Chapter 2. Types of finite elements 11

Figure 2.1: Overhead hoist.

!Parameters

P=100000 !applied load in N

b=100 !section base in mm

h=200 !section height in mm

t=2 !section thickness in mm

Ll=3000 !span in mm

a=1500 !hoist height in mm

S=(b*h)-(b-2*t)*(h-2*t) !section in mm

ET,1,LINK180 !element type #180: 2D/3D truss (T-C)

MP,EX,1,210000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson modulus for material #1

R,1,S !real constant #1, element section

!Geometry

K,1,0,0,0 !keypoint, number and coordinates (x,y,z)

K,2,Ll,0,0

K,3,2*Ll,0,0

K,4,Ll/2,a,0

K,5,3*Ll/2,a,0

L,1,2,1 !line, initial and final keypoint and divisions

L,2,3,1

L,3,5,1

L,4,5,1

L,1,4,1

L,2,4,1

L,2,5,1

LMESH,1,7,1 !mesh from line 1 to 7 any i_th line

FINISH

/SOLU !start SOLUTION MODULE

!Boundary and load conditions

DK,1,UX !displacement x for keypoint 1

DK,1,UY

DK,3,UY

FK,2,FY,-P !concentrated y-load keypoint 2, value -P

FK,4,FY,-P

FK,5,FY,-P

/PBC,all !to show BC’s when solve

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !deformed shape

PRNSOL,U,Y !list y-displacement

ETABLE,STAXIL,LS,1 !obtain axial stress

PLETAB,STAXIL !plot axial stress

PRETAB,STAXIL !list axial stress

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T2/PrePostFE_Ex201.dat

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 18: PrePostFE

12 Pre and post-process tools in finite element analysis

Observe the distribution of the axial stress in the different bars and how this, as expected, is

uniform for every particular element. Try to plot the different components of the stress using the

Post-Processor menu. Note that the value for all the components in all the elements is zero. The

only way to obtain the axial stress is by using the ETABLE command. Use the program help for

the LINK180 element and ETABLE command to understand how they work.

2.3 3D bar/truss elements

Example 2.2. The pin-articulated structure shown in Figure 2.2 is used to support a tank con-

taining 1 tone of water. All the structural elements are hollow-circular rods with an exterior

diameter D = 30 mm and thickness t = 2.5 mm. All the rods are made of steel, E = 210 GPa and

ν = 0.3. The geometry of the structure is given by H = 5 m and B = 4 m and L = 6 m. Generate

the input file to model the structure with ANSYSTM . For the simulation consider an horizontal

wind on the tank resulting in two horizontal forces in the upper part of the structure: FB = 5000

N and FL = 4000 N.

Figure 2.2: Pin-articulated structure supporting a tank for fluids.

Solution to Example 2.2. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Structure for fluid tank, 3D truss

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

B=4000 !base in mm

L=6000 !width in mm

H=5000 !height in mm

t=2.5 !thickness in mm

D=30 !outer diameter in mm

W=10000 !weigth in N

FB=5000 !horitzontal force base in N

FL=4000 !horitzontal force width in N

PI=acos(0)*2 !pi

D1=D-(2*t) !internal diameter

A=(PI*(D*D-D1*D1)/4) !rod area

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 19: PrePostFE

Chapter 2. Types of finite elements 13

W1=W/4 !loads per upper node

FB1=FB/4

FL1=FL/4

ET,1,LINK180 !element type #1: 2D/3D truss (T-C)

MP,EX,1,210000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson modulus for material #1

R,1,A !real constant #1, element section

!Geometry

K,1,0,0,0 !keypoint, number and coordinates

K,2,B,0,0

K,3,0,H,0

K,4,B,H,0

KGEN,2,ALL,,,,,L,4,1 !generate-copy all keypoints, disp. Z=L, increment number=4

L,1,3,1 !line, initial and final keypoint and divisions

L,3,4,1

L,2,4,1

L,1,4,1

L,2,3,1

L,5,7,1

L,7,8,1

L,6,8,1

L,5,8,1

L,6,7,1

L,4,8,1

L,6,4,1

L,2,8,1

L,3,7,1

L,1,7,1

L,3,5,1

LMESH,ALL !mesh all lines

FINISH

/SOLU !start SOLUTION MODULE

!Boundary and load conditions

NSEL,S,LOC,Y,0 !select nodes located y=0

D,ALL,ALL !fix all DOF of all selected nodes

NSEL,ALL !select all model nodes

NSEL,S,LOC,Y,H !select nodes located y=H

F,ALL,FX,FB1 !apply x-load all selected nodes

F,ALL,FY,-W1

F,ALL,FZ,FL1

NSEL,ALL

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !deformed shape

PRNSOL,U,COMP !list all displacements and sum

ETABLE,STAXIL,LS,1 !obtain axial stress

PLETAB,STAXIL !plot axial stress

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T2/PrePostFE_Ex202.dat

Observe that in this case the model has to take into account nodes of the bars can be displaced

in the three directions of the space. Thus, a 3D element is required.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 20: PrePostFE

14 Pre and post-process tools in finite element analysis

2.4 2D beam elements

Example 2.3. Compute the maximum vertical displacement in the 2D overhead hoist repre-

sented in Figure 2.3, where P = 100 kN, q = 100 N/mm, b = 10 cm, h = 20 cm, t = 2 mm, L = 3

m, and a = 1.5 m. The material of the beams is linear elastic with E = 210 GPa and ν = 0.3. Use

BEAM elements. Plot the diagram of internal moments of each beam. Compare the results with

those obtained in Ex. 2.1.

Figure 2.3: Overhead hoist with bending loads.

Solution to Example 2.3. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Overhead hoist, 2D beam

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

P=100000 !applied load in N

q=100 !distribuited load N/mm

b=100 !section base in mm

h=200 !section height in mm

t=2 !section thickness in mm

Ll=3000 !span in mm

a=1500 !hoist height in mm

ET,1,BEAM188 !element type #1: BEAM188 (6 DoF)

KEYOPT,1,3,3 !element #1 keyoption 3=3 (cubic shape function)

MP,EX,1,210000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson modulus for material #1

SECTYPE,1,BEAM,HREC !Beam hollow rectangular section type for material #1

SECOFFSET,CENT !section centered (offset=0)

SECDATA,h,b,t,t,t,t !section data, with base, height and four lateral thickness

!Geometry

K,1,0,0,0 !keypoint, number and coordinates

K,2,Ll,0,0

K,3,2*Ll,0,0

K,4,Ll/2,a,0

K,5,3*Ll/2,a,0

L,1,2,10 !line, initial and final keypoint and divisions

L,2,3,10

L,3,5,10

L,4,5,10

L,1,4,10

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 21: PrePostFE

Chapter 2. Types of finite elements 15

L,2,4,10

L,2,5,10

LMESH,1,7,1 !mesh from line 1 to 7 any i_th line

FINISH

/SOLU !start SOLUTION MODULE

!Boundary and load conditions

DK,1,UX !displacement x for keypoint 1

DK,1,UY !displacement y for keypoint 1

DK,1,UZ !displacement z for keypoint 1

DK,1,ROTX !rotations x for keypoint 1

DK,1,ROTY !rotations y for keypoint 1

DK,3,UY !displacement y for keypoint 3

DK,3,UZ !displacement z for keypoint 3

DK,3,ROTX !rotations x for keypoint 3

DK,3,ROTY !rotations y for keypoint 3

FK,2,FY,-P !concentrated y-load keypoint 2, value -P

FK,4,FY,-P

FK,5,FY,-P

LSEL,S,,,4 !select line 4 (top line)

ESLL,S !select attached elements to line

SFBEAM,ALL,2,PRES,q !apply pressure on face 2 (y-normal direction)

ESEL,ALL !select all elements

/PBC,all !to show BC’s when solve

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !deformed shape

PRNSOL,U,Y !list y-displacement

ETABLE,AXI,SMISC,1 !table of axial force FX of node i

ETABLE,AXJ,SMISC,14 !table of axial force FX of node j

PLLS,AXI,AXJ,1,0 !diagram of axial forces FX, scale 1, undeformed

ETABLE,TAI,SMISC,6 !table of section shear force SFY of node i

ETABLE,TAJ,SMISC,19

PLLS,TAI,TAJ,1,0 !diagram of section shear force SFY, scale 1, undeformed

ETABLE,MOI,SMISC,3 !table of bending moment MZ of node i

ETABLE,MOJ,SMISC,16

PLLS,MOI,MOJ,1,0 !diagram of bending moment MZ, scale 1, undeformed

/ESHAPE,1,1 !display real initial shape elements

PLNSOL,S,X

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T2/PrePostFE_Ex203.dat

Observe that in this case the elements are subjected to bending moment, as indicated in the

moment diagram. Use the program help for the BEAM188 element and ETABLE command to

understand how they work.

2.5 Plane stress elements

Example 2.4. Generate the ANSYSTM input file to model and simulate the stress concentration

coupon represented in Figure 2.4. The geometry of the coupon, which is symmetric, is given by

H = 40 mm, h = 20 mm, B = 100 mm and b = 40 mm. The thickness of the coupon, t = 2 mm, is

constant. An horizontal displacement is applied on the right vertical edge, as shown in the figure,

where u = 5×10−2 mm. The material of the coupon is steel, E = 210 GPa and ν = 0.3.

Solution to Example 2.4. The ANSYSTM command sequence for this example is listed below.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 22: PrePostFE

16 Pre and post-process tools in finite element analysis

Figure 2.4: Stress concentration coupon.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Plane stress coupon

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

B=100 !base in mm

B1=40 !base triangle in mm

H=40 !width in mm

H1=20 !small widht in mm

t=2 !thickness in mm

u=0.05 !displacement in mm

ET,1,PLANE182 !element type #1: plane solid

KEYOPT,1,1,3 !element #1, keyopt 1=3, simplified enhanced strain formulation

KEYOPT,1,3,3 !element #1, keyopt 3=3, plane stress w/ thickness

R,1,t !real constant #1, element thickness

MP,EX,1,210000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson modulus for material #1

!Geometry

K,1,0,0 !keypoint, number and coordinates

K,2,(B-B1)/2,0

K,3,B/2,(H-H1)/2

K,4,((B-B1)/2)+B1,0

K,5,B,0

K,6,0,H

K,7,(B-B1)/2,H

K,8,B/2,((H-H1)/2)+H1

K,9,((B-B1)/2)+B1,H

K,10,B,H

L,1,2,15 !line, initial and final keypoint and divisions

L,2,3,10

L,3,4,10

L,4,5,15

L,6,7,15

L,7,8,10

L,8,9,10

L,9,10,15

L,1,6,20

L,5,10,20

L,2,7,20

L,3,8,20

L,4,9,20

AL,1,11,5,9 !define areas by lines

AL,2,12,6,11

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 23: PrePostFE

Chapter 2. Types of finite elements 17

AL,3,13,7,12

AL,4,10,8,13

AGLUE,ALL !sum all areas

AMESH,ALL !mesh area

FINISH

/SOLU !start SOLUTION MODULE

!Boundary and load conditions

NSEL,S,LOC,X,0 !select left nodes

D,ALL,UX !fix x-displacement

NSEL,S,LOC,X,0 !select left bottom node

NSEL,R,LOC,Y,0

D,ALL,UY !fix y-displacement

NSEL,S,LOC,X,B !select right nodes

D,ALL,UX,u !apply displacement

NSEL,ALL !select all nodes

/PBC,all !to show BC’s when solve

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !deformed shape

PLNSOL,S,EQV !Von Mises stress

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T2/PrePostFE_Ex204.dat

Although the thickness of the coupon has been considered in the model (R,1,t), this has

no influence in the results as the displacement is applied. Check the help about the element

PLANE182 to see how the element can be defined without considering the thickness of the

coupon. Note that in this case, if a load was applied instead of a displacement, the load should

be normalized by the thickness of the coupon.

2.6 Plane strain elements

Example 2.5. Generate the ANSYSTM input file to model and simulate the central cross-section

of the rectangular pressure conduct represented in Figure 2.5. Consider that the material of the

conduct is made of an homogeneous, linear and isotropic plastic with E = 27 GPa and ν = 0.25.

The geometry of the element is given by H = 75 mm and B = 50 mm. The thickness of the section

is t = 5 mm. The pressure in the interior of the conduct is p = 10 kg/cm2.

Figure 2.5: Cross-section of the hydraulic dam.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 24: PrePostFE

18 Pre and post-process tools in finite element analysis

Solution to Example 2.5. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Plane strain square pipe

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

B=50 !base in mm

H=75 !height in mm

t=5 !thickness in mm

p=1 !pressure in N/mm2

ET,1,PLANE182 !element type #1: plane solid

KEYOPT,1,1,3 !element #1, keyopt 1=3, simplified enhanced strain formulation

KEYOPT,1,3,2 !element #1, keyopt 3=3, plane strain

MP,EX,1,27000 !Young’s modulus for material #1

MP,PRXY,1,0.25 !Poisson modulus for material #1

!Geometry

K,1,0,0 !keypoint, number and coordinates

K,2,B,0

K,3,B,H

K,4,0,H

K,5,t,t

K,6,B-t,t

K,7,B-t,H-t

K,8,t,H-t

L,1,2,20 !line, initial and final keypoint and divisions

L,2,3,30

L,3,4,20

L,4,1,30

L,5,6,20

L,6,7,30

L,7,8,20

L,8,5,30

L,1,5,4

L,2,6,4

L,3,7,4

L,4,8,4

AL,1,5,9,10 !define areas by lines

AL,2,6,10,11

AL,3,7,11,12

AL,4,8,9,12

AGLUE,ALL !sum all areas

AMESH,ALL !mesh area

FINISH

/SOLU !start SOLUTION MODULE

!Boundary and load conditions

NSEL,S,LOC,X,0 !select left nodes

NSEL,A,LOC,Y,0 !add bottom nodes to selection

D,ALL,ALL !fix displacement

LSEL,S,LINE,,5,8 !select lines 5 to 8

NSLL,S,1 !select all nodes on lines

SF,ALL,PRES,p !apply pressure on all selected nodes

NSEL,ALL

/PBC,ALL !to show BC’s when solve

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !deformed shape

PLNSOL,S,EQV !Von Mises stress

This file can be found at:

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 25: PrePostFE

Chapter 2. Types of finite elements 19

ftp://amade.udg.edu/mms/PrePostFE/input_files/T2/PrePostFE_Ex205.dat

Although the length of the conduct is not known, this parameter is not required for the simu-

lation as plane strain condition is considered.

2.7 Shell elements

Example 2.6. Write the ANSYSTM or ABAQUSTM input file to model a simply supported rectan-

gular plate with dimensions L = B = 1 m and thickness t = 10 mm. The material of the plate is

steel and it is loaded with a uniform pressure p = 0.1 N/mm2. Obtain the stress distribution on

the x-direction at bottom, middle and top locations in the thickness direction.

Solution to Example 2.6. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, 3-D simply supported shell plate

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

B=1000 !base in mm

L=1000 !width in mm

t=10 !thickness in mm

p=0.1 !pressure in N/mm2

ET,1,SHELL181 !element type #1: shell

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration incompatible modes)

KEYOPT,1,8,2 !element #1, keyopt 8=2, store data top, bottom and mid surfaces

SECTYPE,1,SHELL !section #1 = shell

SECDATA,t !thickness

MP,EX,1,27000 !Young’s modulus for material #1

MP,PRXY,1,0.25 !Poisson modulus for material #1

!Geometry

K,1,0,0 !keypoint, number and coordinates

K,2,B,0

K,3,0,L

K,4,B,L

L,1,2,40 !line, initial and final keypoint and divisions

L,1,3,40

L,3,4,40

L,2,4,40

AL,ALL !define areas by lines

AMESH,ALL !mesh area

FINISH

/SOLU !start SOLUTION MODULE

!Boundary and load conditions

NSEL,S,LOC,X,B/2 !select central node

NSEL,R,LOC,Y,L/2

D,ALL,UX,,,,,UY,ROTX,ROTY,ROTZ !fix DOF’s

NSEL,S,LOC,X,0

NSEL,R,LOC,Y,L/2

D,ALL,UY

NSEL,S,LOC,X,0

D,ALL,UZ

NSEL,S,LOC,X,B

D,ALL,UZ

NSEL,S,LOC,Y,0

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 26: PrePostFE

20 Pre and post-process tools in finite element analysis

D,ALL,UZ

NSEL,S,LOC,Y,L

D,ALL,UZ

NSEL,ALL

SFE,ALL,,PRES,,p !apply pressure on all elements

/PBC,ALL !to show BC’s when solve

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !deformed shape

PLNSOL,S,X !x-stress in top and bottom surfaces

SHELL,MID !select results on mid surface (TOP,MID,BOT)

PLNSOL,S,X !s-stress in midle surface

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T2/PrePostFE_Ex206.dat

Observe that the value of the stress in the x-direction varies from the top to the mid and

bottom surfaces. This is due to the fact that although a shell element corresponds to a planar

representation, it is a 3D element and takes into account the thickness of the system.

2.8 Suggested problems

Problem 2.1. Generate the ANSYSTM input file for the simulation of the beam represented in

Figure 1.2 using the TRUSS, BEAM, PLANE STRESS and SHELL element types. Analyze the

differences and limitations in the use of the element types listed above and the solid elements

used in example 1.1.

Problem 2.2. Modify the input file generated in the previous problem for shell elements and

the input file in Ex. 1.3 for solid elements and simulate different ratios of H/L (height and span

of the beam, respectively). Analyze for which values of the ratio, the results obtained with shell

elements are similar to those obtained with solid elements.

Problem 2.3. Modify the input file generated in Ex. 2.2 to simulate the structure in Figure 2.2

without the inclined bars. Consider different types of elements and boundary conditions and use

the most appropriate.

Problem 2.4. Modify the input file generated in Ex. 2.4 to obtain the variation of the maximum

Von Mises stress versus the size of the finite element. Redefine the mesh to consider 10, 20, 40,

60, 80 and 100 elements in the vertical direction and plot the obtained value of stress versus the

number of divisions.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 27: PrePostFE

Chapter 3

Geometric modeling and meshing

techniques

3.1 Introduction

The goal of the meshing process is to convert a problem in the continuum real into a problem

which can be solved by a computer and so, a discrete problem. This process involves two different

aspects:

• The discretization of the geometry. The mesh must be fine enough to avoid sharp corners

in curves or curved surfaces which may lead to unreal stress concentrations.

• The discretization of the solution. The result is obtained by the FE code only in a discrete

set of locations so the mesh should also ensure that the number of solution points is enough

to express the variation of the solution fields along the domain.

On the other hand, a coarse mesh needs less computational resources than a fine mesh, so

the user generally should establish an equilibrium position, that is, to obtain a mesh fine enough

to discretize the geometry and the solution and coarse enough for the computational resources

available.

The meshing process creates elements and nodes. The elements are the portions (lines, sur-

faces or volumes) in which the continuum is decomposed. These elements are delimited by nodes

which are those locations in which the solution (the variables corresponding to the degrees of

freedom such as displacements, rotations and temperatures) of the system of equations is ob-

tained. From the degrees of freedom, other relevant magnitudes which cannot be expressed in a

point may be obtained and expressed in the elements. These are generally tensorial magnitudes

(which need a volume face to be expressed) or fluxes (which need an area to be computed and

expressed). However, this magnitudes are computed by integrating the shape function of the

element at the integration points of the element which guarantee a minimum error numerical

integration.

In this chapter some general mesh strategies and some rule-of-the-thumb recommendations

are given.

Meshing strategies

There exist different methods to model and mesh the geometry of a structure. They can be

classified in two categories: direct generation of mesh and solid modeling.

21

Page 28: PrePostFE

22 Pre and post-process tools in finite element analysis

Hint 2: Direct generation vs Solid modeling

Generally, commercial FE codes allow the direct definition of finite element entities (nodes,

elements, and boundary conditions on nodes and elements) or the definition of geometric en-

tities (points, lines, surfaces, or volumes) which are meshed later in order to obtain the nodes

and elements.

Considerations

Direct generation Convenient for simple models

Direct control of nodes and elements

Program skills are needed

Allows the translation of the model between different commer-

cial codes or definition using standard codes

Solid modeling Convenient for large models

Requires larger computational resources

It is easy to modify the geometry

No direct control over the mesh entities

Meshing recommendations

• The mesh should ensure connectivity through the nodes to guarantee a correct load distri-

bution, that is, each element must share some nodes with its neighboring elements and all

nodes, except from those nodes located at corners of the global geometry, must belong to

at least two elements.

• Curves should be meshed with, at least, 12 elements for each circumference quarter to

guarantee a smooth geometric discretization.

• Commercial FE codes generally provide re-meshing tools which in an iterative process re-

fine the mesh in those places with large gradients of the solution.

• Elements in a mesh may be triangles (or tetrahedral) or quadrilateral (or bricks). Generally,

triangular elements provide constant values for the integrated variables (stress) but can

be used to mesh any geometry easily. On the other hand, quadrilateral elements offer a

slightly better approximation of the distribution of the integrated variables through the

element, although they may not be able to mesh some geometries accurately. Except for

those cases with complicated geometries quadrilaterals are preferable.

• There are some element types with internal nodes which improve the discretization of the

solution and are useful when large gradients are present. These are elements such as

9-node quadrilaterals, 12-node bricks, etc.

3.2 Direct generation

The process of creating elements out of nothing, without starting from any geometric entity is

called direct generation or direct mesh. In this process the user imposes explicitly the location

of the nodes and the size of the elements. In this process the user has a total control on the node

location and element size. This approach is generally used for simple geometries.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 29: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 23

Direct generation consists on defining first the node distribution in the geometry. The position

of each node is defined according to a coordinate system. Some commercial codes allow to use

different types of coordinate systems (cartesian, cylindrical, spherical, as so on).

Hint 3: Useful ANSYS commands to directly define nodes

Command Main Parameters

Define individual node N x,y,z,thxy,thyz,thxz

Generate nodes from a pattern of nodes NGEN ntime,inc,n1,n2,ninc,dx,dy,dz

Generate line nodes between two nodes FILL node1,node2,nfill

Generate a reflected set of nodes NSYM ncomp,inc,node1,node2,ninc

List nodes NLIST node1,node2,ninc

Display nodes NPLOT

Delete nodes NDELE node1,node2,ninc

Once the nodes have been generated, the elements can be defined. The element is defined

using the connectivity with its nodes. The set of elements defined should define the whole geom-

etry.

Hint 4: Useful ANSYS commands to define elements

Command Main Parameters

Define individual element E i,j,k,l,m,n,o,p

Generate elements from a pattern EGEN ntime,ninc,elem1,elem2,elinc,

Generate elements by reflection ESYM ,--,ninc,elem1,elem2,elinc

Modify element attributes EMODIF iel,stloc,i1,i2,i3,i4,...

List elements ELIST elem1,elem2,elinc

Display elements EPLOT

Delete elements EDELE elem1,elem2,elinc

The following examples show the use of these different commands to define nodes and ele-

ments.

Example 3.1. Let us model the bi-pinned structure shown in Figure 3.1. A vertical concentrated

force F = 10 kN is applied in the horizontal span, as shown. The beam has a squared cross section

of 10×10 mm, and is made of wood with E = 3000 GPa. Use the direct generation method in

ANSYSTM to define the structure with beam elements.

Solution to Example 3.1. Beam elements of length 20 mm have been used to model the struc-

ture. For this reason, node number 1 has been created at point A, node number 11 where the

concentrated force is applied, point B. Thus, between these two nodes 10 elements of length 20

mm have been defined. Node number 16 has been created at point C and node 20 at the bottom

end, point D. Nodes #1, #11, #16 and #20 have been defined with the N command. The distances

between these nodes have been filled using the FILL command, obtaining nodes every 20 mm

(see Figure 3.2).

A consecutive node numeration has been obtained. Therefore, the elements can be defined

easily with E and EGEN commands.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 30: PrePostFE

24 Pre and post-process tools in finite element analysis

8 cm

F

Figure 3.1: Bi-pinned structure.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command

window enter /input, file, ext or just use copy and paste.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Bi-pinned structure using BEAM188 element

!Parameters

L1=200 !first horizontal distance (mm)

L2=300 !second horizontal distance (mm)

L3=80 !vertical distance (mm)

b=10 !element width (mm)

h=10 !element height (mm)

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,BEAM188 !element type #1: BEAM188 (6 DoF)

KEYOPT,1,3,3 !element #1 keyoption 3=3 (cubic shape function)

SECTYPE,1,BEAM,RECT !section #1 = rectangular beam

SECOFFSET,CENT !centered section (offset=0)

SECDATA,h,b !section width and height

MP,EX,1,3000e3 !material #1: E=300e3 MPa, if Poisson ratio is not defined 0.3 is assumed

N,1 !define node #1 on coordinates (0,0)

N,11,L1 !define node #11 on coordinates (L1,0)

N,16,L2 !define node #16 on coordinates (L2,0)

N,20,L2,-L3 !define node #20 on coordinates (L2,-L3)

FILL,1,11 !fill nodes between #1 and #11

FILL,11,16 !fill nodes between #11 and #16

FILL,16,20 !fill nodes between #16 and #20

E,1,2 !define element by nodes #1, #2

EGEN,19,1,1 !generate 18 elements incrementing 1 node like element 1 (total 19 elements)

FINISH !finish PRE-PROCESSOR MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex301.dat

Before solving the model it is necessary to define the pins at both ends (nodes #1 and #20)

and apply the vertical force in node #11.

Example 3.2. Model using shell elements the 80 mm thick steel bending plate shown in Figure

3.3 . The plate has a trapezoidal shape with two right angles in B and C and is subjected to a

bending load. Note that there is a simple support at 1000 mm from the clamped edge.

Solution to Example 3.2. With N and FILL commands 21 rows of 13 nodes are defined to com-

plete the whole geometry (see Figure 3.4). Between each row there is an increment in numeration

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 31: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 25

Figure 3.2: Nodes and beam elements for the bi-pinned structure.

0.9kN

1000

1500

1000800

A

B

C

90º

90º

Figure 3.3: Schema of the bending plate (dimensions in mm).

of 1, meanwhile between each column the increment in numeration is 100. With this regular dis-

tribution of the node numbers it is easy to define all elements only using the EGEN command twice.

The simple support can be defined in the central row of nodes.

Figure 3.4: Finite element model of bending plate.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command

window enter /input, file, ext or just use copy and paste.

FINISH !close all previous models

/CLEAR !clear all previous models

/TITLE,Clamped Plate under Bending

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SHELL181 !element type #1: SHELL181 (6 DoF)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 32: PrePostFE

26 Pre and post-process tools in finite element analysis

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration incompatible modes)

SECTYPE,1,SHELL !section #1 = shell

SECDATA,8 !thickness

MP,EX,1,210e3 !material #1: Young modulus E=210e3 MPa

MP,PRXY,1,0.3 !material #1: Poisson coeffient=0.3

N,1 !define node #1 on coordinates (0,0)

N,21,,2000 !define node #21 on coordinates (0,2000) mm

N,1201,1500 !define node #1201 on coordinates (1500,0) mm

N,1221,800,2000 !define node #1221 on coordinates (800,2000) mm

FILL,1,21 !fill nodes between #1 and #21

FILL,1201,1221 !fill nodes between #1201 and #1221

FILL,1,1201,11,,100,21,1 !use command fill to generate rest of nodes

E,1,101,102,2 !define element #1

EGEN,20,1,1 !generate the first element column from element #1

EGEN,12,100,1,20 !generate the rest of element columns

FINISH !finish PRE-PROCESSOR MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex302.dat

To generate more complex geometries with the direct method it is possible to change between

different coordinate systems and also create new coordinate systems defined as "local".

Hint 5: Useful ANSYS commands to manage and define coordinate systems

Command Main Parameters

Active the coordinate systems CSYS ncsys: 0 - cartesian, 1 - cylindri-

cal, 2 - spherical,...

Define local coordinate system LOCAL newcsys,ncsys,xc,yc,zc,thxy,...

The following example uses different coordinate systems to define the geometry of a curved

beam.

Example 3.3. Model the geometry shown in Figure 3.5 using 2-D solids and the direct generation

of nodes and elements. The element thickness is 4 mm and the material used is stainless steel

(with a Young’s modulus of 190 GPa and a Poisson coefficient of 0.3).

Figure 3.5: Geometry of a curved beam (dimensions in mm).

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 33: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 27

Solution to Example 3.3. The curved part of the beam is defined using a cylindrical (polar)

coordinate system (where the first coordinate corresponds to the radius R and the second to the

angle θ). The rectangular part of the beam is defined with a cartesian coordinate system.

In this case the FILL command has been used with a tailored ratio aiming to increase the

density of the mesh in the critical part (see Figure 3.6).

Figure 3.6: Nodes to define the mesh and its numeration.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command

window enter /input, file, ext or just use copy and paste.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Curved Beam - Direct generation

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

KEYOPT,1,3,3 !element type #1: keyoption 3=3 (plane stress w/thickness)

R,1,4 !real constant set #1: th=4 mm

MP,EX,1,190e3 !material #1: E=190000 MPa, if Poisson ratio is not defined 0.3 is assumed

CSYS,1 !activate cylindrical coordinate system

N,1,25,180 !define node #1 on coordinates R=25 mm and Angle=180º

N,15,25,90 !define node #15 on coordinates R=25 mm and Angle=90º

FILL,1,15,,,,,,3 !fill nodes between #1 and #15, last spacing 3 times larger than the initial one

NGEN,9,20,1,15,1,3 !generate nodes repeating the row: 8 new rows, increasing the radius

!a distance of 3 mm in each row

CSYS,0 !activate cartesian coordinate system

N,20,30,25 !define node #20 on coordinates (30,25) mm

FILL,15,20 !fill nodes between #15 and #20

NGEN,9,20,16,20,1,,3 !generate nodes repeating the row: 8 new rows, increasing the Y position

!a distance of 3 mm in each row

E,1,2,22,21 !define element by nodes #1, #2, #22, and #21

EGEN,19,1,1 !generates 19 elements of first row

EGEN,8,20,1,19 !generates rest of elements repeating the row

FINISH !finish PRE-PROCESSOR MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex303.dat

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 34: PrePostFE

28 Pre and post-process tools in finite element analysis

Models can include different types of elements, real constants sets, material behaviours, etc.

The ANSYS commands ET, R and MP allow to define database tables with the different attributes of

the elements used in the model. Each table uses reference numbers that associate the attribute

with the element, each element keep these kind of information with the nodal connectivity.

As it is shown in the Figure 3.7, the ANSYS commands TYPE, REAL and MAT define the element

type, real constant set and material, respectively. The elements generated after this selection

will have the previous selected attributes. However, the change of this attributes a posteriori is

also possible using the command EMODIF.

{

Element Types

ET,1,BEAM188

ET,4,MASS21

ET,3,SOLID185

ET,2,SHELL181

ET,5, ...Real constants

R,1,A,Izz,h

R,4,mass

R,3,th2

R,2,th1

R,5,...Materials

MP,EX,1,210e3

MP,PRXY,2,0.29

MP,EX,2,70e3

MP,PRXY,1,0.3

MP,DENS,2,2.7

MAT,2

REAL,3

TYPE,2

Figure 3.7: Element attributes selection.

Example 3.4. Compute the maximum vertical displacement in the 2D overhead hoist repre-

sented in Figure 3.8, where P = 100 kN, q = 100 N/mm, b = 10 cm, h = 20 cm, t = 2 mm, L = 3

m, and a = 1.5 m. The material of the beams is linear elastic with E = 210 GPa and ν = 0.3. Use

BEAM elements on the top element and TRUSS elements for the rest. Compare the results with

those obtained in 2.3.

Figure 3.8: Overhead hoist with bending loads.

Solution to Example 3.4. Two element types are defined (BEAM188 and LINK180). A section set

is defined associated to BEAM188, to compute the section Area and Inertia. A real constant set is

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 35: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 29

also defined associated to LINK180 defining the Area.

The commands TYPE and REAL allow selecting the element type and the constant set for the

elements defined next. With the ELIST command a list of defined elements are shown and the

assigned type element and constant set can be checked.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Overhead hoist - Including beam and truss elements

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

P=100000 !applied load

q=100 !distributed load

b=100 !section base

h=200 !section height

t=2 !section thickness

Ll=3000 !span

A=1500 !hoist height

S=(b*h)-(b-2*t)*(h-2*t) !cross section area

ET,1,BEAM188 !element type #1: 3D beam (6 DoF)

KEYOPT,1,3,3 !element #1 keyoption 3=3 (cubic shape function)

SECTYPE,1,BEAM,HRECT !section #1 = hollow rectangular beam

SECOFFSET,CENT !centered section (offset=0)

SECDATA,h,b,t,t,t,t !section width, height and thicknesses

ET,2,LINK180 !element type #2: 3D truss (3 DoF)

R,2,S !geometric properties section #2: for truss elements

MP,EX,1,210000 !material #1: Young’s modulus

MP,PRXY,1,0.3 !material #1: Poisson modulus

N,1,0,0,0 !define node #1 on coordinates (0,0,0)

N,2,Ll,0,0 !define rest of nodes

N,3,2*Ll,0,0

N,4,Ll/2,A,0

N,14,3*Ll/2,A,0

FILL,4,14

TYPE,2 !select TRUSS element type #2

REAL,2 !select real constant set #2

E,1,2 !define TRUSS elements

E,2,3

E,3,14

E,1,4

E,2,4

E,2,14

TYPE,1 !select BEAM element type #1

E,4,5 !define BEAM elements

EGEN,10,1,7

FINISH !finish PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

ANTYPE,STATIC

D,1,ALL !displacement X, Y and Z for node #1

D,3,UY,,,,,UZ !displacement Y and Z for node #3

D,9,UZ !displacement Z for node #9

D,4,ROTX,,,,,ROTY !rotations X and Y for node #4

D,14,ROTX,,,,,ROTY !rotations X and Y for node #14

F,2,FY,-P !concentrated Y-load nodes #2, #4 and #14

F,4,FY,-P

F,14,FY,-P

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 36: PrePostFE

30 Pre and post-process tools in finite element analysis

ESEL,S,TYPE,,1 !select BEAM elements (type #1)

SFBEAM,ALL,2,PRES,q !apply distributed load on element

ESEL,ALL !select all elements

/PBC,ALL !show BC’s when solve

SOLVE !solve current load state

FINISH !finish SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !plot deformed shape

/ESHAPE,1,1 !plot element with real shape

PLNSOL,S,X !contour plot of stress X distribution

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex304.dat

Note that both BEAM188 and LINK180 are 3D elements and as we are considering a 2D

analysis some displacements and rotations must be constrained to avoid displacements and de-

formations in the Z-direction.

Example 3.5. Model the beam shown in Figure 3.9 using 2D solid elements. The beam is com-

posed by a stainless steel bar reinforced with two aluminium plates perfectly bonded.

80

100

8 N/mm2

Figure 3.9: Two materials beam example (dimensions in mm).

Solution to Example 3.5. The PLANE182 element can be used to define a 2D solid with differ-

ent thicknesses, using KEYOPTION number 3 (plain stress with thickness). Two thicknesses (16

mm thickness constant set #1 and 10 mm thickness constant set #2) and two materials (Stain

Steel material #1, and Aluminium material #2) are defined. Before defining the elements with

REAL and MAT commands the thickness and the material is selected.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Two materials beam

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

KEYOPT,1,3,3 !element type #1: keyoption 3=3 (plane stress w/thickness)

R,1,16 !real constants set #1: th=16 mm,

R,2,10 !real constants set #2: th=10 mm,

MP,EX,1,190000 !material #1: E=190000 MPa

MP,PRXY,1,0.29 !material #1: Poisson=0.29

MP,EX,2,70000 !material #2: E=70000 MPa

MP,PRXY,2,0.30 !material #2: Poisson=0.30

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 37: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 31

N,1,0,0 !define node #1 on coordinates (0,0) mm

N,101,100,0 !define node #100 on coordinates (100,0) mm

FILL,1,101 !fill nodes between #1 and #101

NGEN,5,200,1,101,1,,1.25 !generate 5 rows of nodes with y=+1.25 mm each row respect to pattern

NGEN,3,200,811,891,1,,1 !generate 3 rows of nodes with y=+1 mm each row respect to pattern

NSYM,Y,2000,ALL !generates nodes by symmetry to plane normal to Y axis

REAL,1 !select constant set #1

MAT,1 !select material #1

E,1,2,202,201 !define element #1

EGEN,100,1,1 !generate a row of elements

EGEN,4,200,1,100,1 !generete 3 more rows of elements

REAL,2 !select constant set #2

MAT,2 !select material #2

E,811,812,1012,1011 !define element #301

EGEN,80,1,401 !generate a row of elements

EGEN,2,200,401,480 !generate 1 more row of elements

ENSYM,2000,,2000,ALL !generate elements by symmetry

NUMMRG,NODES !merge coincident nodes

FINISH !finish PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

ANTYPE,STATIC !select Static analysis (default option)

D,1,ALL !articulation on node #1

D,101,UY !constrain vertically node #101

NSEL,S,LOC,X,20,80 !select nodes of elements to apply surface load

NSEL,R,LOC,Y,5.75,7.25

ESLN,S,1 !select elements attached to the selected nodes

SFE,ALL,3,PRES,,8 !apply surface load on elements: q=8 N/mm2

ALLSEL !select everythhing

/PBC,ALL

SOLVE !solve current load state

FINISH !finish SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PLDISP,2 !plot displaced model

PLNSOL,S,X !contour plot of stress X distribution

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex305.dat

Direct generation commands can be also used when the geometry and the mesh can be de-

fined with mathematical functions. With the help of a programming language (Python, FORTRAN,

C/C++, MatLab, etc.) the functions can be used to define the nodes position, the element con-

nectivity and the applied loads. After using simple commands (N, E, D, F, etc.) the whole model

can be generated. The definition of a model using a MatLab code is shown in Example 3.6.

Example 3.6. Model a sculpture that represents a Moebius tape (see Fig. 3.10). The mid radius

R of the structure is 1325 mm. The length B of the 48 cross beams is 700 mm. The structure is

made of steel (E = 210000 MPa and ν = 0.29), the perimetric beam is a 40 mm diameter circular

rod and the cross beams are plates of 10 × 60 mm2. The cross beams that support and fix the

sculpture to the floor have a cross-section of 25 × 130 mm2.

Solution to Example 3.6. The position of the nodes and the forces due to wind loads are calcu-

lated using a MATLAB code. This code generates two files: ’nodes.txt’ which contents the nodal

positions, and ’wind.txt’ that contents the nodal forces due to wind.

% PrePost solution of Example 3.06

% J.A. Mayugo, 2007

% J. Renart, 2010

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 38: PrePostFE

32 Pre and post-process tools in finite element analysis

B

R

B

48 cross

beams

perimetral

beam

Figure 3.10: Geometry of the Moebius tape sculpture.

clear all;close all;clc; %clear all figures, data and screen

number=[1:48]; %number of cross beams

angle=[0:360/48:360*(1-1/48)]; %angle increment

c_angle=cos(angle/180*pi); %cos(angle)

s_angle=sin(angle/180*pi); %sin(angle)

rotation=[45:180/48:225-180/48]; %rotation_ini=45 degrees

c_rotation=cos(rotation/180*pi); %cos(rotation)

s_rotation=sin(rotation/180*pi); %sin(rotation)

radius=1325; %mid radius

width=700; %Moebius width

width_xy=width*c_rotation; %width in 3D

radius_mid_X=radius.*c_angle; %Moebius mid radius X component

radius_mid_Y=radius.*s_angle; %Moebius mid radius Y component

%cilindrical coordinates to define the bars of the Moebius tape

radius_bot_X=radius_mid_X+0.5*width_xy.*c_angle;

radius_bot_Y=radius_mid_Y+0.5*width_xy.*s_angle;

radius_bot_Z=width*s_rotation;

radius_top_X=radius_mid_X-0.5*width_xy.*c_angle;

radius_top_Y=radius_mid_Y-0.5*width_xy.*s_angle;

radius_top_Z=-width*s_rotation;

hold on;

plot3(radius_bot_X,radius_bot_Y,radius_bot_Z,’r’) %plot the external face of the Moebius tape

plot3(radius_top_X,radius_top_Y,radius_top_Z) %plot the internal face of the Moebius tape

for i=1:length(number);

plot3([radius_bot_X(i) radius_top_X(i)],[radius_bot_Y(i) radius_top_Y(i)],... %Moebius tape bars

[radius_bot_Z(i) radius_top_Z(i)],’k’);

plot(radius_mid_X(i),radius_mid_Y(i),’ks’); %Moebius tape load points

end

hold off

%write the results in the file nodes.txt

fid0=fopen([’nodes.txt’],’w’);

for inum=1:48;

fprintf(fid0,’n,%i,%8g,%8g,%8g \n’,inum,radius_mid_X(inum),radius_mid_Y(inum),0);

fprintf(fid0,’n,%i,%8g,%8g,%8g \n’,inum+100,radius_bot_X(inum),radius_bot_Y(inum),radius_bot_Z(inum));

fprintf(fid0,’n,%i,%8g,%8g,%8g \n’,inum+200,radius_top_X(inum),radius_top_Y(inum),radius_top_Z(inum));

end;

fclose(fid0);

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 39: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 33

wind_Kmh=150; %wind [Km/h)

wind_ms=wind_Kmh/3.6; %wind [m/s]

pressure=wind_ms^2/16; %pressure on the bars [kg/m^2]

pressure=pressure*9.81/1e6; %pressure on the bars [N/mm^2]

C=0.88; %pressure coefficient

p=C*pressure;

Area_plate=abs(width_xy)*140; %area on which de pressure is applied (plate area)

F_plate=p*Area_plate; %force applied on the plate

%write the results in the file wind.txt

fid1=fopen([’wind.txt’],’w’);

for inum=1:48;

fprintf(fid1,’f,%i,fz,%8g \n’,inum,F_plate(inum));

end;

fclose(fid1);

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex306.m

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext. The files ’nodes.txt’ and ’wind.txt’ previously generated using the

MatLabTM code should be placed in the working directory.

FINISH !close all revious modules

/CLEAR !clear all previous models

/TITLE,Moebius Sculpture

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,BEAM188 !element type #1: BEAM188 (6 DoF)

KEYOPT,1,3,3 !element #1 keyoption 3=3 (cubic shape function)

SECTYPE,1,BEAM,CSOLID !section #1: preimetral beams, solid cylindrical

SECOFFSET,CENT !centered section (offset=0)

SECDATA,40 !section radius

SECTYPE,2,BEAM,RECT !section #2: internal beams, rectangular

SECOFFSET,CENT !centered section (offset=0)

SECDATA,60,10 !section width and height

SECTYPE,3,BEAM,RECT !section #3: bottom internal beams, rectangular

SECOFFSET,CENT !centered section (offset=0)

SECDATA,130,25 !section width and height

MP,EX,1,210000 !material #1: E=210000 MPa

MP,PRXY,1,0.29 !material #1: 0.29 Poisson

MP,DENS,1,8e-6 !material #1: density=8 T/m^3

/INPUT,nodes,txt !input nodes from file: ’nodes.txt’

SECNUM,1 !section set #1

E,101,102 !elements to generate the perimetral circles

EGEN,47,1,1

E,148,201

E,201,202

EGEN,47,1,49

E,248,101 !define first 96 elements

SECNUM,2 !section set #2

E,101,1,248 !define transversal elements

E,1,201,148

E,102,2,101

E,2,202,201

EGEN,47,1,99,100

ESEL,S,,,167,172 !redefine section bottom elements

EMODIF,ALL,SECNUM,3

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 40: PrePostFE

34 Pre and post-process tools in finite element analysis

ALLSEL !select everything

FINISH !finish PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

D,236,ALL !fix sculpture to floor

D,237,ALL

D,238,ALL

ACEL,,,10 !gravity load

/PBC,ALL

SOLVE

FINISH

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex306.dat

3.3 Solid Modeling

The mesh may also be created starting from geometric entities (which can be created in the

pre-processor or imported from other CAD software) and the software creates the mesh. The

user, however, may impose some restrictions or conditions to the meshing process. Some of this

restrictions are:

• Imposing a number of divisions in edges or lines of the primitive geometry.

• Giving some values for the element size, in terms on edge length.

• Starting the mesh from lower order geometric entities and extrude or sweep the created

elements to fill higher order geometries. For instance, to mesh a regular volume some of the

areas may be meshed first and then mesh the whole model following the pattern imposed

in the areas.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 41: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 35

Controlling the element size

Hint 6: Useful ANSYS commands for solid modelling

Command Main Parameters

Define individual keypoint K npt,x,y,z

Generate line from keypoints L p1,p2,ndiv

Generate area from keypoints A p1,p2,p3,...,p18

Generate area from lines AL l1,l2,l3,...,l10

Generate volume from keypoints V p1,p2,p3,...,

Generate volume from areas VA na1,na2,na3,...,na10

Generate circular arc lines CIRCLE pcent,rad,...

Generate circular arc lines LARC p1,p2,pc,rad

Generate surface by rotating lines AROTAT nl1,...,nl6,

pax1,pax2,arc,nseg

Generate cylindrical volume CYL4 xc,yc,rad1,theta1,rad2,

theta2,depth

Generate sphere SPH4 xc,yc,rad1,rad2

Create keypoint between two keypoints KBETW kp1,kp2,kpnew,...

Add areas to create single area AADD na1,na2,...,na9

Add volumes to create single volume VADD nv1,nv2,...,nv9

Intersect volume with line LINV nl,nv

Boolean operation options BOPT (See ANSYS Help)

Mesh a volume by sweeping a meshed

area

VSWEEP vnum,srca,trga,lsmo

Mesh a volume by sweeping a meshed

area along a path

VDRAG vdrag,na1,na2,...,na6,

nlp1,...,nlp6

Hint 7: Useful ANSYS commands which affect the element size

Command Main Parameters

Control de general size of elements ESIZE size

Control element size on lines LESIZE nline,size,ndiv,

Control element size on areas AESIZE elem1,elem2,einc

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 42: PrePostFE

36 Pre and post-process tools in finite element analysis

Hint 8: Useful ANSYS commands to mesh entities

Command Main Parameters

Mesh lines LMESH nline1,nline2,nlinc

Mesh areas AMESH narea1,narea2,nainc

Mesh volumes VMESH nvolu1,nvolu2,nvinc

Unmesh lines LCLEAR nline1,nline2,nlinc

Unmesh areas ACLEAR narea1,narea2,nainc

Unmesh volumes VCLEAR nvolu1,nvolu2,nvinc

Mesh type MSHKEY key: 0 - free mesh, 1 - mapped

mesh, 2 - mapped mesh if possi-

ble

Refine mesh around selected nodes EREFINE ne1,ne2,nicn,level,depth,...

Shape of elements MSHAPE key,dimension

Example 3.7. Mesh the geometry considered in Example 3.3 using solid generation and meshing

tools.

Solution to Example 3.7. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Curved Beam - Solid Modeling

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

KEYOPT,1,3,3 !element type #1: keyoption 3=3 (plane stress w/thickness)

R,1,4 !real constant set #1: th=4 mm

MP,EX,1,190e3 !material #1: E=190000 MPa, if Poisson ratio is not defined 0.3 is assumed

PCIRC,25,(25+24),90,180 !define area #1: circle inner radius R=25 mm outer radius R=49 mm

RECTNG,0,30,25,(25+24) !define area #2: rectangle 30 mm x 24 mm

AGLUE,ALL !glue both areas

LESIZE,ALL,,,8 !8 divisions per line

AMESH,ALL !mesh areas

FINISH !finish PRE-PROCESSOR MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex307.dat

Example 3.8. Model a wing section using solid generation and meshing tools.

Solution to Example 3.8. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Model extruded wing profile

/PREP7 !start PRE-PROCESSOR MODULE

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 43: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 37

ET,1,SHELL181 !element type #1: SHELL181 (6 DoF)

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration incompatible modes)

SECTYPE,1,SHELL !section #1 = shell

SECDATA,50 !thickness

MP,EX,1,69000 !material #1: E=69000 MPa

MP,PRXY,1,0.3 !material #1: Poisson coefficient=0.3

MP,DENS,1,2.7e-3 !material #1: density=2.7e3 kg/m3

K,1,0,0,0 !define keypoint #1

K,2,2000,0,0

K,3,2300,200,0

K,4,1900,450,0

K,5,1000,250,0

LSTR,1,2 !define straight line between kp #1 and #2

LSTR,5,1 !defins straight line between kp #5 and #1

BSPLIN,2,3,4,5,,,-1,0,0,-1,-0.25,0 !define spline line using point #2 to #5

AL,1,2,3 !define area #1 from lines #1, #2, and #3

VOFFST,1,5000 !extrude area #1 to define volume, offset distance 5 m

ESIZE,100 !element size 0.1 m

AMESH,3,5,1 !mesh areas from #3 to #5

FINISH !finish PRE-PROCESSOR MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex308.dat

Example 3.9. Model the metallic plate part of a robot arm shown in 3.11.

Figure 3.11: Metallic plate as a component of a robot arm (dimensions in mm).

Solution to Example 3.9. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Model robot arm part (Mesh method A)

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SHELL181 !element type #1: SHELL181 (6 DoF)

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration incompatible modes)

SECTYPE,1,SHELL !section #1 = shell

SECDATA,6 !thickness

MP,EX,1,75000 !material #1: E=75000 MPa

MP,PRXY,1,0.3 !material #1: Poisson coefficient=0.3

PCIRC,20,55,90,270 !generate semicircle Ri,Ro,ang1,ang2

LOCAL,11,1,320 !define new cartesian CSYS #11

WPCSYS,1,11 !put WP on CSYS #11

PCIRC,16,40,-90,90 !generate semicircle

WPCSYS,1,0 !put WP on CSYS #0

PTXY,0,-55,320,-40,320,40,0,55 !define coordinate pairs x,y for polygon

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 44: PrePostFE

38 Pre and post-process tools in finite element analysis

POLY !define new polygon (area #3) with previous coordinates

PCIRC,20 !generate circle

WPCSYS,1,11 !put WP on CSYS 11

PCIRC,16 !generate circle

ASBA,3,4 !substract area #4 to area #3

ASBA,6,5 !substract area #5 to area #6

AGLUE,ALL !glue areas (merge coincident kp and lines)

ESIZE,6 !defines size of element

AMESH,ALL !mesh areas

FINISH !finish PRE-PROCESSOR MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex309a.dat

This other input file improves the control of the mesh for the modelled metallic plate enhanc-

ing its final quality.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Model robot arm part (Mesh method B)

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SHELL181 !element type #1: SHELL181 (6 DoF)

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration incompatible modes)

SECTYPE,1,SHELL !section #1 = shell

SECDATA,6 !thickness

MP,EX,1,75000 !material #1: E=75000 MPa

MP,PRXY,1,0.3 !material #1: Poisson coefficient=0.3

PCIRC,20,55,90,270 !generate semicircle Ri,Ro,ang1,ang2

LOCAL,11,1,320 !define new cartesian CSYS #11

WPCSYS,1,11 !put WP on CSYS #11

PCIRC,16,40,-90,90 !generate semicircle

WPCSYS,1,0 !put WP on CSYS #0

PTXY,0,0,320,0,320,40,0,55 !define coordinate pairs x,y for polygon

POLY !define new polygon (area #3) with previous coordinates

PTXY,0,-55,320,-40,320,0,0,0 !define coordinate pairs x,y for polygon

POLY !define new polygon (area #4) with previous coordinates

PCIRC,20 !generate circle

WPCSYS,1,11 !put WP on CSYS 11

PCIRC,16 !generate circle

WPCSYS,1,0

ASBA,3,5,,,KEEP !substract area #5 to area #3

ASBA,7,6,,,KEEP !substract area #6 to area #7

ASBA,4,5 !substract area #5 to area #4

ASBA,7,6 !substract area #6 to area #7

BLC4,55,-55,(320-95),110 !define rectangle (area #5) to define line #19 and #16

ASBL,4,19 !divide area #4 by line #19

ASBL,7,16 !divide area #7 by line #16

ASBL,3,19 !divide area #3 by line #19

ASBL,9,16 !divide area #9 by line #16

ADELE,5,,,1 !delete area #5 and bellow entities

AGLUE,ALL !glue areas (merge coincident kp and lines)

LESIZE,ALL,,,6 !define number of divisions in lines

LESIZE,1,,,24,,1 !modify number of division in line

LESIZE,3,,,24,,1

LESIZE,5,,,24,,1

LESIZE,7,,,24,,1

LESIZE,12,,,24,,1

LESIZE,13,,,24,,1

LESIZE,33,,,24,,1

LESIZE,16,,,12,,1

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 45: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 39

LESIZE,19,,,12,,1

LESIZE,35,,,12,,1

LESIZE,37,,,12,,1

!LCCAT,18,28 !concatenate lines to improve mesh (uncomment it to test)

!LCCAT,14,25

!LCCAT,11,32

!LCCAT,29,36

AMESH,ALL !mesh areas

FINISH !finish PRE-PROCESSOR MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex309b.dat

Example 3.10. Model a handle shown in the Figure 3.12 using the solid generation and meshing

tools.

Figure 3.12: Handle.

Solution to Example 3.10. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Static model for a handle

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SOLID186 !element type #1: SOLID186 (3 DoF)

KEYOPT,1,2,1 !element #1: keyoption 2=1 (full integration)

MP,EX,1,210000 !material #1: E=210000 MPa

MP,PRXY,1,0.29 !material #1: Poisson=0.29

LOCAL,11,,,,,,-18,-22.5 !define local cartesian system to define central part

CSYS,11 !active previous defined CSYS

K,1,10,-5 !define central part

K,2,10,5

K,3,-10,5

K,4,-10,-5

K,5,7.5,-5,153

K,6,7.5,5,153

K,7,-7.5,5,153

K,8,-7.5,-5,153

V,1,2,3,4,5,6,7,8 !define volume #1 for central part

WPLANE,1,,,,1,,,1,,-1 !change WP position

CYLIND,,30,-20,20 !define cylindre volume #2

WPLANE,1,-60,,140,,,140,,,120 !change WP position

CYLIND,,15,35,50 !define cylindre volume #3

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 46: PrePostFE

40 Pre and post-process tools in finite element analysis

VSBV,1,2 !substract volume #2 to volume #1 (volume #1 becomes #4)

VSBV,4,3 !substract volume #3 to volume #4 (volume #4 becomes #1)

WPLANE,1,,,,1,,,1,,-1 !change WP position

CYLIND,15,30,,20 !redefine cylindre volume #2

WPLANE,1,-60,,140,,,140,,,120 !change WP position

CYLIND,7.5,15,35,50 !redefine cylindre volume #3

VGLUE,ALL !glue volumes

ESIZE,6 !define size of elements

MSHKEY,0 !not mapped mesh

MSHAPE,1,3D !mesh with tetrahedral elements

VMESH,ALL !mesh all volumes

FINISH !finish PRE-PROCESSOR MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex310.dat

3.4 Assessment of the mesh quality

To be confident on the results of a finite element modelization of a mechanical or structural

problem, it is necessary to assess the mesh quality, that is, to check if the mesh is fine enough to

get good simulation results. Basically, the following aspects need to be analyzed:

• Assure the right connectivity between different parts of the mesh.

• Avoid elements with high distortions, warping and inadmissible narrow or wide angles be-

tween edges.

• Error estimation of the elements, typically by means of energy hypotheses (see Chapter 6).

• Study the sensitivity of the results on different meshes of the entire FE model or of a partial

model (see Chapter 6).

3.4.1 Connectivity

The connectivity of the different parts of the mesh should be verified. The mesh edges between

different parts of the geometry must assure that the generated elements share nodes. The re-

sults of a bad connectivity definition are presented in Figure 3.13, while the correct solution is

presented in Figure 3.14.

Example 3.11. Write the input files for the simulation of the geometry shown in Figures 3.13

and 3.14 with a bad and a good connectivity of the elements.

Figure 3.13: Example of bad connectivity of different parts of the mesh. Undeformed mesh (left)

and deformed mesh (right).

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 47: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 41

Figure 3.14: Example of right connectivity of different parts of the mesh. Undeformed mesh (left)

and deformed mesh (right).

Solution to Example 3.11. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Connectivity (Bad connectivity)

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

MP,EX,1,1 !material #1: E=1 (no units)

MP,PRXY,1,0.2 !material #1: Poisson=0.2

K,1,0,0,0 !define geometry: keypoints and areas

K,2,5,0,0

K,3,5,1,0

K,4,0,1,0

K,5,10,0,0

K,6,10,5,0

K,7,5,5,0

A,1,2,3,4

A,2,5,6,7

AESIZE,2,.25

AESIZE,1,.5

AMESH,ALL

FINISH !finish PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

DK,1,ALL

DK,4,ALL

DK,5,UX,.1

DK,6,UX,.1

SOLVE !solve current load state

FINISH !finish SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex311a.dat

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Connectivity (Good connectivity)

/PREP7 !start PRE-PROCESSOR MODULE

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 48: PrePostFE

42 Pre and post-process tools in finite element analysis

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

MP,EX,1,1 !material #1: E=1 (no units)

MP,PRXY,1,0.2 !material #1: Poisson=0.2

K,1,0,0,0 !define geometry: keypoints and areas

K,2,5,0,0

K,3,5,1,0

K,4,0,1,0

K,5,10,0,0

K,6,10,5,0

K,7,5,5,0

A,1,2,3,4

A,2,5,6,7

AGLUE,1,2 !to ensure right connectivity areas must be glued

AESIZE,3,.5

AESIZE,1,.25

MSHKEY,2

AMESH,ALL

FINISH !finish PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

DK,1,ALL

DK,4,ALL

DK,5,UX,.1

DK,6,UX,.1

SOLVE !solve current load state

FINISH !finish SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex311b.dat

3.4.2 Avoid elements with high distortions, warping and inadmissible narrow

or wide angles between edges.

Elements with high distortions, bad aspect ratio, warping and inadmissible narrow, or wide an-

gles between the element edges can lead to numerical errors. In ANSYSTM , all continuum ele-

ments (2-D and 3-D solids, 3-D shells) are tested for acceptable shape. The testing, is performed

by computing shape parameters (such as Jacobian ratio) which are functions of geometry, then

comparing them to element shape limits whose default values are functions of element type and

settings. These limits depend on the element type and formulations, therefore it is recommended

to check the guidelines given by the finite element code being used. Some example of elements

with bad aspect ratio, warping and wide angles between element edges are shown in Figure 3.15.

ANSYSTM allows to plot the elements that have some of these element geometry checks over

the limits.

Main Menu>Preprocessor>Meshing>Check Mesh>

Individual Elm>Select Warning/Error Elements

Example 3.12. Check for elements with high distortions in the geometry and mesh shown in

Figure 3.16.

Solution to Example 3.12. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 49: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 43

Figure 3.15: Example of elements with bad aspect ratio, warping and distortion.

Figure 3.16: Example of right elements with wide corner angles. Undeformed mesh (left) and

"warning" elements of the mesh (right).

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Distortion elements

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

MP,EX,1,1 !material #1: E=1 (no units)

MP,PRXY,1,0.2 !material #1: Poisson=0.2

K,1,0,0,0 !define geometry: keypoints and areas

K,2,5,0,0

K,3,5,1,0

K,4,0,1,0

K,5,6,0,0

K,6,6,5,0

K,7,5,1,0

A,1,2,3,4

A,2,5,6,7

AGLUE,1,2

AESIZE,3,.5

AESIZE,1,.25

MSHKEY,1

AMESH,ALL

FINISH !finish PRE-PROCESSOR MODULE

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 50: PrePostFE

44 Pre and post-process tools in finite element analysis

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex312.dat

3.5 Techniques to Import Models and Geometries

In order to simulate or model different geometries or problems with finite elements it is often

useful to import the geometry or the model generated by means of a CAD-system or more pow-

erful and user-friendly Pre-process utility. In this section, some techniques to import models and

geometries into a FE package are shortly described.

There are different file standards that allow us to translate geometries and finite element

entities between different packages. Here, in the following example, the IGES-format is used to

import a geometry from a CAD software.

Example 3.13. Figure 3.17 shows the schema of an arm of a grip designed to pick and carry

eggs. The grip has a total of three of these arms so the eggs are clamped in between. The

mechanism is activated by applying a contact load on the normal to the right-top circular area

of the arm. The arm can rotate around its axis and the egg is clamped by the bottom-planar

areas of the grip-arms. Model the grip-arm assuming plane-stress conditions, considering that it

is made of aluminium (E = 71000 MPa and ν = 0.33) and the rotation axis is made of steel. It is

considered that the maximum load sustained by an egg is 5 N.

25°

50

40

15.95 R2

17.79 R2.5 25

R1

R30.32

Ø6

5

10

14.33

5

Figure 3.17: Geometry of the grip-arm.

Solution to Example 3.13. The geometry of the arm-grip has been already generated using a

CAD program and can be found at ftp://amade.udg.edu/mme/PrePostFE/grip_arm.igs.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext. Before executing the script make sure that the IGES geometry of the

model is in the working directory. You can also import the geometry using the Menu commands

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 51: PrePostFE

Chapter 3. Geometric modeling and meshing techniques 45

and mesh the geometry avoiding the importing commands in the script.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Robot grip part (Model 2D plane stress)

/AUX15 !import IGES file

IOPTN,IGES,NODEFEAT !select options

IOPTN,MERGE,YES

IOPTN,SOLID,YES

IOPTN,SMALL,YES

IOPTN,GTOLER, DEFA

IGESIN,’grip_arm’,’igs’,’ ’

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

KEYOPT,1,3,3 !element type #1: keyoption 3=3 (plane stress w/thickness)

R,1,5 !real constant #1: thickness=5 mm

ET,2,BEAM188 !element type #2: BEAM188 (6 DoF)

KEYOPT,2,3,3 !element #2 keyoption 3=3 (cubic shape function)

SECTYPE,2,BEAM,RECT !section #1 = rectangular beam

SECOFFSET,CENT !centered section (offset=0)

SECDATA,1e9,1e9 !section width and height (ultra rigid beam)

MP,EX,1,71000 !material #1: E=71000 MPa

MP,PRXY,1,0.33 !material #1: Poisson=0.33

MP,EX,2,210000 !material #2: E=210000 MPa

MP,PRXY,2,0.3 !material #2: Poisson=0.3

LGEN,,ALL,,,-1747.394,-416.3893,0,,,1 !move lines coordinates origin

LSEL,S,,,1,11 !select lines

LSEL,U,,,3,4 !unselect circle lines

AL,ALL !generate global area with all selected lines

LSEL,S,,,3,4 !select circle lines

AL,ALL !generate circle

ASBA,1,2 !substract circle to global area

N,,0,0,0 !generate node on 0,0,0 (origin)

LESIZE,3,,,10 !divisions line 3

LESIZE,4,,,10 !divisions line 4

AESIZE,ALL,2 !element size a 2 mm

MSHKEY,2 !try quadrangualar elements

AMESH,ALL !mesh all areas

TYPE,2 !set element #2

MAT,2 !set material #2

SECNUM,2 !set section #2

REAL,2 !set real #2

E,1,178 !generate element between nodes #1 and #178

*REPEAT,20,0,1 !repaeat previous command 19 times increment +1 second argument

FINISH !finish PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

D,1,ALL !fix articulated node

DDELE,1,ROTZ !allow rotation articulated node

D,99,UX,,,,,UY !fix horizontal and vertical displacement contact node

F,172,FX,-4.532 !apply horitzontal load node #178

F,172,FY,2.113 !apply vertical load node #178

SOLVE !solve current load state

FINISH !finish SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PLNSOL,S,EQV,2 !plot Von Mises stress + undeformed edge

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 52: PrePostFE

46 Pre and post-process tools in finite element analysis

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T3/PrePostFE_Ex313.dat

3.6 Suggested problems

Problem 3.1. Reconsider the situation in Example 3.3. Using direct generation commands,

remesh the model using twice the number of divisions that were used in the example solution.

Problem 3.2. Reconsider the Example 3.3. Prepare a mesh for sensitivity analysis for the fol-

lowing meshes:

1. The mesh in the solution of the example

2. A free mesh using triangles

3. Two different quadrilateral mapped meshes with different mesh densities.

Show the obtained meshes in a report and comment on the results.

Problem 3.3. Obtain the geometry of the part presented in Example 3.9. Use a CAD program to

generate this obtained geometry and its IGES file. Export the geometry to ANSYS and mesh it.

Try to obtain a regular mesh. Show all the process in a report.

Problem 3.4. Model the U-shaped beam shown in Figure 3.18. Using a similar procedure as in

Ex. 3.6 generate the MATLAB code and the ANSYSTM command sequence to define the mesh.

The codes should define the mesh in function of the geometric parameters shown in the figure.

Figure 3.18: U-shaped beam.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 53: PrePostFE

Chapter 4

Boundary conditions

4.1 Introduction

The Finite Element Method may be applied to problems of very different nature which are af-

fected by different physical variables. As you may know, in the structural case, after computing

the stiffness matrix for each element, the finite element method solves a typical system of equa-

tions:

K · ~δ = ~F (4.1)

where K is the stiffness matrix, ~δ is the degree of freedom vector and ~F is the vector contain-

ing the external actions. Some of the components in ~δ and ~F will be unknown variables -and so,

the solution of our problem- and some of them will be the boundary conditions of the model. A

known variable can set a fixed value to one nodal degree of freedom (DOF) (displacements and

rotations). This type of boundary conditions are usually called Dirichlet boundary conditions or

essential boundary conditions. On the other hand, a known variable can define a nodal force or

flux, now the known variable defines a natural boundary condition (also called Newman boundary

condition). Focusing on the Engineering Mechanics realm, the typical problems may be divided

into different physics problems as is shown in the Table 4.1.

Table 4.1: Physics Problems in FEM

Problem DOFs Force or flux variables

Structural displacements

and rotations

forces, pressures, temper-

atures (for thermal strain),

gravity

Thermal temperatures heat flow rates, convection,

internal heat generation, in-

finite surface

Magnetic magnetic po-

tentials

magnetic flux, magnetic cur-

rent segments, source cur-

rent density, infinite surface

Electric electric poten-

tials (voltage

electric current, electric

charges, charge densities,

infinite surface

Fluid velocities pressures

47

Page 54: PrePostFE

48 Pre and post-process tools in finite element analysis

For the moment, we will focus on structural problems. Thermal and structural-thermal analy-

sis will be seen further during this course. The boundary conditions in structural models include

externally applied forcing loads and constrained displacements. Loads are divided into different

categories:

• DOF constraints: constrained displacements and rotations

• Concentrated loads: forces and moments

• Distributed loads:

– loads on edges

– loads on surfaces

– body loads

– inertia loads (due to accelerations or gravity)

• Coupled-field loads: fluid-structure interaction, thermal dilatations, etc.

• Temperatures which structures are expected to work at.

Hint 9: Loads on geometry vs loads on mesh

The major commercial codes of FE allow to impose boundary conditions to geometric entities

(points, lines, surfaces, or volumes) or to mesh entities (nodes and elements).

Pros Cons

Loads on Geomet-

ric Entities

Independent of mesh. No trou-

bles in re-meshing

Possible conflicts local-global

coordinate systems

(points, lines, sur-

faces...)

Generally easier to apply (less

entities needed to select)

Less control on what you are do-

ing

Loads on Mesh En-

tities

Loads on affected nodes di-

rectly (more control)

Re-meshing involves re-

applying loads

(nodes, elements) Generally lots of

nodes/elements involved

(graphical picking may not

be convenient)

Load step

A load step or load case is simply a configuration of loads for which a solution is obtained. There-

fore, a load step in structural analysis is defined by the set of forces and moments, pressures,

body and inertia loads (as gravity), and specified displacements and rotations (constrained DOF),

all applied to the model. In a linear static or steady-state analysis, you can use different load

steps to apply different sets of loads -wind load in the first load step, gravity load in the second

load step, both loads and a different support condition in the third load step, and so on. In a

transient analysis, multiple load steps apply different segments of the load history curve.

The next sections show how different kinds of loads may be applied to a structural FE model.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 55: PrePostFE

Chapter 4. Boundary conditions 49

Boundary conditions in two- and three-dimensional problems

In two-dimensional problems, the following boundary conditions can be applied:

• Constrained displacements in X and Y axes, also rotations into the Z axis in flexural beam

elements.

• Concentrated forces (in X and Y directions), also moment in flexural beam elements (applied

into the Z axis).

• Distributed loads on edges and lines.

Additionally, in three-dimensional problems the following boundary conditions can be applied:

• Imposed displacements (and rotations in shell and beam elements) to all degrees of free-

dom.

• Concentrated forces (and moments in shell and beam elements) in any direction or moments

in any axis.

• Distributed loads on edges and surfaces.

• Body and inertial loads.

Hint 10: DOF notation in ANSYS

UX Displacement in X direction ROTX Rotation into X axis

UY Displacement in Y direction ROTY Rotation into Y axis

UZ Displacement in Z direction ROTZ Rotation into Z axis

Hint 11: Useful ANSYS commands to apply boundary conditions

On Mesh On Geometry

Displacements and

rotations

D on nodes DK on keypoints, DL on lines

Concentrated loads F FK on keypoints

Line loads - SFL on lines

Surface loads SF on nodes, SFE on elements SFA on areas

4.2 Load application in FEM

Loads can be applied on nodes by means of concentrated forces or moments, as it is shown in Ex-

ample 4.1. Also loads can be distributed over the elements as: surface loads, body loads, inertia

loads or other coupled-field loads (for example, thermal strains).

A Surface load is a distributed load applied over a surface, for example a pressure caused

by wind or any fluid. A body load is a volumetric load, for example expansion of material by

temperature raise in structural analysis. Inertia loads are those attributable to the inertia (mass

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 56: PrePostFE

50 Pre and post-process tools in finite element analysis

matrix) of a body, such as gravitational acceleration, angular velocity, and acceleration.

When a concentrated load is applied on a node in the FE model, it can be directly added to

the force vector. However, if a distributed load is applied, the element shape functions are used

by the finite element program to compute the equivalent forces vector.

Hint 12: Avoiding rigid solid modes

When modelling real life situations the boundary conditions applied to the model should guar-

antee that the model is not going to move without carrying any deformation. This may be done

by setting a zero value to all DOF in the same or different nodes. One should do this without

applying unreal boundary conditions which bring to the solution unreal stresses.

Example 4.1. Let us model a small bridge (a footbridge) intended to cross from a pier to a boat

or to a small ship (see Fig. 4.1). This footbridge is 3 m long and should bear a load of a man,

estimated in 150 kg, standing in its middle point. The section of the bridge is 300 mm × 25 mm.

The material is wood with E = 15000 MPa and ν = 0.3. Let us model this problem using beam-

type elements. At one tip of the footbridge, the tip on the ship, all displacements and rotations

are restricted and on the other one the footbridge is simply supported by the floor.

Figure 4.1: Footbridge for small ship.

Solution to Example 4.1. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Footbridge 2D with beam elements

/PREP7 !start PRE-PROCESSOR MODULE

!define geometric parameters (mm)

length=3000

width=300

height=25

!element definition

ET,1,BEAM188 !element type #1: BEAM188 (6 DoF)

KEYOPT,1,3,3 !element #1 keyoption 3=3 (cubic shape function)

SECTYPE,1,BEAM,RECT !section #1 = rectangular beam

SECOFFSET,CENT !centered section (offset=0)

SECDATA,height,width !section width and height

MP,EX,1,15000 !material property #1, Young’s modulus

MP,NUXY,1,0.3 !material property #1, Poisson modulus

!define keypoints

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 57: PrePostFE

Chapter 4. Boundary conditions 51

K,1,0,0 !keypoint,#,x,y

K,2,length/2

K,3,length

!define lines

L,1,2,6 !line #1 connecting kpoint 1 and 2 in 6 parts

L,2,3,6

LMESH,all !mesh all lines

FINISH

/SOLU !start SOLUTION MODULE

!apply constraints

DK,1,ALL,0 !define a DOF constraint at a keypoint

DK,3,UY,0

!apply loads

FK,2,FY,-1500 !define a force load to a keypoint

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PRRSOL,F !list reaction forces

PLDISP,2 !plot deformed shape

PLNSOL,U,SUM,0,1 !contour plot of deflection

ETABLE,TAI,SMISC,6 !Shear diagram at node i

ETABLE,TAJ,SMISC,19 !Shear diagram at node j

PLLS,TAI,TAJ,1,0 !Plot the shear diagram

PRRSOL,M !list reaction moments

ETABLE,MOI,SMISC,3 !Bending moment at node i

ETABLE,MOJ,SMISC,16 !Bending moment at node j

PLLS,MOI,MOJ,1,0 !Plot the bending moment diagram

/ESHAPE,1,1

PLNSOL,S,X

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T4/PrePostFE_Ex401.dat

Observe that the left end of the deformed footbridge remains horizontal due to the applied

constraints while the right end rotates upwards.

Example 4.2. We want to dimension a roof. The loads to consider are the weight of the roof

and the load due to snow. The roof is 0.9m × 2.1m with a 10 mm thickness and it is settled

horizontally and supported at its four vertex. The snow load over the roof is 400 N/m2. Model the

roof and obtain the deformed shape plot. Consider carefully which are the boundary conditions

to apply. The roof is from a reinforced polymer with a Young’s modulus of 15 GPa, a Poisson’s

coefficient of 0.3, and a mass density of 40 kg/m3.

Solution to Example 4.2. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Horizontal roof

/PREP7 !start PRE-PROCESSOR MODULE

!geometric parameters (mm)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 58: PrePostFE

52 Pre and post-process tools in finite element analysis

length=900

width=2100

thickness=10

ET,1,SHELL181 !element type #1: SHELL181 (6 DoF)

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration incompatible modes)

R,1,thickness !real constant #1: th=10 mm

MP,EX,1,15000 !Young’s modulus for material #1 in N/mm2

MP,PRXY,1,0.3 !Poisson ratio for material #1

MP,DENS,1,40e-9 !material property #1: Density in kg/mm^3

!define keypoints

K,1,0,0 !keypoint, #, x, y

K,2,width,0

K,3,width,length

K,4,0,length

!define area

A,1,2,3,4 !area through keipoints

!element definition

AESIZE,ALL,100 !specifies the element size to be meshed onto areas

AMESH,ALL !mesh all areas

FINISH

/SOLU !start SOLUTION MODULE

!apply boundary conditions

DK,1,UZ,0,,,UX,UY !define a DOF constraint at a keypoint (ux=uy=uz=0)

DK,2,UZ,0,,,UY !define a DOF constraint at a keypoint (uy=uz=0)

DK,3,UZ,0

DK,4,UZ,0

!apply loads

ACEL,,,9.81 !acceleration in m/s^2, kg*m/s^2 = N

LSWRITE,1 !write the first load case

SFA,1,1,PRES,-0.4e-3 !define snow load over surface; 0.4 kN/m^2 = 0.4e-3 N/mm^2

LSWRITE,2 !write the second load case

LSSOLVE,1,2 !solve the resulting system of equations, of load cases #1 and #2

FINISH

/POST1 !start POST-PROCESSOR MODULE

SET,1 !first load case

PLNSOL,U,SUM,0,1 !contour plot of deflection

SET,2 !second load case

PLNSOL,U,SUM,0,1 !contour plot of deflection

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T4/PrePostFE_Ex402.dat

Note that in this case the maximum displacement of the roof caused by its own weight is very

small. However, when the weight of the snow is added, the displacement of the roof is increased

considerably.

Example 4.3. Use a commercial FE code to model the effect of the distributed force q = 5 N/mm2

on the two types of short cantilever beams shown in Fig.4.2. Consider that the two beams are

made of steel with a thickness of 5 mm and take L1 = 80 mm, L2 = 40 mm, B = 150 mm and Q

= 160 mm. Use eight-noded (quadratic) quadrilateral plane elements.

Solution to Example 4.3. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext. Next we present two different solutions

using different approaches to implement the clamped side.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 59: PrePostFE

Chapter 4. Boundary conditions 53

q q

(a) (b)

B

Q

Q

B

Figure 4.2: Short cantilever beams

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Distributed load on short cantilever: direct clamped

/PREP7 !start PRE-PROCESSOR MODULE

!Geometric parameters (mm)

L1=80 !clamped length

L2=40 !short side length

B=150 !distributed load span

th=5 !thickness

ET,1,PLANE183 !element type

KEYOPT,1,3,3 !plane stress with thickness

MP,EX,1,210000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson ratio for material #1

R,1,th !real constant #1, thickness for element #1

K,1,0,0 !geometry: keypoints

K,2,0,-L1

K,3,B,0

K,4,B,-L2

L,1,2,10 !line clamped with 10 divisions

L,1,3,15 !line where load is applied, 15 divisions

L,2,4,15

L,3,4,10

AL,1,2,3,4 !area creation from lines

AMESH,ALL !mesh generation

FINISH

/SOLU !start SOLUTION MODULE

DL,1,,ALL !campled line #1

SFL,2,PRES,5 !load on line #2

SOLVE !solve the current load state

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !deformed shape

PLNSOL,S,EQV !contour plot Von Mises equivalent stress

PLVECT,S !vector plot principal stress

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T4/PrePostFE_Ex403a.dat

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Distributed load on short cantilever: not direct clamped

/PREP7 !start PRE-PROCESSOR MODULE

!Geometric parameters (mm)

L1=80 !clamped length

L2=40 !short side length

B=150 !distributed load span

Q=160 !square side

th=5 !thickness

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 60: PrePostFE

54 Pre and post-process tools in finite element analysis

ET,1,PLANE183 !element type

KEYOPT,1,3,3 !plane stress with thickness

MP,EX,1,210000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson ratio for material #1

R,1,th !real constant #1, thickness for element #1

K,1,0,0 !geometry: keypoints

K,2,0,-L1

K,3,B,0

K,4,B,-L2

K,5,0,((Q-L1)/2)

K,6,0,-(L1+((Q-L1)/2))

K,7,-Q,((Q-L1)/2)

K,8,-Q,-(L1+((Q-L1)/2))

K,9,-Q,0

K,10,-Q,-L1

L,1,2,10

L,1,3,15 !line where load is applied, 15 divisions

L,3,4,10

L,2,4,15

L,1,5,5

L,5,7,16

L,7,9,5 !line clamped with 5 divisions

L,9,1,16

L,9,10,10 !line clamped with 10 divisions

L,10,8,5 !line clamped with 5 divisions

L,10,2,16

L,8,6,16

L,2,6,5

!areas definition from lines

AL,1,2,3,4 !area 1

AL,5,6,7,8

AL,8,9,11,1

AL,11,10,12,13

AMESH,ALL !mesh generation

FINISH

/SOLU !start SOLUTION MODULE

DL,7,,ALL !campled lines

DL,9,,ALL

DL,10,,ALL

SFL,2,PRES,5 !load on line #2

SOLVE !solve the current load state

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !deformed shape

PLNSOL,S,EQV !contour plot Von Mises equivalent stress

PLVECT,S !vector plot principal stress

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T4/PrePostFE_Ex403b.dat

After analysing the results of both short cantilever beam configurations, it can be concluded

that the inclusion of more material does not significatively affect the maximum values of the

achieved stress.

Example 4.4. Use plane strain conditions to simulate the cross-section of an hydraulic dam

shown in Fig. 4.3. The dam is made of reinforced concrete, E = 27000 MPa and ν = 0.25, and its

left side is full of water up to a height H = 30 m. The other dimensions of the dam are h = 20 m,

B = 4 m and b = 2 m. The density of the fluid contained by the dam is γ = 104 N/m3.

Solution to Example 4.4. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 61: PrePostFE

Chapter 4. Boundary conditions 55

Figure 4.3: Cross-section of the hydraulic dam.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, 2-D plane strain dam section

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters (mm)

H=30000 !left height

H1=20000 !right height

B=4000 !bottom base

B1=2000 !top base

t=1000 !thickness

D=0.00001 !fluid density in N/mm3

p=D*H !max pressure in N/mm2

ET,1,PLANE182 !element type

KEYOPT,1,3,2 !keyopt3=2, plane strain

!thickness is not used in plane strain

MP,EX,1,27000 !Young’s modulus

MP,NUXY,1,0.25 !Poisson

K,1,0,0 !geometry: keypoints

K,2,B,0

K,3,0,H1

K,4,B1,H1

K,5,0,H

K,6,B1,H

L,1,2,8 !lines by keypoints and divisions

L,1,3,20

L,2,4,20

L,3,4,8

L,3,5,10

L,4,6,10

L,5,6,8

AL,1,2,3,4 !areas by lines

AL,4,5,6,7

AMESH,ALL !mesh

FINISH

/SOLU !start SOLUTION MODULE!Boundary conditions

DL,1,,ALL !clamped nodes on base

!Apply pressure

SFGRAD,PRES,0,Y,0,-(p/H) !Gradient on surface load, type pressure, cartesian coordinate system,

! along Y direction, with slope -p/H

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 62: PrePostFE

56 Pre and post-process tools in finite element analysis

NSEL,S,LOC,X,0 !select left edge nodes

SF,ALL,PRES,p !apply pressure

NSEL,ALL

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !deformed shape

PLNSOL,S,EQV !Von Mises stress

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T4/PrePostFE_Ex404.dat

In this case, the cross-section of the dam acts as a cantilever beam under the effect of a

distributed load following a triangular distribution.

4.3 Constrain DOF of FE model

4.3.1 Constrained displacements and rotations

In a general FEA, a node can have more than one DOF. For example, if the FE model uses beam

elements in 2-D space we have three DOF: the horizontal displacement, the vertical displacement,

and the rotation around perpendicular axis to plane. When we constraint different DOF we define

different kinds of actual boundary conditions. In the 2-D beam element case if we constraint only

the horizontal and vertical displacements we get a simple support, if we constraint all the DOF

we obtain a clamped condition.

Hint 13: ANSYS command to constrain DOF on nodes

D, nnode, dir

where nnode is the node number, dir is the degree of freedom to impose, that is uy, ux or rotz.

4.3.2 Symmetry conditions

Symmetry conditions can be applied to reduce the size of the model without loss of accuracy.

However, to use such conditions the four types of symmetry must be present: geometry, boundary

conditions, material and loads. Under this condition the solution will be also symmetric. For

example, symmetry with respect to the y-z plane involves that the nodes on the symmetry plane

have the following conditions

ui(x) = 0 θi(y) = 0 θi(z) = 0 (4.2)

Symmetric boundary conditions on nodes in the symmetry plane involve the restriction of the

out-of-plane DOF translation and the restriction of the in-plane DOF rotations.

Example 4.5. Use a commercial FE code to find the theoretical stress concentration factor in a

rectangular notched bar made of aluminium, E = 190 GPa and ν = 0.3. The dimensions and the

load state is defined in Fig. 4.4. Use eight-noded (quadratic) quadrilateral plane elements.

Solution to Example 4.5. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 63: PrePostFE

Chapter 4. Boundary conditions 57

Figure 4.4: Rectangular notched bar, axial load 10 N/mm2.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Rectangular notched bar

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE183 !element type #1 PLANE82 8-node 2-D

KEYOPT,1,3,3 !keyoption3=3, plane stress with thickness

R,1,4 !real constant, thickness=4 mm

MP,EX,1,190e3 !elastic modulus in N/mm2

MP,PRXY,1,0.3 !Poisson coefficient

BLC4,0,0,50,18.5 !geometry: square area 50x18.5 mm

CYL4,0,20,7.5 !circular area center (0,20) and radius 7.5 mm

ASBA,1,2 !subtract previous areas

ESIZE,1.5 !define element size

MSHKEY,0 !free mesh method

AMESH,ALL !mesh

FINISH

/SOLU !start SOLUTION MODULE

DL,1,,SYMM !symmetry conditions in line 1

DL,9,,SYMM !symmetry conditions in line 9

SFL,2,PRES,-10 !apply pressure on line 2 (tension)

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLNSOL,S,EQV,2,1 !contour plot Von Mises equivalent stress, undeformed edge display, scale=1

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T4/PrePostFE_Ex405.dat

The stress in the net area without stress concentration is

σo =P

A=

10 · 37 · 4

25 · 4= 14.8 MPa

The maximum horizontal stress close to the notch obtained from FE model is 28 MPa. There-

fore, the concentration factor is

k =σmax

σo= 1.89

Axysymmetric conditions can be also used when revolution geometries are simulated. In the

following example inertial loads are applied in an axisymmetric model of a flywheel.

Example 4.6. Consider the steel flywheel schematized in Figure 4.5. Its inner diameter is 50

mm and its outer diameter is 600 mm. Assume that it is rotating at 2000 rad/s. Write an input

file for ANSYSTM which models this situation and computes the total inertia of the flywheel.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 64: PrePostFE

58 Pre and post-process tools in finite element analysis

rota

tio

n a

xis

Rin

Rcen1

Rr

Rout

Rcen2

B2

/2

B1

/2

B3

/2

B4

/2

Figure 4.5: Quarter section of a flywheel.

Solution to Example 4.6. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Flywheel

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters, this is a dynamic analysis and the international

!system units are used to avoid problems

Rin=25 !mm

Rcen1=Rin*4

Rout=300

Rcen2=250

B1=300

B2=90

B3=25

B4=200

Rr=Rcen2-(25)

ET,1,PLANE182,,,1 !element type with axysymmetric condition, KEYOPTION3=1

MP,EX,1,210e3 !Young modulus, N/mm^2

MP,PRXY,1,0.3 !Poisson

MP,DENS,1,7800e-9 !Density, kg/mm^3

K,1,Rin,0 !geometry: keypoints

K,2,Rin,B1/2

K,3,Rcen1,0

K,4,Rcen1,B2/2

K,5,Rcen1,B1/2

K,6,Rr,0

K,7,Rcen2,0

K,8,Rcen2,B3/2

K,9,Rcen2,B4/2

K,10,Rout,0

K,11,Rout,B4/2

L,1,2,10 !lines defined by keypoints

L,1,3,8

L,2,5,8

L,3,4,6

L,4,5,4

L,4,6,12

L,5,8,16

L,6,7,4

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 65: PrePostFE

Chapter 4. Boundary conditions 59

L,7,8,4

L,8,9,6

L,7,10,8

L,9,11,8

L,10,11,10

AL,1,2,3,4,5 !areas by lines

AL,5,6,8,9,7

AL,10,9,11,13,12

LCCAT,4,5 !concatenate lines in one to improve meshing

LCCAT,6,8 !it helps to obtain continuity in the mesh

LCCAT,9,10 !and avoid irregularities

AMESH,ALL

FINISH

/SOLU !start SOLUTION MODULE

DK,1,UY

OMEGA,,2000 !rotational speed in rad/s

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1

ETABLE,evol,VOLU !compute the volume of each node, save it with "evol" label

ETABLE,ecent,CENT,X !compute the centroidal of each node, save it with "ecent" label

SMULT,mass,evol,,7800e-9 !compute the total mass in label "mass" by multiplying 7800*evol

SMULT,mx,mass,ecent,1,1 !compute the first moment of inertia in label "mx" by multiplying

! mx=1*mass+1*ecent

SMULT,einer,mx,ecent,1,1 !compute element inertia in label "einer" by multiplying

! einer=1*mx+1*ecent

SSUM !calculates the summ of every element table item

*GET,totalinertia,SSUM,,ITEM,einer !compute total inertia (kg mm^2)

*STATUS,totalinertia !List of the parameter "totalinertia"

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T4/PrePostFE_Ex406.dat

Observe that although only a quarter section of the flywheel is modelled, the simulation takes

into account the whole flywheel and the total inertia is calculated.

4.3.3 Antisymmetry conditions

Antisymmetric conditions are similar to the symmetry conditions. They can be applied when

it exists symmetry of geometry, symmetry of boundary conditions, symmetry of material and

antisymmetry of loads. Antisymmetric boundary conditions involve the restriction of the in-plane

DOF translations of the nodes in the antisymmetry plane and the restriction of the out-of-plane

DOF rotations.

Hint 14: Symmetry conditions vs Antisymmetry conditions

The following table shows which are the DOF to restrict in function of the symmetry plane

normals.

Symmetry Antisymmetry

Normal 2D 3D 2D 3D

X UX, ROTZ UX, ROTZ, ROTY UY UY, UZ, ROTX

Y UY, ROTZ UY, ROTZ, ROTX UX UX, UZ, ROTY

Z – UZ, ROTX, ROTY – UX, UY, ROTZ

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 66: PrePostFE

60 Pre and post-process tools in finite element analysis

4.4 Superposition

The superposition principle states that linear problems can be decomposed as the addition of

several sub-problems. In large models involving symmetric geometry but un-symmetric loads

the superposition can be applied by decomposing the problem as the addition of a symmetric

problem and an antisymmetric one.

Example 4.7. Use a commercial FE code to find analyze the beam structure of Figure 4.6 made

of thin-walled circular tubes with an outer diameter of 20 mm and 4 mm thick. Use two-node

beam elements. Decompose the problem in a symmetric part and an antisymmetric part and

obtain the total displacements.

Figure 4.6: Geometrically symmetric unsymmetrically loaded beam structure

Solution to Example 4.7. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Superposition method of thin walled beam structure

/PREP7 !start PRE-PROCESSOR MODULE

!define parameters (mm)

length=3000

height=1000

Ri=6 !Inner radius of the tube

Ro=10 !Outer radius of the tube

ET,1,BEAM188 !element type #1: 3D beam (6 DoF)

KEYOPT,1,3,3 !element #1 keyoption 3=3 (cubic shape function)

SECTYPE,1,BEAM,CTUBE !section #1 = circular tube

SECOFFSET,CENT !centered section (offset=0)

SECDATA,Ri,Ro !inner radius, outer radius

MP,EX,1,210000 !Young’s modulus for material #1

MP,PRXY,1,0.25 !Poisson ratio for material #1

K,1,0,0 !geometry: keypoints

K,2,length/4,0

K,3,length/2,0

K,7,length/2,height

K,8,length/4,height/2

L,1,2,20 !define lines by keypoints and divisions

L,2,3,20

L,3,7,20

L,3,8,20

L,2,8,20

L,1,8,20

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 67: PrePostFE

Chapter 4. Boundary conditions 61

L,8,7,20

LMESH,ALL !mesh all lines

FINISH

/SOLU !start SOLUTION MODULE

!Symmetric case

DK,1,ALL,0 !define a DOF constraint at a keypoint

DK,3,UX,0,,,ROTZ !constrain displacement normal to symmetric plane

DK,7,UX,0,,,ROTZ

!DSYM,SYMM,X !to apply symmetry conditions on selected nodes

FK,8,FY,-75 !apply load to a keypoint

FK,7,FY,-100

LSWRITE,1 !write first load step

!Antisymmetric case

DKDELE,ALL,ALL !delete previous constrains in keypoints

DK,1,ALL,0

DK,3,UY,0 !constrain displacent in antisymmetic plane

DK,7,UY,0

FKDELE,ALL,ALL !delete previous forces in keypoints

FK,8,FY,-25 !apply load to a keypoint

LSWRITE,2 !write second load step

LSSOLVE,1,2 !solve load steps 1 and 2

FINISH

/POST1 !start POST-PROCESSOR MODULE

SET,1 !activate first load step solution

PLDISP,2 !deformed shape

PRRSOL,F !list reaction forces

SET,2 !activate second load step solution

PLDISP,2 !deformed shape

PRRSOL,F !list reaction forces

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T4/PrePostFE_Ex407.dat

Note that the addition of the vertical reaction force in node 1 for the two load steps results

in the total reaction force this node would have if the whole structure was simulated with the

specified loads.

4.5 Structural analysis with temperature change

Although we are focusing on structural problems we may also be interested in having some pre-

diction about our structure working at a different temperature. From the finite element software

point of view, we may understand this problem as something like:

K ·(

~δ − ~δT

)

= ~F (4.3)

where, again, K is the stiffness matrix, ~δ is the degree of freedom vector and ~F is the vector

containing the external actions, and ~δT is the variation on the degree of freedom caused by

thermal dilatation:

~δT = ~α · △T (4.4)

where ~α is the coefficient of thermal expansion (CTE) vector and△T the temperature change.

The ANSYS commands useful for these situations are summarised next.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 68: PrePostFE

62 Pre and post-process tools in finite element analysis

Hint 15: ANSYS commands for temperature change in structural analysis

ANSYS command Use

MP,CTEX,NMAT,VALUE CTE through X direction

MP,CTEY,NMAT,VALUE CTE through Y direction

MP,CTEZ,NMAT,VALUE CTE through Z direction

TREF,TEMP reference temperature (at which it is measured)

TUNIF,TEMP working temperature

Example 4.8. Compute the thermal strain and the total strain of the steel plate with a hole

shown in Figure 4.7. The dimensions of the plate are measured at a temperature of 25◦C while

it is expected to work at 80◦C. Note: The coefficient of thermal expansion for steel is 12 ×10−6

◦C−1.

Figure 4.7: Steel plate with thermal expansion (Dimensions in mm)

Solution to Example 4.8. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Temperature change in structural analysis

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

R=10 !radius in mm

L=100 !height in mm

T=5 !thickness in mm

p=1 !pressure in N/mm2

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 69: PrePostFE

Chapter 4. Boundary conditions 63

ET,1,PLANE182 !element type #1: plane solid

KEYOPT,1,1,3 !simplified enhanced strain formulation

KEYOPT,1,3,3 !element #1, keyopt 3=3, plane stress w/thickness

R,1,T !element thickness

MP,EX,1,207000 !Young’s modulus for material #1

MP,PRXY,1,0.25 !Poisson ratio for material #1

MP,CTEX,1,12e-6 !coefficient of thermal expansion for material #1

K,1,0,0 !geometry: keypoints

K,2,L,0

K,3,L,L

K,4,0,L

L,1,2,20 !define lines by keypoints and divisions

L,2,3,20

L,3,4,20

L,4,1,20

AL,1,2,3,4 !define areas by lines

CYL4,2*R,3*R,R !define circular hole

ASBA,1,2 !substract area 2 from area 1

AMESH,ALL !mesh area

FINISH

/SOLU !start SOLUTION MODULE

NSEL,S,LOC,X,0 !select left nodes

D,ALL,ALL !fix displacement

LSEL,S,LINE,,3 !select line 3

NSLL,S,1 !select all nodes on lines

SF,ALL,PRES,p !apply pressure on all selected nodes

NSEL,ALL

TREF,25 !reference temperature 25ºC

TUNIF,80 !uniform temperature 80ºC

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !deformed shape

PLNSOL,EPTH,X !thermal strain in direction X

PLNSOL,EPEL,X !elastic strain in direction X

PLNSOL,EPTT,X !thermal+elastic strain in direction X

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T4/PrePostFE_Ex408.dat

Observe that the value of the strain in the X direction is similar for the thermal expansion and

the elastic strain due to the mechanical load.

4.6 Loadcases

In many occasions the same structure is analyzed under different sets of boundary conditions

usually called loadcases. FE commercial codes allow to define these loadcases and to obtain the

solution separately for each of them.

Hint 16: ANSYS commands for load step definition

ANSYS command Usage

LSWRITE, LSNUM Write load steps with created loads

LSDELE, LSMIN, LSMAX, LSINC Delete load steps

LSSOLVE, LSMIN, LSMAX, LSINC Read and solve multiple load steps

SET, LSNUM Defines load step to be post-processed

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 70: PrePostFE

64 Pre and post-process tools in finite element analysis

Example 4.9. Reconsider the moebius tape sculpture of example 3.6 and introduce different

load cases considering: people walking on the structure, gravity load (density equal to 8 T/m3),

wind load.

Solution to Example 4.9. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all revious modules

/CLEAR !clear all previous models

/TITLE,Moebius Sculpture

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,BEAM188 !element type #1: BEAM188 (6 DoF)

KEYOPT,1,3,3 !element #1 keyoption 3=3 (cubic shape function)

SECTYPE,1,BEAM,CSOLID !section #1: preimetral beams, solid cylindrical

SECOFFSET,CENT !centered section (offset=0)

SECDATA,40 !section radius

SECTYPE,2,BEAM,RECT !section #2: internal beams, rectangular

SECOFFSET,CENT !centered section (offset=0)

SECDATA,10,60 !section width and height

SECTYPE,3,BEAM,RECT !section #3: bottom internal beams, rectangular

SECOFFSET,CENT !centered section (offset=0)

SECDATA,25,130 !section width and height

MP,EX,1,210000 !material #1: E=210000 MPa

MP,PRXY,1,0.29 !material #1: 0.29 Poisson

MP,DENS,1,8e-6 !material #1: density=8 T/m^3

/INPUT,nodes,txt !input nodes from file: ’nodes.txt’

SECNUM,1 !section set #1

E,101,102 !elements to generate the perimetral circles

EGEN,47,1,1

E,148,201

E,201,202

EGEN,47,1,49

E,248,101 !define first 96 elements

SECNUM,2 !section set #2

E,101,1,248 !define transversal elements

E,1,201,148

E,102,2,101

E,2,202,201

EGEN,47,1,99,100

ESEL,S,,,167,172 !redefine section bottom elements

EMODIF,ALL,SECNUM,3

ALLSEL !select everything

FINISH !finish PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

D,236,ALL !fix sculpture to floor

D,237,ALL

D,238,ALL

ACEL,,,10 !gravity load

LSWRITE,1 !first load step: only gravity load

F,12,FY,-500 !additional loads: somebody transit over sculture

F,13,FY,-500

F,14,FY,-500

LSWRITE,2 !second load step: gravity load + people

FDEL,12,ALL

FDEL,13,ALL

FDEL,14,ALL

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 71: PrePostFE

Chapter 4. Boundary conditions 65

/INPUT,wind,txt !wind load

LSWRITE,3 !third load step: gravity load + wind

LSSOLVE,1,3 !solve load states

FINISH !finish SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

SET,1

PLDISP,1

SET,2

PLDISP,1

SET,3

PLDISP,1

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T4/PrePostFE_Ex409.dat

4.7 Suggested problems

Problem 4.1. Reconsider the situation of Example 4.1. Solve the problem again but considering

that displacements and rotations are null at both tips of the footbridge. Compare both solutions

with the analytical solution you might know.

Problem 4.2. Reconsider the situation of Example 4.2 in a different constructive solution. Con-

sider that now it is an inclined roof and that, in addition to being supported by its four corners,

it is supported by a perfectly rigid beam located under one of its shorter sides. The inclination is

such that the beam supported edge is in a height of 1 m with respect to the opposite edge. Notice

that now the normal to the roof surface is not coincident with the gravity direction. Consider how

could you apply the snow load.

Figure 4.8: Inclined roof

Problem 4.3. Model the U-shaped beam shown in Figure 4.9 with ANSYSTM . The inner radius

of the beam is ri = 10 mm, the outer radius is ro = 30 mm, the thickness is t = 5 mm and the

length of the straight part is L = 30 mm. The material of the beam is steel, E = 210 GPa and

ν = 0.3, and the applied force is F = 100 N. Evaluate the value and location of the maximum

Von Mises stress. Parametrize the geometry of the model, the applied force and the material

properties. Show all work in a report.

(a) Model the whole geometry.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 72: PrePostFE

66 Pre and post-process tools in finite element analysis

(b) Repeat the problem now applying symmetry conditions. Consider carefully the applied

boundary conditions to avoid unreal stresses.

(c) Compare the solutions of (a) and (b) to verify you applied the boundary conditions correctly.

(d) Assume the reference temperature is 10◦ and obtain the thermal strain and the total strain

when the temperature of the structure is 60◦. The coefficient of thermal expansion for steel

is 12×10−6.

Figure 4.9: U-shaped beam.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 73: PrePostFE

Chapter 5

Linear elastic material models

5.1 Introduction

Material behaviors are very varied depending on different causes: the own physical constitution

of the material (metallic materials, geomaterials, polymers, etc), the range of applied strain, or

other physic parameters such as temperature, velocity of load application, large time behavior,

etc.

The main categorization between static non-time dependent models is between linear mate-

rial models (linear elastic models) and non-linear material models (materials with hyperelasticity,

plasticity, etc). An analysis with these non-linear models requires an iterative solution. This chap-

ter is focussed on linear models.

Linear material models for structural analysis are basically destined to study the linear elastic

response of materials.

Hint 17: ANSYS command to define linear elastic properties

Command Main Parameters

Define a linear material property as a

constant or a function of temperature

MP lab,mat,C0,C1,C2,C3,C4

Material property label (lab) for static structural analysis

EX - Elastic moduli (also EY, EZ) PRXY - Major Poisson’s ratios (also PRYZ, PRXZ) NUXY - Minor

Poisson’s ratios (also NUYZ, NUXZ) GXY - Shear moduli (also GYZ, GXZ) DENS - Mass density

These properties (which may be functions of temperature) are called linear properties be-

cause typical non-thermal analyses with these properties require only a single iteration.

X, Y, and Z refer to the element coordinate system. In general, if a material is isotropic, only

the EX, the PRXY and possibly the DENS terms are used.

The models should be defined in the different element types according to their formulation:

uniaxial models for one-dimensional elements (truss, pipes, etc.), plane models for bi-dimensional

elements (plane solid elements, beams, etc.), or three-axial approach for three-dimensional ele-

ments (shells, solids).

67

Page 74: PrePostFE

68 Pre and post-process tools in finite element analysis

5.2 One-dimensional elastic properties

The constitutive equation for a one-dimensional lineal material model is

σx = Eǫx (5.1)

The model only needs a single property, the Young’s modulus (E) (in ANSYS denoted by label

EX). If inertial loads are employed in any loadcase, the density should be also introduced (in

ANSYS denoted by label DENS). Examples 2.1, 2.2, 4.1, and so on use this material model.

5.3 Bi-dimensional and Three-dimensional elastic properties

Now, the material constitutive equation is a tensorial expression,

σij = Cijklǫkl (5.2)

Structural material properties must be input as an isotropic, orthotropic, or anisotropic ma-

terial.

5.3.1 Isotropic material

When the material is isotropic the stiffness tensor in plane linear elasticity is

C =E

1− ν2

1 ν 0

ν 1 0

0 01− ν

2

(5.3)

For a plane-stress case, E = E and ν = ν, while for a plane-strain or axisymmetrical model

E = E/(1− ν2) and ν = ν/(1− ν).

The stiffness tensor in isotropic solid linear elasticity is

C =

1

E

−ν

E

−ν

E0 0 0

−ν

E

1

E

−ν

E0 0 0

−ν

E

−ν

E

1

E0 0 0

0 0 01

G0 0

0 0 0 01

G0

0 0 0 0 01

G

−1

(5.4)

where G = E/2(1 + ν).

Only two properties are necessary to define this model: Young’s modulus (E) and the Pois-

son’s ratio (ν).

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 75: PrePostFE

Chapter 5. Linear elastic material models 69

Hint 18: ANSYS properties for isotropic linear elastic materials

In ANSYS, Young’s modulus must be input using the label EX. Poisson’s ratio (PRXY or NUXY)

should not be equal to or greater than 0.5, the value assumed by default is 0.3, if a zero value

is desired input PRXY or NUXY with a zero or blank value. The shear modulus (GXY) defaults to

EX/(2(1+NUXY)) (ANSYS internally converts PRXY to NUXY when solving the analysis). If GXY is

input, it must match EX/(2(1+NUXY)). Hence, the only reason for inputting the shear modulus

is to ensure consistency with the other two properties.

Isotropic Elastic Example: High Carbon Steel

MP,EX,1,210e3 !MPa

MP,PRXY,1,.29 !no units

MP,DENS,1,7850e-9 !kg/mm3

Examples 2.4, 2.6, 4.5 and so on use isotropic plane stress materials model. Examples 2.5, 2.2

and 4.4 use isotropic plane strain model. Example 4.6 uses isotropic plane strain with axysym-

metry. Example 3.10 uses solid isotropic material model.

5.3.2 Orthotropic material

The stiffness tensor in orthotropic solid linear elasticity is

C =

1

Ex

−νyxEy

−νzxEz

0 0 0

−νxyEx

1

Ey

−νzyEz

0 0 0

−νxzEx

−νyzEy

1

Ez0 0 0

0 0 01

Gyz0 0

0 0 0 01

Gxz0

0 0 0 0 01

Gxy

−1

(5.5)

where (νyx/Ey) = (νxy/Ex), (νzx/Ez) = (νxz/Ex), and (νzy/Ez) = (νyz/Ey). Depending on Ex, Ey,

and Ez values, the pairs related Poisson’s ratios become major o minor coefficients.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 76: PrePostFE

70 Pre and post-process tools in finite element analysis

Hint 19: ANSYS properties for orthotropic linear elastic material

In ANSYS, the properties required for an orthotropic material are:

• Young’s moduli, EX, EY, EZ,

• Poisson’s ratios, may be input in either major (PRXY, PRYZ, PRXZ) or minor (NUXY, NUYZ,

NUXZ) form, but not both for a particular material, and

• shear moludi GXY, GYZ, and GXZ.

Note that, for example, if only EX and EY are input (with different values) to a plane stress

element, an error will result indicating that the material is orthotropic and that GXY and NUXY

are also needed.

For axisymmetric analyses, the X, Y, and Z labels refer to the radial (R), axial (Z), and hoop

(θ) directions, respectively.

Orthotropic Elastic Example: Aluminum Oxide

MP,EX,1,307e3 !MPa

MP,EY,1,358.1e3 !MPa

MP,EZ,1,358.1e3 !MPa

MP,GXY,126.9e3 !MPa

MP,GXZ,126.9e3 !MPa

MP,GYZ,126.9e3 !MPa

MP,NUXY,1,.20 !no units

MP,NUXZ,1,.20 !no units

MP,NUYZ,1,.20 !no units

MP,DENS,1,3750e-9 !kg/mm3

Example 5.1. Use ANSYS to model a rectangular plate with dimensions ax =4000 mm, ay =2000

mm, thickness t =10 mm subjected to a uniform tensile load q0 = 1200 N/mm applied in the 2000

mm edge. The material is an unidirectional laminate AS4D/9310 which elastic properties are

summarised in Table 5.1, with the fibers oriented in the x-axis. Obtain the elongation of the plate

under the applied load and compare it with the analytical solution obtained using Hooke’s Law.

Table 5.1: Material properties of unidirectional AS4D/9310 carbon/epoxy composite.

Property AS4D/9310

E1 133.86 GPa

E2 = E3 7.71 GPa

G12 = G13 4.36 GPa

G23 2.76 GPa

ν12 = ν13 0.301

ν23 0.396

Solution to Example 5.1. As the problem can be considered as a 2D situation, one of the

coordinates, in the thickness direction, can be eliminated from the governing equations so that

the 3D problem simplifies to 2D. In the process, the thickness becomes a parameter, which is

known and supplied to the modeling software. Typically, we differentiate material properties and

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 77: PrePostFE

Chapter 5. Linear elastic material models 71

parameters even though both are supplied as known input data. Most software packages make

this difference as well. For example, the solid thickness is supplied to ANSYS as a real constant

set (R command), while material properties are entered separately (MP command).

In the FE model we use PLANE183, a 8-node bi-dimensional solid element. Symmetry with

respect to the x − z and y − z planes is used to model 1/4 of the plate. The ANSYSTM command

sequence for this example is listed below. You can either type these commands on the command

window, or you can type them on a file, then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE,Rectangular plate under distributed load

/PREP7 !start PRE-PROCESSOR MODULE

t=10 !thickness

ET,1,PLANE183,,,3 !element type #1, 2D solid, plane stress w/thickness

R,1,t !real constant #1, thickness

!material properties FOR AS4D/9110 orthotropic laminate

MP,EX,1,133.86e3 !MPa

MP,EY,1,7.706e3

MP,EZ,1,7.706e3

MP,GXY,1,4.36e3

MP,GYZ,1,2.76e3

MP,GXZ,1,4.36e3

MP,PRXY,1,0.301

MP,PRYZ,1,0.396

MP,PRXZ,1,0.301

RECTNG,0,2000,0,1000 !geometry: square area

ESIZE,250 !element size 250 mm

AMESH,all !mesh the area

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,STATIC !static analysis

DL,1,1,SYMM !symmetry conditions in line 1

DL,4,1,SYMM

SFL,2,PRES,-1200/t !apply uniform pressure N/mm in line #2

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !plot deformed shape

PLESOL,S,X !contour plot of x direction stress

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T5/PrePostFE_Ex501.dat

The obtained maximum displacement of the model is 1.813 mm, due to used symmetry condi-

tions, the total elongation of the plate is the double, ∆L = 3.626 mm. Applying the Hooke’s Law

the total elongation is

∆L = FL

E A= q0

axEx t

= 3.586mm

Consequently, both solutions are consistent with each other.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 78: PrePostFE

72 Pre and post-process tools in finite element analysis

5.3.3 Anisotropic material

The stiffness tensor for an general anisotropic material with linear elasticity is

C =

C11 C12 C13 C14 C15 C16

C22 C23 C24 C25 C26

C33 C34 C35 C36

Sym C44 C45 C46

C55 C56

C66

(5.6)

which is defined by 21 constants.

Hint 20: ANSYS properties for anisotropic linear elastic material

In ANSYS the order of the vector is expected as {x, y, z, xy, yz, xz}, whereas in the Voigt nota-

tion the order is given as {x, y, z, yz, xz, xy}.

The anisotropic values are defined in ANSYS using TB,ANEL,1 and one TBDATA command for

each value (see example next). The sequence number in TBDATA command is obtained following

the rows showed in the above stiffness tensor (C11, C12, C13, C14, C15, C16, C22, C23...).

Anisotropic Elastic Example: Cadmium

MP,DENS,1,3400e-9 !kg/mm3

TB,ANEL,1

TBDATA,1,121e3 !C11 (MPa)

TBDATA,2,48.1e3 !C12 (MPa)

TBDATA,3,44.2e3 !C13 (MPa)

TBDATA,7,121e3 !C22 (MPa)

TBDATA,8,44.2e3 !C23 (MPa)

TBDATA,12,51.3e3 !C33 (MPa)

TBDATA,16,18.5 !C44 (Pa)

TBDATA,19,18.5 !C55 (Pa)

TBDATA,21,24.2 !C66 (Pa)

Only some elements in ANSYS have the anisotropic elasticity capability (SOLID5, PLANE13,

SOLID64, SOLID98, SHELL181, PLANE182, PLANE183, SOLID185, SOLID186, SOLID187,

among others).

5.4 Element coordinate system

During the definition of the model when we use orthotropic or anisotropic material, we need

to be sure about that the material properties are applied in the correct orientation. In most of

FEA commercial codes, the material coordinate system is associated to the element coordinate

system, one right-handed orthogonal system associated to each element. Also, the element co-

ordinate system can be used to obtain the derived results (strains and stress) in these material

directions.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 79: PrePostFE

Chapter 5. Linear elastic material models 73

The orientation of the element coordinate system is associated with the element typology. For

bar or beam elements the orientation of the x-axis is generally along the element line defined

by two end nodes. For solid elements (in two and three dimension), generally the orientation is

defined parallel to the global or geometric coordinate system. However, for shell elements this is

not useful as the x and y directions must be defined on the element surface and the z-axis always

normal to it. The default orientation of x and y axes depends of the commercial code and the

element type.

There are various ways to define the default orientation of x and y in shell elements. Two

of them are shown in Fig. 5.1. In Fig. 5.1(a) the x-axis is aligned with the edge defined by the

first and second nodes of each element, the z-axis normal to the shell surface (with the outward

direction determined by the right-hand rule), and the y-axis perpendicular to the x- and z-axis

(ANSYS uses this rule as default). Other packages, such as MSC.MARC, calculate the orientation

of x-axis from the lines defined by the middles points of the edges as shown in Fig. 5.1(b).

Figure 5.1: Default orientations of element (or material) coordinate systems in shells elements:

(a) ANSYS, (b) MSC.MARC.

In the example 5.1, we have defined only a rectangular plate with rectangular elements and all

of them have the first and the second nodes aligned with the global x-axis. The material axes have

been chosen parallel as the global axis. But this is not the general case. Most commercial codes

have utilities to control or change the element coordinate system. In Example 5.2, it is shown

how it can be done in a shell with curvature, and in Example 5.3, how different orientations in

different locations of the structure can be defined.

Example 5.2. Define a 3D curved shell in ANSYS and mesh it aligning the coordinate system of

the elements with the global y-axis.

Solution to Example 5.2. For shells defined in 3D, the ESYS orientation uses the projection of

the local system on the shell surface. The element x-axis is determined from the projection of the

local x-axis on the shell surface. The z-axis is determined normal to the shell surface (with the

outward direction determined by the right-hand rule), and the y-axis perpendicular to the x- an

z-axis. For elements without midside nodes (linear shape functions), the projection is evaluated

at the element centroid and it is assumed constant in direction throughout the element. For

elements with midside nodes (quadratic shape functions), the projection is evaluated at each

integration point and may vary in direction throughout the element.

In ANSYS a local coordinate system, which can be cartesian, cylindrical or spherical, must

defined using the LOCAL command. Then, each element is associated to a previously defined local

coordinate system using the element property ESYS. The result is the orientation of the x-axis

element coordinate system parallel to x-axis local coordinate system. Also, it is possible to define

element coordinate system orientations by user written subroutines.

The ANSYSTM command sequence to align the element x-axis with the global y-axis for this

example is listed below. You can either type these commands on the command window, or you

can type them on a file, then, on the command window enter /input, file, ext.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 80: PrePostFE

74 Pre and post-process tools in finite element analysis

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Element orientation in a curved shell

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SHELL281 !element type #1: SHELL281 (6 DOF)

SECTYPE,1,SHELL !section #1 = shell

SECDATA,5 !thickness

K,1,30,0,2 !define geometry by keypoints and lines

K,2,0,5,5

K,3,-30,0,2

K,4,20,35,0

K,5,0,35,2

K,6,-20,35,0

L,1,4

L,3,6

BSPLIN,1,2,3 !create spline between nodes 1, 2 and 3

BSPLIN,4,5,6 !create spline between nodes 4, 5 and 6

AL,ALL !create a area with all lines

LOCAL,11,0,8,,,90,0,0 !define local coord. system, with label 11,according to cartesian

!coordinate system, with origin in point (8,0,0)

!and rotation about local Z,X,Y equal to (90º,0º,0º)

ESYS,11 !set coord. system for elements meshed

ESIZE,7 !define element size

AMESH,1 !mesh the area #1

CSYS,0 !go back to default coord. system

/PSYMB,ESYS,1 !set on display laminate orientation

/TYPE,1,0 !not hidden surfaces

/VSCALE,1,1.5,0 !change arrow scaling

EPLOT !display elements

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T5/PrePostFE_Ex502.dat

The results of the orientation of the elements coordinate systems can be observed in Figure

5.3. The element coordinate systems may be displayed as a triad with the /PSYMB command with

the label ESYS.

Figure 5.2: Element coordinate system orientation, not using "ESYS" command (left) and using

"ESYS" command (right).

Example 5.3. Model in ANSYS a flange pipe with axial and radial material orientation. In the

cylindrical part the reference axis (x-axis) will be in longitudinal direction. In the flange the

reference axis will be radial (see Fig. 5.3).

Solution to Example 5.3. In the model different orientation systems in different model locations

must be defined. Two local reference axes are defined and activated using the ESYS command.

Then, the elements on the cylindrical part are aligned to the axial direction and the elements on

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 81: PrePostFE

Chapter 5. Linear elastic material models 75

Figure 5.3: Reference x-axis in a pipe flange.

the flange are aligned according to the radial direction. The ANSYSTM command sequence for

this example is listed below. You can either type these commands on the command window, or

you can type them on a file, then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Flange pipe with axial and radial material orientations

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SHELL281 !element type #1 SHELL281 (6 DOF)

SECTYPE,1,SHELL !section #1 = shell

SECDATA,5 !thickness

CYL4,0,0,350,,,,300 !create geometry by solid modeling

CYL4,0,0,350,,550

AGLUE,3,4,5 !glue areas, area 5 becomes area 6

LOCAL,11,0,,,,0,0,90 !define rotation=90 deg around Y (cylinder)

LOCAL,12,1,,,,0,0,0 !define polar coordinate system (flange)

ESIZE,50 !define element size

ESYS,11 !set coord. system for elements meshed

AMESH,3,4 !mesh the cylindrical areas (areas 3 and 4)

ESYS,12 !set coord. system for elements meshed

AMESH,6 !mesh the flange area (area 6)

CSYS,0 !go back to default coord. system

/PSYMB,ESYS,1 !set on display local orientation

/TYPE,1,0 !not hidden surfaces

EPLOT !display elements

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T5/PrePostFE_Ex503.dat

Observe that independently of the geometry of the element, all the element coordinate systems

in the cylindrical part are oriented in the longitudinal direction and those of the flange part are

oriented in the radial direction.

5.5 Suggested problems

Problem 5.1. Reconsider the rectangular plate made of an orthotropic material described in

Ex.5.1 but introducing the same material properties by using the anisotropic behavior option

command instead of the orthotropic one. Check that the obtained results are identical to those

of Ex. 5.1.

Problem 5.2. Using PLANE182 element, generate a mesh from the spring geometry shown in

Figures 5.4, where L =100 mm, ri =10 mm ,ro =30 mm and thickness equal to 10mm. The spring

is made of the same orthotropic material as in Ex. 5.1. The dashed line on middle of the strip

shows the y-axis of the material orientation. Report graphically the obtained mesh and show the

material axis orientation.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 82: PrePostFE

76 Pre and post-process tools in finite element analysis

Figure 5.4: Spring geometry.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 83: PrePostFE

Chapter 6

Postprocessing

6.1 Introduction

The gathering, interpretation and understanding of the calculated results in a Finite Element

problem is as important as a good definition of the boundary conditions, type of element, etc. In

this chapter, different useful methods to obtain and analyze the calculated results are presented.

All Finite Element programs have the possibility to analyze the obtained results by using two

different methods: general postprocessing and time-history postprocessing. The first method is

intended to review the results for the whole model at specific steps and sub-steps (specific time-

increments of frequencies). With this method, for instance, the stress distribution in the model

can be plotted for a structural analysis. The second method allows to obtain the variation of a

certain variable or result item at particular locations in the model with respect to time, frequency

or other result variables. In a nonlinear structural analysis, for example, the deflection of a

certain node can be plot versus time or the applied load.

Hint 21: ANSYSTM methods for post-processing

• The general postprocessing in ANSYSTM is carried out by using the General Postproc

option in the Main Menu or invoking the /POST1 module in a command script.

• The time-history postprocessing in ANSYSTM is carried out by using the TimeHist Postpro

option in the Main Menu or invoking the /POST26 module in a command script.

A brief description of both methods in ANSYSTM is included in the following sections.

6.2 General postprocessing

The general postprocessor is used to review the results for the entire model or parts of the

model for a specific time, frequency or step. In this module, simple graphic representations

of the results can be obtained as well as listing the results in a table and more complex data

manipulation. By default, different results are directly obtained after a simulation. These results

depend on the type of analysis and the type of element used.

77

Page 84: PrePostFE

78 Pre and post-process tools in finite element analysis

Reading results data

The first step to analyze the obtained results is to handle the results for the specific step, sub-step

or time increment desired. By default, most of the commercial Finite Element programs read the

results data for the last calculated increment.

Hint 22: ANSYSTM methods for reading results data

• SET reads all the results data from the results file for the whole model at a particular

time.

• SUBSET reads all the results data from the results file for specific parts of the model at

a particular time. Other commands such as LAYER, TOP, MID, BOTTOM can be used to

specify particular parts of the model where results are to be considered.

• APPEND reads all the results data from the results file for the whole model at a particular

time and adds them to the previously stored results data.

Reading selected results data

Most of the results data, such as stresses, strains, reaction forces and displacements in a struc-

tural analysis, are available during postprocessing in commercial Finite Element codes. In some,

these data results need to be specified beforehand (this is the case of ABAQUSTM , for instance).

In others, not all the data results are directly available in the general postprocessing but have to

be obtained afterwards (this is the case of ANSYSTM ).

Hint 23: ANSYSTM methods for reading selected results data

• In ANSYSTM some results (depending on the analysis and element type) must be accessed

by creating an Element Table, ETABLE.

• ETABLE allows accessing, storing and manipulating data results for afterwards represen-

tation.

• The filling of the element table and the use of the command ETABLE must be specifically

done in accordance to the available results for the considered element type and analysis

type. It is strongly recommended to check which results are available for the element and

analysis type and identify the variable names or numbers that correspond to the desired

results.

Coordinate system for the results data

Commercial Finite Elements codes allow reviewing the results data in different coordinate sys-

tems. Usually, results are calculated and stored in the nodal or the element coordinate systems

and rotated into the active coordinate system, which, by default, is the global cartesian system.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 85: PrePostFE

Chapter 6. Postprocessing 79

These results, can be afterwards rotated into any previously defined coordinate system for dis-

play, list and storage.

Hint 24: ANSYSTM coordinate systems for results data

• Use RSYS,0 to obtain the results in the global cartesian coordinate system (default).

• Use RSYS,1 to obtain the results in the global cylindrical coordinate system.

• Use RSYS,2 to obtain the results in the global spherical coordinate system.

• Use RSYS,N to obtain the results in the local coordinate system N .

• Use RSYS,SOLU to obtain the results in the nodal or element coordinate systems.

Manipulation of the results data

Most commercial Finite Elements programs allow the manipulation of the data results, including

arithmetic operations, comparisons, failure criteria definition, etc.

Hint 25: ANSYSTM manipulation of results data

• Use SADD to add two different specified stored results.

• Use SMULT to multiply two different specified stored results.

• SEXP can be used to exponentiate and multiply two different specified stored results.

• SMIN and SMAX allow to compare and obtain the minimum and maximum, respectively, of

two different specified stored results.

• SALLOW can be used to define the allowable stress for safety factor calculations.

• SFCALC calculates safety factors for stored results.

Reviewing results data

All the commercial Finite Elements codes allow reviewing the results data both in graphical plots

and listings.

Graphical plots include different options such as contour displays, deformed shapes, vector

plots, path plots, etc. Contour plots display the variation of the results variable over the model.

Deformed shapes represent the final shape of the system in equilibrium after taking into account

all the boundary conditions and loads. Vector plots show the variation and direction of a vector

quantity result using arrows. Path plots are useful to observe the variation of a results variable

along a predefined path.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 86: PrePostFE

80 Pre and post-process tools in finite element analysis

Hint 26: ANSYSTM methods for graphically reviewing results data

• PLNSOL displays continuous contour lines over the entire model.

• Use PLESOL to display contour lines that are discontinuous across the elements.

• PLETAB displays contour lines of stored data in element tables.

• Use PLDISP to display the deformed shape of the model.

• PLVECT generates vector displays using arrows.

• PLPATH plots the results data on the predefined path.

Listings are an efficient tools to report resulting nodal, element solution and reaction data.

Hint 27: ANSYSTM methods for listing results data

• Use PRNSOL to list specified nodal solution data.

• Use PRESOL to list specified results for the selected elements.

• PRRSOL lists the node reactions for the selected nodes.

• PRNLD lists the summed element nodal loads for the selected nodes.

Example 6.1. Consider the clamped beam simulated in Chapter 1 and the input file generated

in Ex. 1.2. After simulating the beam, postprocess the results and plot the deformed shape of the

beam, the contour plots for the distribution of longidtudinal stress, equivalent (Von Mises) stress

and principal elastic strain and list the reaction forces for 5th and the last substeps.

Solution to Example 6.1. As it was already explained in Chapter 1, the requested plots can be

obtained by means of the GUI menus, the Results Viewer module or commands. In this case, an

input file with all the required commands is used. The ANSYSTM command sequence for this

example is listed below.

/POST1 !start Post-Processor module

SET,1,5 !set step 5

PLDISP,1 !plot the deformed shape

PLESOL,S,X,0,1. !contour plot of stress in X-direction

PLESOL,S,EQV,0,1. !contour plot of Von Mises stress

PLESOL,EPEL,1,0,1. !contour plot of principal strain

PRRSOL !list of reaction forces

SET,1,LAST !set last step (default)

PLDISP,1 !plot the deformed shape

PLESOL,S,X,0,1. !contour plot of stress in X-direction

PLESOL,S,EQV,0,1. !contour plot of Von Mises stress

PLESOL,EPEL,1,0,1. !contour plot of principal strain

PRRSOL !list of reaction forces

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T6/PrePostFE_Ex601.dat

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 87: PrePostFE

Chapter 6. Postprocessing 81

Observe that as the analysis is linear elastic, the results for the 5th substep are half of those

for the last.

Example 6.2. Consider the clamped beam simulated in Chapter 1 and the input file generated

in Ex. 1.2. After simulating the beam, postprocess the results and obtain the variation of the

equivalent stress along the vertical line defined by the nodes on the centre of the clamped section.

Solution to Example 6.2. The ANSYSTM commands to define the required pathplot, obtain the

results along this pathplot and represent it are summarised in the following input file.

/POST1 !start Post-Processor module

PATH,vertax,2 !definition of PATH "vertax" by 2 points

PPATH,1,,0,0,100 !start node located on X,Y,Z

PPATH,2,,0,100,100 !end node located on X,Y,Z

/PBC,PATH,1 !show path

/REPLOT

PDEF,Svertax,S,X,AVG !project x-stress on path, name it ’Svertax’

PLPATH,Svertax !plot defined ’Svertax’

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T6/PrePostFE_Ex602.dat

Observe that as expected for a linear elastic analysis, the variation of the equivalent stress

along the path is linear.

Example 6.3. A clamped plate 100 mm long, 25 mm wide and 5 mm thick is made of AS4D/9310

unidirectional composite material (see Ex. 5.1 for material properties). The material is oriented

at 45◦ with respect to the longitudinal axis of the plate. The plate is bended 10 mm at the free

end. Simulate the plate using shell elements and postprocess the results to obtain the contour

plot of the resulting stresses in the material. As a simple failure criterion, it is assumed that the

material fails when the absolute value of the stress in the fibre direction is equal or greater than

500 MPa. Compute the failure criterion and obtain its contour plot.

Solution to Example 6.3. The ANSYSTM commands to generate, simulate and postprocess the

previous model are listed in the summarised input file.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Clamped plate

L=100 !plate length

B=25 !plate width

h=5 !plate thickness

fi=45 !orientation angle

FA=500 !allowable fibre stress

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SHELL181 !element type #1: SHELL181 (6 DoF)

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration incompatible modes)

SECTYPE,1,SHELL !shell section type for material#1

SECDATA,h !section data, with thickness h=5mm

MP,EX,1,133.86E3 !material is UD AS4D/3100 Carbon/Epoxy

MP,EY,1,7.706E3

MP,EZ,1,7.706E3

MP,GXY,1,4.36E3

MP,GYZ,1,2.76E3

MP,GXZ,1,4.36E3

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 88: PrePostFE

82 Pre and post-process tools in finite element analysis

MP,PRXY,1,0.301

MP,PRYZ,1,0.396

MP,PRXZ,1,0.301

RECTNG,0,L,0,B !creates a rectangle with x=L and y=B

ESIZE,5 !element size 5 mm

LOCAL,11,0,,,,fi !define material orientation

ESYS,11 !use material orientation

AMESH,ALL !mesh the area

CSYS,0 !return to global system

FINISH

/SOLU

NSEL,S,LOC,X,0 !select encastred nodes

D,ALL,ALL !fix encastred nodes

NSEL,S,LOC,X,L !select end nodes

D,ALL,UZ,-10 !apply displacement end nodes

NSEL,ALL !select all

SOLVE !solve the current load case

FINISH

/POST1

/VIEW,1,1,1,1 !iso-view

PLNSOL,S,X,2,1 !stress in direction 1, global

RSYS,11 !results in material orientation

PLNSOL,S,X,2,1 !stress in direction 1, local

ETABLE,S1,S,X !store fibre stress as S1

SABS,1 !use absolute values

SMULT,FF,S1,,1/FA !store fibre failure as FF

PLETAB,FF,AVG !plot fibre failure, averaged

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T6/PrePostFE_Ex603.dat

Observe that the stress contour plots depend on the coordinate system employed. If the global

coordinate system is used, the x-stress is in the longitudinal direction of the plate while when the

element coordinate system is used, the x-stress corresponds to the fibre stress.

The contour plot of the longitudinal stress in the material direction shows a maximum of

789.67 MPa, which is higher than the material allowable stress in the fibre direction. However,

the contour plot for the assumed failure criterion shows a maximum of 0.75, indicating that there

is no material failure. This incoherence is due to the fact that the failure criterion employed

has been calculated using the ETABLE command and element results. Actually, ETABLE assumes a

unique interpoled value for the whole element from the nodal values. In this way, part of the in-

formation is lost and some differences appear. These differences can be reduced by reducing the

size of the element or performing a mesh quality assessment (see Section 6.5). Try to recalculate

the same example using smaller elements and compare the results.

Another possibility to obtain more accurate results, especially for failure prediction, is to use

the nodal results. In ANSYSTM the FC command can be used for this purpose. The following

input file shows an example of the use of the maximum stress failure criterion in the previous

example.

/POST1

!Failure criterion definition and calculation

FC,1,S,XTEN,500 !mat1,stress,max stress 11t

FC,1,S,XCMP,-500 !mat1,stress,max stress 11c

FC,1,S,YTEN,1e6 !mat1,stress,max stress 22t (large value, don’t compute)

!max stress 22c=-22t

FC,1,S,ZTEN,1e6 !mat1,stress,max stress 33t (large value, don’t compute)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 89: PrePostFE

Chapter 6. Postprocessing 83

!max stress 33c=-33t

FC,1,S,XY,1e6 !mat1,stress,max stress 12 (positive, large value, don’t compute)

FC,1,S,YZ,1e6 !mat1,stress,max stress 23 (positive, large value, don’t compute)

FC,1,S,XZ,1e6 !mat1,stress,max stress 13 (positive, large value, don’t compute)

PRNSOL,S,FAIL !print table with FAIL index

PLNSOL,FAIL,SMAX !maximum stress failure criterion

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T6/PrePostFE_Ex603_fail.dat

Observe that in this case the predicted failure index almost doubles that of the initial calcula-

tion.

6.3 Time-history postprocessing

The time-history postprocessor is used to review the results for specific parts of the model as

a function of time or frequency. As in the case of the general postprocessor, it is also possible

to obtain graphic plots and listings as well as perform data manipulation. General uses of the

time-history postprocessing include the variation plot of a certain result as a function of time in

a transient analysis or obtain the force-deflection plot in a nonlinear structural analysis.

Obtaining results data

The first step to analyse the obtained results is to handle the results for the specific part of the

model and assign them to a results variable.

Hint 28: ANSYSTM methods for reading time-history results data

In the time-history postprocessor of ANSYSTM different data results for specific locations are

retreived from the results file by using different commands and assigning them a numerical

label.

• Use NSOL to specify the nodal data from the results file to be stored.

• ESOL specifies the element data from the results file to be stored.

• Use ANSOL to specify the averaged nodal data from the results file to be stored in the

solution coordinate system.

• RFORCE specifies the total reaction force to be stored.

Manipulating results data

Once the time-history result variables are defined, they can be manipulated and combined to

obtain new variables.

Hint 29: ANSYSTM methods for manipulating time-history results data

In the time-history postprocessor of ANSYSTM there are different commands to manipulate

and combine result variables in order to obtain new ones. Some of the more useful are:

ABS, ADD, ATAN, EXP, PROD, SQRT. Check their use in the HELP module.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 90: PrePostFE

84 Pre and post-process tools in finite element analysis

Reviewing results data

As in the case of the general postprocessing, time-history variables can be both graphically dis-

played and listed.

Hint 30: ANSYSTM methods for reviewing time-history results data

• Use PLVAR to graph the result variables. Up to ten variables can be plot.

• XVAR specifies the result variable to be used for the X-axis in the graphs. By default, is

time in static and transient analyses and frequency in harmonic analyses.

• PRVAR lists up to six specified result variables. Times or frequencies for which results are

to be listed can be controlled with NPRINT and PRTIME.

Example 6.4. Consider the clamped beam simulated in Chapter 1 and the input file generated

in Ex. 1.2. After simulating the beam, postprocess the results and obtain the evolution of the

longitudinal stress and strain at the top node of the vertical line on the centre of the clamped

section. Plot the evolution of both variables in a combined plot versus time taking into account a

scale factor if necessary. List the results and plot the variation of the longitudinal stress versus

the longitudinal strain.

Solution to Example 6.4. The ANSYSTM command sequence for obtaining the time-history

postprocessing of this example is listed below.

/POST26 !history plot module

ANSOL,2,708,EPEL,X,EPELX !create evolution of x-strain at node 708, name it as EPELX

!and save it with reference number 2

ANSOL,3,708,S,X,SX !create evolution of x-stress at node 708, name it as SX

!and save it with reference number 3

PROD,4,2,,,EPELX5,,,1e5 !create a new variable, with 4 as number reference and EPELX5

!as name, that takes the variable with reference number 2 and applies

!a scaling factor of 1e5

PLVAR,EPELX5,SX !plot x-strain (scaled) and stress evolution

PRVAR,EPELX,SX !list x-strain and stress evolution

XVAR,2 !set the variable with reference number 2 to be on the x-axis

PLVAR,SX !plot the variable SX versus EPELX (x-stress versus x-strain)

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T6/PrePostFE_Ex604.dat

Observe that the longitudinal stress is proportional to the longitudinal strain, as expected for

a linear elastic model. A scale factor of 1× 105 has been considered to plot in the same graph the

evolution of the longitudinal stress and strain.

6.4 Result analysis of combined stresses or strains

When performing a structural simulation, the comparison between the resulting strains or stresses

with an allowable value in a uniaxial model is straightforward. However, when there is more than

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 91: PrePostFE

Chapter 6. Postprocessing 85

one component of strain or stress, these components are normally combined into one resulting

strain or stress and then compared with the allowable value. Especific techniques for strain and

stress combination are presented next.

6.4.1 Combined strain

Principal strains can be calculated from the strain components by the cubic equation:

εx − ε0 γxy/2 γxz/2

γxy/2 εy − ε0 γyz/2

γxz/2 γyz/2 ǫz − ε0

= 0 (6.1)

where ε0 are the three solutions and principal strains. The three principal strains are labeled ǫ1,

ǫ2, and ǫ3 (in ANSYSTM output as 1, 2 and 3 with strain items such as EPEL). The principal strains

are ordered so that ǫ1 is the most positive and ǫ3 is the most negative.

The strain intensity ǫI (output as INT with strain items such as EPEL) is the largest of the

absolute values of ǫ1 - ǫ2, ǫ2 - ǫ3, or ǫ3 - ǫ1. That is:

ǫI = max (|ǫ1 − ǫ2|, |ǫ2 − ǫ3|, |ǫ3 − ǫ1|) (6.2)

The von Mises or equivalent strain ǫe (in ANSYSTM output as EQV with strain items such as

EPEL) is computed as

ǫe =1

1 + ν

(

1

2

(

(ǫ1 − ǫ2)2 + (ǫ2 − ǫ3)

2 + (ǫ3 − ǫ1)2)

)1

2

(6.3)

6.4.2 Combined stress

Principal stresses are calculated from the stress components by the cubic equation:

σx − σ0 σxy σxzσxy σy − σ0 σyzσxz σyz σz − σ0

= 0 (6.4)

where σ0 are the three solutions and principal stresses. The three principal stresses are labeled

σ1, σ2 and σ3 (in ANSYSTM output as S1, S2 and S3). The principal stresses are ordered so that

σ1 is the most positive and σ3 is the most negative.

The stress intensity σI (in ANSYSTM output as SINT) is the largest of the absolute values of

σ1 - σ2, σ2 - σ3, or σ3 - σ1. That is:

σI = max (|σ1 − σ2|, |σ2 − σ3|, |σ3 − σ1|) (6.5)

The von Mises or equivalent stress σe (in ANSYSTM output as SEQV) is computed as

σe =

(

1

2

(

(σ1 − σ2)2 + (σ2 − σ3)

2 + (σ3 − σ1)2)

)1

2

(6.6)

Example 6.5. Graph the contour plots of the principal and equivalent (Von Mises) strains and

stresses for the cantilever beam simulated in Ex. 1.2. Also graph the contour plot of the stress

and strain intensity and a vector plot of the principal stress and strain.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 92: PrePostFE

86 Pre and post-process tools in finite element analysis

Solution to Example 6.5. The following ANSYSTM input file can be used to obtain the above

strains and stresses contour plots and vector plots.

/POST1 !start Post-Processor module

PLNSOL,S,1 !contour plot of 1st principal stress

PLNSOL,S,2 !contour plot of 2nd principal stress

PLNSOL,S,3 !contour plot of 3th principal stress

PLVECT,S !vector plot of principal stress

PLNSOL, S,INT, !contour plot of stress intensity

PLNSOL, S,EQV, !contour plot of Von Mises stress

PLNSOL,EPEL,1 !contour plot of 1st principal strain

PLNSOL,EPEL,2 !contour plot of 2nd principal strain

PLNSOL,EPEL,3 !contour plot of 3th principal strain

PLVECT,EPEL !vector plot of principal strain

PLNSOL,EPEL,INT !contour plot of strain intensity

PLNSOL,EPEL,EQV !contour plot of Von Mises strain

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T6/PrePostFE_Ex605.dat

Observe that in the vector plot of the principal strains and stresses, the maximum principal

stress and strain are located on the top part of the beam, while the minimum principal stress

and strain are located on the bottom part of the beam and represented by an inverted arrow

(negative). In both cases, the direction of the arrows is longitudinal with the beam, indicating

the direction of the principal stress and strain directions. Also observe that the size of the arrow

is proportional to the value of the represented stress or strain.

The equivalent (Von Mises) stress and strain can be also calculated using the ETABLE com-

mand. However, as in the case of Ex. 6.3, there is a certain difference between the values

calculated in this way and the values directly obtained with ANSYSTM . The following input file

can be used to calculate the Von Mises stress for the current example.

/POST1 !start Post-Processor module

ETABLE,Sp1,S,1 !store max principal stress in Sp1

ETABLE,Sp2,S,2

ETABLE,Sp3,S,3

SADD,Si1,Sp1,Sp2,,-1 !store Si1 as Sp1-Sp2

SADD,Si2,Sp2,Sp3,,-1

SADD,Si3,Sp3,Sp1,,-1

SEXP,Si11,Si1,,2 !store Si11 as (Sp1-Sp2)^2

SEXP,Si22,Si2,,2

SEXP,Si33,Si3,,2

SADD,Si12,Si11,Si22 !store Si12 as (Sp1-Sp2)^2+(Sp2-Sp3)^2

SADD,Si123,Si12,Si33 !store Si123 as (Sp1-Sp2)^2+(Sp2-Sp3)^2+(Sp3-Sp1)^2

SMULT,S123,Si123,,0.5 !store S123 as Si123/2

SEXP,Seq,S123,,0.5 !store Seq1 as S123^0.5

PLETAB,Seq,avg

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T6/PrePostFE_Ex605_eqv.dat

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 93: PrePostFE

Chapter 6. Postprocessing 87

6.5 Assessment of the mesh and results quality

As mentioned in Section 3.4, it is necessary to assess the mesh quality to be confident on the

results of a mechanical or structural simulation. That is, to check if the mesh is fine enough to

get good simulations results. Basically, the following aspects need to be analysed:

• Assure the right connectivity between different parts of the mesh.

• Avoid elements with high distortions, warping and inadmissible narrow or wide angles of

the element edges.

• Error estimation of the elements, typically by means of energy hypotheses.

• Study the sensitivity of the results on different meshes of the entire FE model or of a partial

model.

From the above, the error estimation of the elements by means of energy hypotheses is carried

out during the postprocessing. The mesh quality assessment in this way is explained next.

6.5.1 Energy norm to estimate the error of the elements

The finite element solution is an approximation to the true solution of a mathematical prob-

lem. For the analyst is important to know the magnitude of error involved in the solution. The

ANSYSTM program offers a method for a posteriori estimation of the solution error due to mesh

discretisation. The method involves calculating the energy error within each finite element and

expressing this error in terms of a global error energy norm.

The primary unknown in conventional finite element analysis is the displacement at every

node in the model. The finite elements used in the model have shape functions associated with

them that characterize the resulting displacement field of the physical model. The principal of

minimization of total potential energy is used to obtain the equation in the form of:

[K] {x} = {F} (6.7)

where [K] is the global stiffness matrix, {x} is the displacement vector, and {F} is the force vec-

tor.

This equation is solved for the unknown displacement vector {x}. The stresses and strains are

then obtained as the first derivative of these displacements. So while the displacement field in

the finite element model is continuous, the stress field in the model is dicontinuous. The stress at

a node, as printed from ANSYSTM , is the average of the stresses from all the elements attached

to that node. This introduces an error in the magnitude of stress at a node and is referred to as

mesh discretization error. The phenomenon of mesh discretization error is graphically illustrated

in Figure 6.1. The coarser the mesh, the greater the potential for this error. Similarly, for a very

fine mesh, the contribution to stress at a node from all elements attached to it will be the same,

exact value. However, rarely do we have the luxury of repeated mesh refinement.

This way, the nodal stress error vector is defined as:

{∆σin} = {σa

n} − {σin} (6.8)

where {∆σin} is the stress error vector of node n of element i, {σa

n} is the average stress vector

at node n, and {σin} is the stress vector of node n of element i. As an example, the nodal stress

error vector of node 13 of element 6, {∆σ613}, in Figure 6.1 can be computed as:

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 94: PrePostFE

88 Pre and post-process tools in finite element analysis

1 52 43

6 107 98

11 1512 14

16 2017 1918

21 2522 2423

1 2 3 4

5 6 7 8

14 15 1613

9 10 11 12

σx=50

τxy=10

σy=15

σx=100

τxy=20

σy=30

σx=150

τxy=30

σy=45

σx=200

τxy=40

σy=60

Figure 6.1: Mesh discretization error.

σx13 =50 + 100 + 150 + 200

4= 125; σy13 = 37.5; τxy13 = 25 (6.9)

{σa13}

T = {125 37.5 25}T (6.10)

{σ6

13}T = {50 15 10}T (6.11)

{∆σ6

13}T = {σa

13}T − {σ6

13}T = {75 22.5 15}T (6.12)

Once all the nodal stress error vectors are computed, the energy error for each element can

be defined as:

Ei =1

2

V(∆σi

n)jkDkl(∆σin)lidV (6.13)

where Ei is the energy error of element i and Dkl is the constitutive tensor.

By adding all element energy errors Ei, the global energy error in the model, E, can be

determined:

E =

Ne∑

i=1

Ei (6.14)

The energy error can be normalized against the strain energy U and expressed as a percent

error in energy norm, E:

ERR =

(

E

U + E

)1

2

% (6.15)

The percent error in energy norm E is a good overall global estimate of the discretization

or mesh accuracy. According to this, in ANSYSTM , the structural energy error (labeled SERR)

is a measure of the discontinuity of the stress field from element to element, and the thermal

energy error (TERR) is a measure of the discontinuity of the heat flux from element to element.

With these energy errors (SERR and TERR) ANSYSTM program calculates a percent error in energy

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 95: PrePostFE

Chapter 6. Postprocessing 89

norm (SEPC for structural percent error and TEPC for thermal percent error). PRERR command

lists SEPC and TEPC for all selected elements, and PLESOL displays the contours of SERR or TERR

to find out where to refine the mesh.

Example 6.6. Evaluate the accuracy of the mesh and the solution of the FE model used to solve

problem 4.5. Plot nodal stresses, element stresses, and the percentage of energy error. Evaluate

two different meshes.

Solution to Example 6.6. Two different element types and two different mesh refinements are

considered in order to establish a comparison. The first element type considered is a 8-noded

2D solid element, PLANE183, while the second is the 4-noded version of the same, PLANE182. The

first mesh corresponds to an element size of about 5.5 mm, while in the second the element size

is of 1.5 mm.

Before getting the energy error quantities the PowerGraphics option of ANSYSTM has to be

disabled, /GRAPHICS,FULL. To plot the percentage of structural energy error of each element

type, PLESOL,SERR,,0,1.0. To list the total pencentage of energy error of each element type

PRERR.

The first model to be analyzed corresponds to a mesh with 8-noded 2D solid elements and an

element size of 5.5mm. The mesh obtained and the energy error of each element are shown in

Figure 6.2. The total percentage error in energy norm returned by ANSYSTM is STRUCTURAL

PERCENTAGE ERROR IN ENERGY NORM (SEPC) = 5.0734. This difference is appreciated if the

nodal and the element quantities for the stress in the direction perpendicular to the load axis

are compared. These stresses are shown in Figure 6.3.

Figure 6.2: Mesh and energy error with elements of nominal size of 5.5 mm and 8-noded plane

elements.

The results obtained when 4-noded plane elements of nominal size 5.5 mm are used are shown

in Figure 6.4. The total percentage error in energy norm returned by ANSYS in this case is

STRUCTURAL PERCENTAGE ERROR IN ENERGY NORM (SEPC) = 11.389. The difference between the

nodal and the element quantities for the stress in the direction perpendicular to the load axis is

higher than when 8-noded elements are used, as it is shown in Figure 6.5.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 96: PrePostFE

90 Pre and post-process tools in finite element analysis

Figure 6.3: Nodal (left) and element (right) stress in the direction perpendicular to the load axis

with elements of nominal size of 5.5 mm and 8-noded plane elements.

Figure 6.4: Mesh and energy error with elements of nominal size of 5.5 mm and 4-noded plane

elements.

Figure 6.5: Nodal (left) and element (right) stress in the direction perpendicular to the load axis

with elements of nominal size of 5.5 mm and 4-noded plane elements.

Using plane stress elements with 8-noded (PLANE183) and a mesh with elements with a nom-

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 97: PrePostFE

Chapter 6. Postprocessing 91

inal size of 1.5mm, the energy error is smaller as it is shown in Figure 6.6. Now, the total percent-

age error in energy norm returned by ANSYS is STRUCTURAL PERCENTAGE ERROR IN ENERGY NORM

(SEPC) = 0.28475. The difference between the nodal and the element quantities for the stress

in the direction perpendicular to the load axis is smaller than in previous analysis as it is shown

in Figure 6.7.

Figure 6.6: Mesh and energy error with elements of nominal size of 1.5 mm and 8-noded plane

elements.

Figure 6.7: Nodal (left) and element (right) stress in the direction perpendicular to the load axis

with elements of nominal size of 1.5 mm and 8-noded plane elements.

For comparison purpouses, the last simulation considers plane stress elements with 4-noded

(PLANE182) and a mesh with elements with a nominal size of 1.5mm (see Figures 6.8 and 6.9).

In this last case, the total percentage error in energy norm returned by ANSYS is STRUCTURAL

PERCENTAGE ERROR IN ENERGY NORM (SEPC) = 0.4.9002. This energy error is larger than the

one of the 8-noded and 1.5mm size case, but lower than the one of the 8-noded and 5.5mm size

case (see summary in Table 6.1).

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 98: PrePostFE

92 Pre and post-process tools in finite element analysis

Figure 6.8: Mesh and energy error with elements of nominal size of 1.5 mm and 4-noded plane

elements.

Figure 6.9: Nodal (left) and element (right) stress in the direction perpendicular to the load axis

with elements of nominal size of 1.5 mm and 4-noded plane elements.

plane183 PLANE182

8-noded 4-noded

Element size1.5 mm 0.28475 4.9002

5.5 mm 5.0734 11.389

Table 6.1: Variaton on the percent error energy norm (SEPC) as a function of the type of element

and the element size.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 99: PrePostFE

Chapter 6. Postprocessing 93

Reminder: Reporting results data

Appart from reviewing the results and assess their quality, reporting the obtained results is

also an important task. This can be done in a simple way by capturing an image of the display

or capturing a list. In ANSYSTM this can be done in two ways:

1. PlotCtrls>Write Metafile and select Standard Color or Invert White/Black.

2. PlotCtrls>Capture Image and print the captured image, either to a file or in paper.

3. PlotCtrls>Hard Copy and either send the captured image to a printer or save it with a

image file extension (i.e. BMP, Postscript, TIFF, JPEG, PNG).

Moreover, in the case of ANSYSTM , there is also the option to elaborate a report including

images, tables, etc. (File>Report Generator).

For the specific case of ANSYSTM , but also for other commercial Finite Element codes,

the reviewing of the different results data can be more convenient by using the Graphical

User Interface (GUI) than using commands. For instance, you can use the Results Viewer tool

»General Postproc>Results Viewer to plot contour plots, list nodal or element quantities, easily

change substeps and animate the results among many other utilities. Try to repeat the previous

examples using the GUI or Results Viewer and decide which method is more convenient for you.

6.6 Suggested problems

Problem 6.1. Reconsider the problem in Ex. 2.4. Recalculate it applying symmetry conditions

on the meshes listed below. Evaluate the energy error norm obtained for the three different

meshes used. Analyse the difference on the nodal stresses and element stresses.

1. A mesh using 10 quadrilateral elements in the vertical direction.

2. A mesh using 80 quadrilateral elements in the vertical direction.

3. A free mesh using 10 triangle elements in the vertical direction.

Problem 6.2. Reconsider the problem in Ex. 2.4. Calculate the principal stresses using ETABLE

commands and considering plane stress, see equation 6.16. Compare these results whith the

principal stresses obtained directly from the program. Calculate the relative error between them.

σ1 =σx + σy

2+

[

(

σx − σy2

)2

+ τ2xy

]

σ2 =σx + σy

2−

[

(

σx − σy2

)2

+ τ2xy

]

(6.16)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 100: PrePostFE
Page 101: PrePostFE

Chapter 7

Coupling and constrain equations.

Submodelling

7.1 Coupling and constrain equations. Introductory concepts

In the Finite Element method the relationships between the different degrees of freedom (DOF)

of the nodes in the mesh are defined by the elements. This is represented by the stiffness matrix

as expressed in the next equation:

~F = K · ~δ (7.1)

where K is the stiffness matrix, ~δ is the DOF vector and ~F is the vector containing the equivalent

external loads.

However, some degree-of-freedom related features such as rigid regions, structural joints,

sliding symmetry boundaries, or periodic conditions, cannot be described by means of elements.

A general option which most FE commercial codes offer is the possibility of defining special asso-

ciations, or internodal connections between nodal DOF in ways that elements are not able. One

possibility is to use equalities between a DOF of a set of nodes (coupling or linking DOF). Another

option is to define equations between different DOF (constraint equations). Both techniques add

equations to equation (7.1).

7.1.1 Coupled DOF sets

Coupling a degree of freedom of a set of nodes imposes that the DOF results calculated for one

member of the set must be the same for all the members in the set for this particular coupled

DOF. Coupling can be used to model various joint and hinge effects. A more general form of

coupling can be done with constraint equations (see section 7.1.2).

For structural analyses, the DOF available for a node depend upon the DOF associated to the

element type. For example, degrees of freedom available with two-dimensional beam elements

are UX, UY, and ROTZ only. A set of coupled nodes in a nodal coordinate direction are forced

to take the same displacement (or rotation) in the specified direction. Coupling operates in the

nodal coordinate system of each node coupled. Therefore, you should usually keep the nodal

coordinate systems consistent.

In commercial codes, one of the DOF of the coupled set is the reference (or prime) DOF (in

ANSYS is the first DOF on the coupled set). All other degrees of freedom in the coupled sets are

95

Page 102: PrePostFE

96 Pre and post-process tools in finite element analysis

eliminated from the solution matrices by their relationship to the reference DOF. For this reason,

DOF with specified constraints (grounded DOF) should not be included in a coupled set and the

coupled DOF must not appear in more than one coupled set.

Hint 31: Useful ANSYS commands to define or modify Coupled DOF sets

Command Main Parameters

Defines (or adds to) a set of coupled DOF CP nset,label,nd1,nd2,nd3,...

Defines (or adds to) a set of coupled DOF CPNGEN nset,label,n1,n2,ninc

List coupled set DOF CPLIST cp1,cp2,cpinc

Delete coupled set DOF CPDELE cp1,cp2,cpinc

Example 7.1. Model a structure that consists of two pipes of 10 mm in diameter and 2 mm thick

and a steel bar of cross-sectional area 20 mm2. One of the beams has a distributed load of 5

N/mm2 on its edge. The material is steel with E = 210 GPa and ν = 0.3. The two beams are

joined by a pin. Model this problem using beam type elements for beams and link bar elements

for the bar.

200

5 N/m

m2

Steel pipe: Φ10x2

Figure 7.1: Pin joint structure (Dimensions in mm).

Solution to Example 7.1. The joint between the two beam-pipes can be solved using a common

node because the beam element have rotational z-axis DOF. For this reason, the coupling DOF

of UX and UY is used there, defining a cylindrical joint in this point. The ANSYSTM command

sequence for this example is listed below. You can either type these commands on the command

window, or you can type them on a file, then, on the command window enter /input, file, ext.

FINISH

/CLEAR

/TITLE, Pinned structure

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,BEAM188 !element type #1: BEAM188 (6 DoF)

KEYOPT,1,3,3 !element #1 keyoption 3=3 (cubic shape function)

ET,2,LINK180 !element type #2: 3D truss (3 DoF)

SECTYPE,1,BEAM,CTUBE !section #1=hollow tube

SECOFFSET,CENT !centered section (offset=0)

SECDATA,3,5 !section internal and external radius

R,2,20 !geometric properties bar: cross-section

MP,EX,1,210e3 !material #1: Young’s modulus

MP,PRXY,1,0.3 !material #1: Poisson modulus

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 103: PrePostFE

Chapter 7. Coupling and constrain equations. Submodelling 97

N,1,-100 !define node #1 on coordinates

N,11,0,50 !pinned node of left steel pipe

N,12,0,50 !pinned node of right steel pipe

N,22,100

FILL,1,11 !define nodes between #1 and #11

FILL,12,22

CP,1,UX,11,12 !define coupling DOF #1: UX direction node set #11 and #12

CP,2,UY,11,12 !define coupling DOF #2: UY direction node set #11 and #12

TYPE,1 !select BEAM element type (#1) and real constant set #1

REAL,1

E,1,2 !define BEAM elements

EGEN,10,1,1

E,12,13

EGEN,10,1,11

TYPE,2 !select TRUSS element type (#2) and real constant set #2

REAL,2

E,6,17 !define TRUSS elements for rope

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,STATIC

D,1,UX,,,,,UY,UZ,ROTX,ROTY !displacement X and Y for node #1

D,22,UX,,,,,UY,UZ,ROTX,ROTY !displacement X and Y for node #22

SFBEAM,1,2,PRES,5 !apply distributed load on element #2

*REPEAT,10,1 !repeats 9 times more the previous command incrementing +1 number element

/PBC,ALL !show BC’s when solve

SOLVE !solve current load state

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !plot deformed shape

/ESHAPE,1,1

PLNSOL,S,X !contour plot of stress X distribution

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T7/PrePostFE_Ex701.dat

Observe that the structure deforms in such a way that the pinned-node remains part of the

two pipes, imposing common displacements at this point, but allowing them to rotate indepen-

dently from each other.

Forces applied to coupled nodes (in the coupled DOF direction) will be summed up and ap-

plied to the reference DOF. Output forces are also summed at the reference DOF. A set of coupled

nodes which are not coincident, or which are not along the line of the coupled displacement di-

rection, may produce an applied moment which will not appear in the reaction forces. If the

structure rotates, a moment may be produced in the coupled set in the form of a force couple.

This moment is in addition to the real reaction forces and may make it appear that moment equi-

librium is not satisfied by just the applied forces and the reaction forces.

Example 7.2. A cantilever T-beam is loaded with a vertical 1 kN force distributed on the end

section (see Fig. 7.2). The T-beam is made of aluminum (E =69 GPa and ν = 0.3) with plates 2.2

mm thick. Obtain the deformed shape and the stress in the Z direction.

Solution to Example 7.2. A coupling of vertical DOF set is applied on the nodes of the end sec-

tion. In this way, applying the total vertical force on one of the nodes of the section is equivalent

to apply a distributed force. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 104: PrePostFE

98 Pre and post-process tools in finite element analysis

Figure 7.2: Cantilever T-beam (Dimensions in mm).

FINISH

/CLEAR

/TITLE, Cantilever T-beam

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SHELL181 !element type #1: SHELL181 (6 DoF)

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration incompatible modes)

MP,EX,1,69e3 !material #1: Young’s modulus

MP,PRXY,1,0.3 !material #1: Poisson modulus

R,1,2.2 !real constant set #1: 2.2 mm thickness

K,1,0,0,0 !defines coordinates keypoint #1

K,2,0,20,0

K,3,-15,0,0

K,4,15,0,0

KGEN,3,1,4,1,,,80,4 !generates keypoint #5 to #12

K,10,0,5,160 !redefines keypoint #10

A,1,2,6,5 !defines area #1

A,1,3,7,5 !defines area #2

A,4,1,5,8 !defines area #3

A,5,6,10,9 !defines area #4

A,5,7,11,9 !defines area #5

A,8,5,9,12 !defines area #6

ESIZE,5 !set 5 mm elements size

MSHKEY,1

AMESH,ALL !mesh all areas

NSEL,S,LOC,Z,160 !select nodes on section z=160

CP,1,UY,ALL !coupling UY on all selected nodes

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,STATIC

NSEL,S,LOC,Z,0 !BC on z=0 mm

D,ALL,ALL

NSEL,ALL

NODE1=NODE(0,0,160) !set reference node NODE1 on coordinates 0,0,160

F,NODE1,FY,-1e3 !apply total force of 1 kN on z=160

SOLVE !solve current load state

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !plot deformed shape

/ESHAPE,1,1

PLNSOL,S,Z !contour plot of stress Z distribution

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T7/PrePostFE_Ex702.dat

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 105: PrePostFE

Chapter 7. Coupling and constrain equations. Submodelling 99

7.1.2 Constraint equations of DOF

Linear constraint equations provide a more general way of relating degree of freedom values

than it is possible with simple coupling. Constraint equations must have the form:

A =n∑

i=1

αiUi (7.2)

where A is a constant, Ui is the degree of freedom of term i, αi is the coefficient of term i, and n

is the number of terms in the equation.

The first unique degree of freedom in the equation is eliminated in terms of all other degrees

of freedom in the equation. A unique degree of freedom is one which is not specified in any other

constraint equation, coupled node set, specified displacement set, or master degree of freedom

set. It is recommended that the first term of the equation be the degree of freedom to be elim-

inated. The first term of the equation cannot contain a master degree of freedom, and no term

can contain coupled degrees of freedom. The same degree of freedom may be specified in more

than one equation but care must be taken to avoid over-specification (over-constraint).

The degrees of freedom specified in the equation (i.e., UX, UY, ROTZ, etc.) must also be in-

cluded in the model (as determined from the element types [ET]). Also, each node in the equation

must be defined on an element (any element type containing that degree of freedom will do).

Hint 32: Useful ANSYS commands to define constraint equations

Command Main Parameters

Defines (or adds to) a set of coupled DOF CE neq,A,nd1,lab1,coeff1,...

List constraint equation CELIST ce1,ce2,ceinc

Delete constraint equation CEDELE ce1,ce2,ceinc

Example 7.3. A composite material has two different components distributed in a regular array

(see Figure 7.3). The matrix material has a Young’s modulus of 5 GPa, while for the rectangular

particles is 150 GPa. Model one RVE (Representative Volume Element) of this geometry with

appropriate periodic conditions. Note, take a = b = 5 mm.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 106: PrePostFE

100 Pre and post-process tools in finite element analysis

Figure 7.3: RVE example.

Hint 33: Two-dimensional periodic conditions for a rectangular RVE

In an rectangular RVE, such as shown in Figure 7.3, four faces (x1 = ±a and x2 = ±b) and the

four edges defined by these faces need to be considered to define the constraint equations to

apply the periodic conditions.

On the periodic pair of faces x1 = ±a and x2 = ±b, the constrain equations are

u1(a, x2)− u1(−a, x2)− 2aε011

= 0

u2(a, x2)− u2(−a, x2)− 2bε021

= 0∀x2 ∈ (−b,+b) (7.3)

u1(x1, b)− u1(x1,−b)− 2aε012

= 0

u2(x1, b)− u2(x1,−b)− 2bε022

= 0∀x1 ∈ (−a,+a) (7.4)

The intersection of planes x1 = ±a and x2 = ±b define two pairs of periodic edges, for

which the following equations apply,

u1(+a,+b)− u1(−a,−b)− 2aε011

− 2bε012

= 0

u2(+a,+b)− u2(−a,−b)− 2aε021

− 2bε022

= 0(7.5)

u1(+a,−b)− u1(−a,+b)− 2aε021

+ 2bε012

= 0

u2(+a,−b)− u2(−a,+b)− 2aε021

+ 2bε022

= 0(7.6)

Solution to Example 7.3. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH

/CLEAR

/TITLE, Square RVE with two materials

/PREP7 !start PRE-PROCESSOR MODULE

a=5 !geometry of the cell

b=5

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 107: PrePostFE

Chapter 7. Coupling and constrain equations. Submodelling 101

a1=3*(a/5) !geometry of the material #2

b1=2*(b/5)

a2=1*(a/5) !position of center of the material

b2=1*(b/5)

epxx=0.001 !horizontal strain

epyy=0.000 !vertical strain

epxy=0.001 !shear strain

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

MP,EX,1,5000 !material #1: Young’s modulus

MP,PRXY,1,0.3 !material #1: Poisson modulus

MP,EX,2,150000 !material #2: Young’s modulus

MP,PRXY,2,0.3 !material #2: Poisson modulus

BLC5,0,0,(2*a),(2*b) !rectangle, centered on 0,0, size 2a x 2b

LESIZE,ALL,,,10 !10 divisions per edge

TYPE,1

MAT,1

AMESH,1 !mesh area #1

NSEL,S,LOC,X,(-(a1+(a/100))+a2),((a1+(a/100))+a2) !select nodes material #2

NSEL,R,LOC,Y,(-(b1+(b/100))+b2),((b1+(b/100))+b2)

ESLN,S,1 !select elements material #2

EMODIF,ALL,MAT,2 !set material #2

ALLSEL,ALL !reselect all items

/PNUM,MAT,1

EPLOT !plot elements

!periodic conditions of vertex (2 couple of vertex)

CE,1,(epxx*(a*2))+(epxy*(b*2)),1,UX,-1,12,UX,1

CE,2,(epxx*(a*2))-(epxy*(b*2)),22,UX,-1,2,UX,1

CE,3,(epyy*(b*2))+(epxy*(a*2)),1,UY,-1,12,UY,1

CE,4,(epyy*(b*2))-(epxy*(a*2)),2,UY,-1,22,UY,1

!periodic conditions of vertical sides (9 couple of nodes)

CE,11,(epxx*(a*2)),32,UX,-1,21,UX,1 !uniaxial strain XX

CE,12,(epxx*(a*2)),33,UX,-1,20,UX,1

CE,13,(epxx*(a*2)),34,UX,-1,19,UX,1

CE,14,(epxx*(a*2)),35,UX,-1,18,UX,1

CE,15,(epxx*(a*2)),36,UX,-1,17,UX,1

CE,16,(epxx*(a*2)),37,UX,-1,16,UX,1

CE,17,(epxx*(a*2)),38,UX,-1,15,UX,1

CE,18,(epxx*(a*2)),39,UX,-1,14,UX,1

CE,19,(epxx*(a*2)),40,UX,-1,13,UX,1

CE,21,(epxy*(b*2)),32,UY,-1,21,UY,1 !shear strain XY

CE,22,(epxy*(b*2)),33,UY,-1,20,UY,1

CE,23,(epxy*(b*2)),34,UY,-1,19,UY,1

CE,24,(epxy*(b*2)),35,UY,-1,18,UY,1

CE,25,(epxy*(b*2)),36,UY,-1,17,UY,1

CE,26,(epxy*(b*2)),37,UY,-1,16,UY,1

CE,27,(epxy*(b*2)),38,UY,-1,15,UY,1

CE,28,(epxy*(b*2)),39,UY,-1,14,UY,1

CE,29,(epxy*(b*2)),40,UY,-1,13,UY,1

!periodic conditions of horizontal sides (9 couple of nodes)

CE,32,(epyy*(b*2)),3,UY,-1,31,UY,1 !uniaxial strain yy

CE,33,(epyy*(b*2)),4,UY,-1,30,UY,1

CE,34,(epyy*(b*2)),5,UY,-1,29,UY,1

CE,35,(epyy*(b*2)),6,UY,-1,28,UY,1

CE,36,(epyy*(b*2)),7,UY,-1,27,UY,1

CE,37,(epyy*(b*2)),8,UY,-1,26,UY,1

CE,38,(epyy*(b*2)),9,UY,-1,25,UY,1

CE,39,(epyy*(b*2)),10,UY,-1,24,UY,1

CE,40,(epyy*(b*2)),11,UY,-1,23,UY,1

CE,43,(epxy*(a*2)),3,UX,-1,31,UX,1 !shear strain XY

CE,44,(epxy*(a*2)),4,UX,-1,30,UX,1

CE,45,(epxy*(a*2)),5,UX,-1,29,UX,1

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 108: PrePostFE

102 Pre and post-process tools in finite element analysis

CE,46,(epxy*(a*2)),6,UX,-1,28,UX,1

CE,47,(epxy*(a*2)),7,UX,-1,27,UX,1

CE,48,(epxy*(a*2)),8,UX,-1,26,UX,1

CE,49,(epxy*(a*2)),9,UX,-1,25,UX,1

CE,50,(epxy*(a*2)),10,UX,-1,24,UX,1

CE,51,(epxy*(a*2)),11,UX,-1,23,UX,1

FINISH

/SOLU !start SOLUTION MODULE

NSEL,S,LOC,X,0 !select central node

NSEL,R,LOC,Y,0

D,ALL,ALL !central node constrained

ALLSEL

SOLVE !solve current load state

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !plot deformed shape

PLNSOL,U,SUM !total displacement contour

PRNSOL,S !list stress state of nodes

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T7/PrePostFE_Ex703.dat

See how the obtained solution is symmetric in different directions for different parameters.

To simplify the definition of the periodic conditions, they can be defined by a loop, see the

following command sequence.

FINISH

/CLEAR

/TITLE, Square RVE with two materials

/PREP7 !start PRE-PROCESSOR MODULE

a=5 !geometry of the cell

b=5

a1=3*(a/5) !geometry of the material #2

b1=2*(b/5)

a2=1*(a/5) !position of center of the material

b2=1*(b/5)

epxx=0.001 !horizontal strain

epyy=0.000 !vertical strain

epxy=0.001 !shear strain

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

MP,EX,1,5000 !material #1: Young’s modulus

MP,PRXY,1,0.3 !material #1: Poisson modulus

MP,EX,2,150000 !material #2: Young’s modulus

MP,PRXY,2,0.3 !material #2: Poisson modulus

BLC5,0,0,(2*a),(2*b) !rectangle, centered on 0,0, size 2a x 2b

LESIZE,ALL,,,10 !10 divisions for edge

TYPE,1

MAT,1

AMESH,1 !mesh area #1

NSEL,S,LOC,X,(-(a1+(a/100))+a2),((a1+(a/100))+a2) !select nodes material #2

NSEL,R,LOC,Y,(-(b1+(b/100))+b2),((b1+(b/100))+b2)

ESLN,S,1 !select elements material #2

EMODIF,ALL,MAT,2 !set material #2

ALLSEL,ALL !reselect all items

/PNUM,MAT,1

EPLOT !plot elements

!periodic conditions of vertex (2 couple of vertex)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 109: PrePostFE

Chapter 7. Coupling and constrain equations. Submodelling 103

CE,1,(epxx*(a*2))+(epxy*(b*2)),1,UX,-1,12,UX,1

CE,2,(epxx*(a*2))-(epxy*(b*2)),22,UX,-1,2,UX,1

CE,3,(epyy*(b*2))+(epxy*(a*2)),1,UY,-1,12,UY,1

CE,4,(epyy*(b*2))-(epxy*(a*2)),2,UY,-1,22,UY,1

!periodic conditions

j=0

*DO,i,1,9,1

CE,i+10,(epxx*(a*2)),i+31,UX,-1,21-j,UX,1 !uniaxial strain XX

CE,i+20,(epxy*(a*2)),i+31,UY,-1,21-j,UY,1 !shear strain XY

CE,i+31,(epyy*(b*2)),i+2,UY,-1,31-j,UY,1 !uniaxial strain YY

CE,i+42,(epxy*(b*2)),i+2,UX,-1,31-j,UX,1 !shear strain XY

j=j+1

*ENDDO

FINISH

/SOLU !start SOLUTION MODULE

NSEL,S,LOC,X,0 !select central node

NSEL,R,LOC,Y,0

D,ALL,ALL !central node constrained

ALLSEL

SOLVE !solve current load state

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !plot deformed shape

PLNSOL,U,SUM !total displacement contour

PRNSOL,S !list stress state of nodes

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T7/PrePostFE_Ex703b.dat

7.2 Submodelling

As was introduced in Chapter 3, finite-element software users generally establish in the meshing

process some equilibrium between the available computational resources (where coarser meshes

are preferred) and the needs of the solved problem (where finer meshes may be needed). More-

over, some structural components may exhibit nearly constant stress through its dominium but a

small area showing large stress concentration. Submodelling is a useful tool to analyze parts of

a model which exhibit stress concentrations or which need a detailed geometrical modelling.

Submodelling is also known as the cut boundary displacement method or the specified bound-

ary displacement method. The cut boundary is the boundary of the submodel which represents a

cut through the global model. Displacements calculated on the cut boundary of the coarse model

are specified as boundary conditions for the submodel.

Submodelling is based on St. Venant’s principle, which states that if an actual distribution

of forces is replaced by a statically equivalent system, the distribution of stress and strain is al-

tered only near the regions of load application. The principle implies that stress concentration

effects are localized around the concentration; therefore, if the boundaries of the submodel are

far enough away from the stress concentration, reasonably accurate results can be calculated in

the submodel.

Aside from the obvious benefit of giving more accurate results in a region of your model, the

submodelling technique has other advantages:

• It reduces, or even eliminates, the need for complicated transition regions in solid finite

element models.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 110: PrePostFE

104 Pre and post-process tools in finite element analysis

• It enables you to experiment with different designs for the region of interest (different fillet

radii, for example).

Some restrictions for the use of submodelling are:

• It is valid only for solid elements and shell elements.

• The principle behind submodelling assumes that the cut boundaries are enough far away

from the stress concentration region. You must verify that this assumption is adequately

satisfied.

In the following sections you can find a summary of Chapter 9 of ANSYS 13 Help, regarding

submodelling.

7.2.1 The global model

In many cases, the coarse model does not need to include local geometric details. However, the

finite element mesh must be fine enough to produce a reasonably accurate degree of freedom

solution. This is important because the results of the submodel are almost entirely based on

interpolated degree of freedom results at the cut boundary.

7.2.2 The submodel

In the submodel the same element type (solid or shell) that was used in the global model should

be employed1. Also, the same element real constants (such as shell thickness) and material prop-

erties should be introduced.

Specify appropriate node rotations. Node rotation angles on cut boundary nodes should not

be changed after they have been written to the node file in interpolation step 1. Command:

NROTAT 2.

The presence or absence of node rotation angles in the coarse model has no effect upon the

submodel.

7.2.3 Submodelling procedure

The basic steps for any submodelling procedure are:

1. Perform Cut Boundary Interpolation. This is the key step in submodelling. You identify

the nodes along the cut boundaries, and the finite element program calculates the DOF val-

ues (displacements) at those nodes by interpolating results from the global model. For each

node of the submodel along the cut boundary, the program uses the appropriate element

from the coarse mesh to determine the DOF values. These values are then interpolated

onto the cut boundary nodes using the element shape functions.

1Shell-to-solid may also be used but will not be covered in this chapter. See ANSYS help.2Be aware that node rotation angles might be changed by application of nodal constraints [DSYM], by transfer of

line constraints [SFL], or by transfer of area constraints [SFA], as well as by more obvious methods [NROTAT and

NMODIF]

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 111: PrePostFE

Chapter 7. Coupling and constrain equations. Submodelling 105

Hint 34: Cut boundary interpolation in ANSYS. Global model

• Identify and write the cut boundary nodes of the submodel to a file (Jobname.NODE by

default). You can do this in PREP7 by selecting nodes along the cut boundaries and then

using one of these methods to write the nodes to a file with command NWRITE (you perform

temperature interpolation see ANSYS help).

• To restore the full set of nodes, use command ALLSEL.

• To write the database to Jobname.DB, use command SAVE.

• To do the cut boundary interpolation (and the temperature interpolation), the database

must contain the geometry for the coarse model. Therefore, you must resume the database

use command RESUME, making sure to identify the name of the coarse model database file.

• Enter POST1 with command /POST1. Interpolation can only be performed in POST1.

• Point to the coarse results file with command FILE.

• Read in the desired set of data from the results file with command SET.

• Initiate cut boundary interpolation with command CBDOF. By default, the CBDOF command

assumes that the cut boundary nodes are on file Jobname.NODE. The ANSYS program will

then calculate the cut boundary DOF values and write them in the form of D commands

to the file Jobname.CBDO.

• All interpolation work is now done, so leave POST1 (FINISH) and restore the submodel

database (RESUME).

2. Analyze the Submodel. In this step, you define the analysis type and analysis options,

apply the interpolated DOF values (and temperatures), define other loads and boundary

conditions, specify load step options, and obtain the submodel solution. It is important that

on the submodel any other loads and boundary conditions that existed on the coarse model

are introduced as well. Examples are symmetry boundary conditions, surface loads, inertia

forces (such as gravity), concentrated force loads, etc.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 112: PrePostFE

106 Pre and post-process tools in finite element analysis

Hint 35: ANSYS commands for the Submodel

• The first step is to enter SOLUTION (/SOLU).

• Define the appropriate analysis type (usually static) and analysis options.

• To apply the cut boundary DOF constraints, simply read in the file of D commands (created

by CBDOF) with command /INPUT,,CBDO.

• Specify what DOF constraint values and nodal body force loads are to be accumulated

with commands DCUM,ADD and BFCUM,,ADD. Be sure to reset the DCUM and BFCUM com-

mands to their default status before proceeding.

• Then specify load step options (such as output controls) and initiate solution calculations

using Command(s): SOLVE.

• After the solution is obtained, leave SOLUTION (FINISH).

3. Verify the Distance Between the Cut Boundaries and the Stress Concentration. The

final step is to verify that the cut boundaries of the submodel are far enough away from the

concentration. You can do this by comparing results (stresses, magnetic flux density, etc.)

along the cut boundaries with those along the corresponding locations of the coarse model.

If the results are in good agreement, it indicates that proper cut boundaries have been cho-

sen. Otherwise, you will need to recreate and reanalyze the submodel with different cut

boundaries further away from the region of interest.

Example 7.4. Model a variation of the hydraulic dam considered in Ex. 2.5 using the sub-

modelling procedure according to what is shown in Figure 7.4. Start with a simple model with

geometric parameters h1 = 10 m, h2 = 5 m, L = 2 m and W = 1 m and consider that the dam is

subjected to a uniform 10 kg/cm2 pressure at its deepest end.

Solution to Example 7.4. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH

/CLEAR

/TITLE, Dam submodeling - Global Model

/FILNAME,Dam_Global

/PREP7 !start PRE-PROCESSOR MODULE

h1=10000 !total wall height

h2=5000 !height

L=8000 !length

W=2000 !width

p=1 !pressure in N/mm2

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

KEYOPT,1,3,2 !element type #1: keyoption 3=2 (plane strain)

MP,EX,1,27000 !Young Modulus

MP,PRXY,1,0.25 !Poisson’s ratio

K,1,0,0 !define geometry by keypoints

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 113: PrePostFE

Chapter 7. Coupling and constrain equations. Submodelling 107

h1

h2

L

W

Cut Boundary

Submodel

Figure 7.4: Submodelling of a dam.

K,2,L,0

K,3,L,(h1-h2)/2

K,4,L,h1-2*h2/3

K,5,L,h1

K,6,L-W,h1

K,7,L-W,h1-2*h2/3

K,8,L-W,h1-h2

K,9,(L-W)/2,(h1-h2)/2

K,10,L-W/2,(h1-h2)/2

K,11,L-W/2,h1-2*h2/3

L,1,2,40 !define lines by keypoints

L,2,3,20

L,3,4,20

L,4,5,20

L,5,6,10

L,6,7,20

L,7,8,10

L,8,9,20

L,9,1,20

L,9,10,15

L,10,11,20

L,11,7,5

AL,1,2,3,4,5,6,12,11,10,9 !create areas from lines

AL,10,11,12,7,8

MSHKEY,2 !use mapped meshing if possible

AMESH,ALL !mesh all areas

SAVE !save the file GLOBAL.db

FINISH

/SOLU !start SOLUTION MODULE

DL,1,1,ALL !fix the line 1 of area 1

LSEL,S,LINE,,2,4,1 !select lines 2,4,1

SFL,ALL,PRES,p !apply the pressure

ALLSEL !select all

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !plot deformed shape

PLNSOL,S,EQV !show Von Mises stress

SAVE,ALL !save solution

This file can be found at:

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 114: PrePostFE

108 Pre and post-process tools in finite element analysis

ftp://amade.udg.edu/mms/PrePostFE/input_files/T7/PrePostFE_Ex704.dat

Observe that a stress concentration is produced in the corner where the straight part from

the dam and its basis unite.

Example 7.5. Introduce a round corner, that is, a more detailed geometry, in the cross-section

of the previous hydraulic dam and analyze the results. Set the fillet radius to 2 m.

Solution to Example 7.5. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH

/CLEAR

/TITLE, Dam submodeling - Submodel

/FILNAME,Dam_Submodel

/PREP7 !start PRE-PROCESSOR MODULE

h1=10000 !total wall height

h2=5000 !height

L=8000 !length

W=2000 !width

divl=100 !element size

RAD=2000 !fillet radius

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

KEYOPT,1,3,2 !element type #1: keyoption 3=2 (plane strain)

MP,EX,1,27000 !Young Modulus

MP,PRXY,1,0.25 !Poisson’s ratio

K,7,L-W,h1-2*h2/3 !define geometry by keypoints

K,8,L-W,h1-h2

K,9,(L-W)/2,(h1-h2)/2

K,10,L-W/2,(h1-h2)/2

K,11,L-W/2,h1-2*h2/3

L,7,8 !define lines by keypoints

L,8,9

L,9,10

L,10,11

L,11,7

LFILLT,1,2,RAD !define fillet between intersection lines #1 and #2

LESIZE,ALL,RAD*2*3.14159/96 !the divisions of the fillet radius

AL,1,2,3,4,5,6 !define area by lines

MSHKEY,2 !use mapped meshing if possible

AMESH,ALL !mesh all areas

NROTAT,ALL !rotate nodal coordinate sys into local

LSEL,S,LINE,,3,5,1 !select cut boundary lines

NSLL,S !select nodes on lines

NWRITE !write node list and coordinates into file SUBMODEL.node

ALLSEL !select all

SAVE !save the file SUBMODEL.db

RESUME,Dam_Global,DB !resume Global Model previously saved

/POST1 !start POST-PROCESSOR MODULE

FILE,Dam_Global !point to the global model results file

SET !defines the data set to be read from the results file GLOBAL.db

CBDOF !perform cut boundary interpolation (file SUBMODEL.cbdo)

FINISH

RESUME,Dam_Submodel,DB !resume the file SUBMODEL.db

/SOLU !start SOLUTION MODULE

DCUM,ADD !cumulative loads

/INPUT,,CBDO !input BC from global model (file SUBMODEL.cbdo)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 115: PrePostFE

Chapter 7. Coupling and constrain equations. Submodelling 109

DCUM,REPL !cumulative DOF, replace

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !plot deformed shape

PLNSOL,S,EQV !show Von Mises stress

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T7/PrePostFE_Ex705.dat

Note that the submodel allows for a more detailed analysis of the corner or fillet area. In fact,

the maximum Von Mises stress in the submodel is about 23 MPa, while in the global model it is

approximated to about 31 MPa.

Example 7.6. Use ANSYSTM to model the steel trapezoidal cantilever beam with holes shown in

Figure 7.5. The beam is subjected to a uniform pressure of 20 MPa applied on its top edge. The

diameter of the holes is 7 mm. Use the submodel technique to obtain the Von Mises stress in the

area of the holes. Consider a plane strain model.

35

35

50

55

55

350

20 MPa

510

10

750

80

Figure 7.5: Trapezoidal cantilever beam with holes.

Solution to Example 7.6. First, only the general beam, without the small holes, is analyzed to

obtain the global model. The ANSYSTM command sequence for this example is listed below. You

can either type these commands on the command window, or you can type them on a file, then,

on the command window enter /input, file, ext.

FINISH

/CLEAR

/TITLE, Cantilever beam submodeling - Global Model

/FILNAME,CANTILEVER_GLOBAL

/PREP7 !start PRE-PROCESSOR MODULE

h1=350 !cantilevered tip height

h2=50 !free tip height

L=750 !length

d=7 !hole diameter

top_off=10 !offset to top holes

p=20 !pressure

holes1x=510 !x coord left holes

holes2x=590 !x coord right holes

sep1=55 !vertical separation left holes

sep2=35 !vertical separation right holes

xmin=490 !x coordinates of submodel

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 116: PrePostFE

110 Pre and post-process tools in finite element analysis

xmax=610

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

KEYOPT,1,3,2 !element type #1: keyoption 3=2 (plane strain)

MP,EX,1,210000 !Young Modulus

MP,PRXY,1,0.3 !Poisson’s ratio

K,1,0,0 !define geometry by keypoints

K,2,L,0

K,3,L,-h2

K,4,0,-h1

L,1,2,40 !define lines by keypoints

L,2,3,20

L,3,4,40

L,4,1,20

AL,1,2,3,4 !create areas from lines

MSHKEY,2 !use mapped meshing if possible

AMESH,ALL !mesh all areas

SAVE !save the file as CANTILEVER_GLOBAL.db

FINISH

/SOLU !start SOLUTION MODULE

DL,4,1,ALL !cantilever boundary conditions

LSEL,S,LINE,,1 !select line 1

SFL,ALL,PRES,p !apply pressure to line 1

ALLSEL !select all

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !plot deformed shape

PLNSOL,S,EQV !show Von Mises stress

SAVE,ALL !save the solution

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T7/PrePostFE_Ex706a.dat

Afterwards, the hole region is analysed by using the submodelling technique incorporating

the results of the global model. The ANSYSTM command sequence for this example is listed

below. You can either type these commands on the command window, or you can type them on a

file, then, on the command window enter /input, file, ext.

FINISH

/CLEAR

/TITLE, Cantilever beam submodeling - Submodel

/FILNAME,CANTILEVER_SUBMODEL

/PREP7 !start PRE-PROCESSOR MODULE

h1=350 !cantilevered tip height

h2=50 !free tip height

L=750 !length

d=7 !hole diameter

top_off=10 !offset to top holes

p=20 !pressure

holes1x=510 !x coord left holes

holes2x=590 !x coord right holes

sep1=55 !vertical separation left holes

sep2=35 !vertical separation right holes

xmin=490 !x coordinates of submodel

xmax=610

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

KEYOPT,1,3,2 !element type #1: keyoption 3=2 (plane strain)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 117: PrePostFE

Chapter 7. Coupling and constrain equations. Submodelling 111

MP,EX,1,210000 !Young Modulus

MP,PRXY,1,0.3 !Poisson’s ratio

K,1,xmin,0 !define geometry by keypoints

K,2,xmax,0

K,3,xmax,-h1+xmax*(h1-h2)/L

K,4,xmin,-h1+xmin*(h1-h2)/L

L,1,2 !define lines by keypoints

L,2,3

L,3,4

L,4,1

AL,1,2,3,4 !create areas from lines

CYL4,holes1x,-top_off,d/2 !generate holes

CYL4,holes1x,-(top_off+sep1),d/2

CYL4,holes1x,-(top_off+2*sep1),d/2

CYL4,holes2x,-top_off,d/2

CYL4,holes2x,-(top_off+sep2),d/2

CYL4,holes2x,-(top_off+2*sep2),d/2

ASEL,S,AREA,,1,7 !select areas 1 to 7

ASBA,1,ALL !substract areas from areas

LESIZE,ALL,d/2 !define the element size

MSHKEY,2 !use mapped meshing if possible

AMESH,ALL !mesh all areas

NROTAT,ALL !rotate nodal coordinate sys into local

LSEL,S,LINE,,2,4,2 !select cut boundary lines

NSLL,S !select nodes on lines

NWRITE !write node list into file

ALLSEL !select all

SAVE

RESUME,CANTILEVER_GLOBAL,DB !resume Global Model

/POST1 !start POST-PROCESSOR MODULE

FILE,CANTILEVER_GLOBAL !point to the global model results file

SET !data set to be read from the results file

CBDOF !perform cut boundary interpolation

FINISH

RESUME,CANTILEVER_SUBMODEL,DB !resume Submodel

/SOLU !start SOLUTION MODULE

LSEL,S,LINE,,1

SFL,ALL,PRES,p

DCUM,ADD !cumulative loads

/INPUT,,CBDO !input BC from global model

DCUM,REPL !cumulative DOF, replace

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLDISP,1 !plot deformed shape

PLNSOL,S,EQV !show Von Mises stress

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T7/PrePostFE_Ex706b.dat

Observe that although the general tendency of the Von Mises stress is the same for the results

of the global and submodel, in the latter stress concentrations can be observed around the holes,

which cannot be captured by the global model.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 118: PrePostFE

112 Pre and post-process tools in finite element analysis

7.3 Suggested problems

Problem 7.1. Using the same geometry and model of Example 3.9, apply a force of 100 N in

one of the holes producing a bending moment on the plate while the other hole is clamped. Use

coupled DOF set to apply the force.

Problem 7.2. Using similar code of Ex. 7.3 model a RVE representative of a masonry wall (see

Figure 7.6). The bricks are 240 mm long and 45 mm thick. The vertical gap between bricks is 30

mm while the horizontal one is 60 mm. Use the results of the model to compute the homogenized

Young’s Modulus of the masonry wall.

Figure 7.6: Masonry RVE.

Problem 7.3. Reconsider the situation of Ex. 7.4. Solve the problem again with h1 = 30 m, h2 =

18 m, L = 6 m and W = 2.5 m. Notice that a new stress concentration appears. Construct a new

submodel for this area and try to introduce a fillet radius to avoid stress concentrations. Comment

the obtained results for different values of the fillet radius and the validity of the analysis.

Problem 7.4. Model the simple structure of Figure 7.7. The material is steel and the parameters

A = 11 m, B = 2.5 m and C = 3.5 m. The applied load is F = 10 N/m. Construct submodel for

the area showing stress concentrations and try to introduce a fillet radius to avoid large stress

concentration.

A

B

F

C

C

Figure 7.7: Submodel for a T-structure.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 119: PrePostFE

Chapter 8

Nonlinear analysis. Geometric

nonlinearities

8.1 Introduction

Many structural problems present nonlinear behaviours that have to be taken into account for a

correct simulation. For example, in a cantilever beam subjected to an end load (see Figure 8.1),

as the beams deflects the distance between the load application point and the encastred area

is reduced, consequently reducing the corresponding bending moment. Moreover, as the beam

deflects and rotates the effect of the load on the beam can change due to the relative orientation

between beam and load. For instance, the bending behaviour of the system varies if the load

has a predefined direction, e.g. gravitational load, or the applied force follows the surface of

the beam, e.g. pressure. Obviously, this effect is only important when large displacements are

involved. Another example of structural nonlinear behaviour is the case of a wood shelf loaded

with books. Even if the load is kept constant, as time passes, the deflection of the shelf increases.

The interaction of different parts of a model also corresponds to a nonlinear structural problem.

Figure 8.1: Geometric nonlinear behaviour in a cantilever beam.

Actually, the three previous examples correspond to the three different types or categories of

nonlinear structural behaviour:

• Geometric nonlinearities

• Material nonlinearities

113

Page 120: PrePostFE

114 Pre and post-process tools in finite element analysis

• Change of state

In the first case, the nonlinear structural behaviour is due to a change in the geometric con-

figuration of the structure. This change is usually characterised by large displacement and/or ro-

tations. Material nonlinearities are caused by nonlinear stress-strain relationships. These can be

influenced by different factors such as plasticity, temperature or creep. Finally, structures involv-

ing change of state can also results in a nonlinear structural behaviour: a cable can only transmit

load under tension, a roller support is either in contact or not, etc. In all the cases, though, the

load-deflection curve shows a variation in structural stiffness, which is the basic characteristic

of the nonlinear structural behaviour. Figure 8.2 shows characteristic load-deflection curves for

the three categories of nonlinear structural behaviour. In general, this nonlinear behaviour im-

plies more convergence problems complicating the analysis and requiring more iterations and

different methods and strategies to ensure a converged solution.

Figure 8.2: Characteristic nonlinear load-deflections curves for: (a) geometric nonlinear be-

haviour, (b) material nonlinear behaviour and (c) change of state.

In this chapter, the nonlinear structural behaviour caused by geometric nonlinearities are

considered. Two different types of geometric nonlinearities are taken into account:

• Geometric nonlinearities due to large displacements and/or rotations

• Geometric nonlinearities due to buckling

8.2 Geometric nonlinear behaviour due to large displacements

Most of the structural analyses involve small displacements, rotations and deflections resulting

in null or small stiffness variations. However, some problems involving large displacements,

rotations and deflections result in stiffness variations. In these cases, a nonlinear analysis has to

be carried out activating large displacements or geometric nonlinearities. In order to facilitate

the convergence of the solution during the analysis, it is convenient to divide the application

of load or displacement in different steps. The smaller the steps, the better the options for a

converged solution. However, many load or displacements increments might result in excessive

calculation times.

Hint 36: Activating the geometric nonlinear effects

In the majority of the commercial finite element codes, the geometric nonlinearities are taken

into account by activating a nonlinear geometric effects option. In the case of ANSYSTM this

option is activated by using NLGEOM,ON.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 121: PrePostFE

Chapter 8. Nonlinear analysis. Geometric nonlinearities 115

Example 8.1. Consider the cantilever beam shown in Figure 8.3. The end-load P = 100 kN is

distributed along 50 mm in the longitudinal direction. The beam is made of steel (E = 207 GPa

and ν = 0.3), is 2 m long, its base is 20 mm and its thickness is 100 mm. Compare the results

obtained considering a linear behaviour of the system, a nonlinear behaviour with a constant

direction of the applied load (gravity) and a nonlinear behaviour with the load always applied

perpendicular to the surface of the beam.

Figure 8.3: Cantilever beam subjected to a distributed end-load.

Solution to Example 8.1. The cantilever beam in Figure 8.3 has been simulated with and with-

out considering the geometric nonlinearities. The two different cases for the nonlinear system

have been taken into account. In the first case, the direction of the load remains the same during

the whole simulation, gravity load. In the second case, the direction of the load varies accord-

ingly to the deflection of the beam in order to remain perpendicular to the load application area

on the beam.

Hint 37: Defining a Follower Force

In ANSYSTM an applied force always perpendicular to the surface of the element in a nonlinear

problem has to be simulated defining the force as pressure. In other commercial finite element

codes, such as ABAQUSTM and MSC-MarcTM there is an option to indicate that the direction

of the force varies according to the deflection of the element, FOLLOWER FORCE.

As expected, the results of the simulation show a linear relationship between the applied load

and the deflection of the beam for the linear case. However, when the nonlinear geometric effects

such as large displacements are taken into account, the resulting relationship between applied

load and deflection is not linear. Figure 8.4 summarises the load-deflection curves for the three

cases considered. Note that the applied load is the same for the three cases but the resulting

deflection varies depending on the assumptions. If the axial stress is considered, the linear model

predicts an axial stress of 758.5 MPa, while the nonlinear model with gravity load 685 MPa and

the nonlinear model with pressure 742 MPa. Note that in the linear case the results are exactly

the same if the load is applied as a gravity load or as pressure.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command

window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Nonlinear cantilever beam

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

H=100 !beam height in mm

L=2000 !beam span in mm

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 122: PrePostFE

116 Pre and post-process tools in finite element analysis

0.E+00

2.E+04

4.E+04

6.E+04

8.E+04

1.E+05

0 200 400 600 800

Deflection (mm)

Lo

ad

(N

)Linear

Nonlinear-gravity

Nonlinear-pressure

1 × 10�

8 × 10�

6 × 10�

4 × 10�

2 × 10�

0

Figure 8.4: Resulting load-deflection curves for the cantilever beam.

B=20 !beam base in mm

p=1e5 !end-load

ET,1,BEAM188 !element type #1: BEAM188 (6 DoF)

KEYOPT,1,3,3 !element #1 keyoption 3=3 (cubic shape function)

SECTYPE,1,BEAM,RECT !section #1 = rectangular beam

SECOFFSET,CENT !centered section (offset=0)

SECDATA,H,B !section width and height

MP,EX,1,207000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson modulus for material #1

K,1,0,0 !generate key-points

K,2,L,0

L,1,2 !define line

LESIZE,1,50 !define element size

LMESH,1

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,0 !static analysis

NLGEOM,ON !activate geometric nonlinearities

NSUBST,10,0,0 !perform the analysis in 10 sub-steps

OUTRES,ALL,1 !write results for each sub-step

TIME,1 !end time of the analysis

NSEL,S,LOC,X,0 !encastred node

D,ALL,ALL

NSEL,S,LOC,X,L-50,L !apply end-load nodes

ESLN,S,1 !select end elements

!SFBEAM,ALL,2,PRES,p/50 !distributed end-load on beam element

F,ALL,FY,-p/2 !concentrated end-load in 2 nodes (gravity load)

ALLSEL !select all the entities

SOLVE !solve the current load case

FINISH

/POST1 !start POST-PROCESSOR MODULE

PLNSOL,U,Y !plot vertical displacement

/POST26 !start HISTORY-PLOT MODULE

NSOL,2,41,U,Y,uy !evolution of Y-displacement at node 41

ABS,3,2,,,U_Y !absolute value

XVAR,3 !use as X-axis

RFORCE,4,1,F,Y,F_Y !evolution of reaction force

PLVAR,4 !plot reaction force vs. displacement

PRVAR,3,4 !list displacement and reaction force

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T8/PrePostFE_Ex801.dat

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 123: PrePostFE

Chapter 8. Nonlinear analysis. Geometric nonlinearities 117

8.3 Buckling analysis

Buckling and geometric instabilities in structural parts are typical problems that exhibit geomet-

ric nonlinear effects. Actually, a structure subjected to compressive loads can present no lateral

displacements until a critical load is reached, Pcr. Beyond this critical load, or bifurcation point,

the structure deforms in such a way that lateral displacements occur. Depending on the config-

uration of the structure, the occurrence lateral displacements can imply the global instability of

the structure. In other cases, the occurrence of these lateral displacements only imply a change

of behaviour and the structure can still sustain load under the post-buckled configuration. Fig-

ure 8.5 schematically shows the possible theoretical load versus lateral displacement curves for

a structure under buckling loads. The curve on the left corresponds to a stable structure that can

sustain load after reaching the critical load as the structure tends to stiffen. On the contrary, the

curve on the right is for a unstable structure where after reaching Pcr the structure can deform in

such a way that the lateral displacement increases without increasing the applied load. Although

in this case this behaviour occurs in one direction for the lateral displacement, it is not possible

to ensure that the structure will deform on the other way.

Figure 8.5: Theoretical load versus lateral displacement curves for a structure under buckling

loads.

In general, two different techniques are usually available in all FEM codes for predicting the

buckling load and buckling mode shape of a structure: nonlinear buckling analysis and eigen-

value (or linear) buckling analysis. Because the two methods can yield different results, it is

necessary to understand the differences between them.

8.3.1 Eigenvalue buckling analysis

A real structure sustaining load can suffer buckling or become unstable in many ways and adopt-

ing different deformed shapes that depend on the applied load. For every buckling mode or

deformed shape there is a critical load or bifurcation point. Eigenvalue buckling analysis can

be used to predict the theoretical buckling load (or critical load or bifurcation point) of an ideal

linear elastic structure. For instance, an eigenvalue buckling analysis of a column will match the

classical Euler solution. However, real structures usually contain imperfections and nonlineari-

ties that might cause the instability or buckling at a force lower than the theoretical critical load.

Thus, eigenvalue buckling analysis often yields unconservative results and must be used carefully

and just as a tentative analysis. The following equation summarises the calculation required to

determine the eigenvalues of a structure:

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 124: PrePostFE

118 Pre and post-process tools in finite element analysis

([K] + λi[S])φi = 0 (8.1)

where [K] is the stiffness matrix, [S] is the stress stiffness matrix, λi is the i-th eigenvalue and φi is

the i-th eigenvector of displacements. As the stress stiffness matrix is required for the calculation

of the eigenvalues, this matrix has to be previously obtained. In the case of ANSYSTM , this can

be achieved by performing first a static analysis activating the PSTRES option. The resulting

critical loads are obtained multiplying the applied load per the resulting eigenvalues. It is a

common practice to simulate the problem applying unit loads so the resulting eigenvalues directly

correspond to the critical loads. The eigenvectors are normalized so that the largest component

is 1.0. Thus, the stresses (when output) may only be interpreted as a relative distribution of

stresses.

Hint 38: Negative eigenvalues.

In general, negative eigenvalues indicate that the applied load should be applied in the oppo-

site direction to obtain the represented eigenvalue. However, in ANSYSTM , if the first eigen-

value closest to the shift point is negative (indicating that the loads applied in a reverse sense

will cause buckling), the program will terminate.

Example 8.2. Compute the first ten bifurcation loads of the prismatic bi-supported column

shown in Figure 8.6 using the eigenvalue buckling analysis. The column is made of steel (E

= 207 GPa and ν =0.3), its base is b = 200 mm, its thickness is h = 100 mm and the length is L

= 5 m.

Figure 8.6: Prismatic column under compressive load.

Solution to Example 8.2. Although the geometry of the column is prismatic with a thickness

half of the base and the first buckling modes will be in the same deformation plane (X-Y), it is

possible that one or more of the ten first eigenvalues correspond to a deformed shape in the

other deformation plane (X-Z). Thus, a plane analysis could not take into account some buckling

modes and a 3D analysis is required.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command

window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Prismatic column

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

H=100 !column thickness in mm

L=5000 !column span in mm

B=200 !column base in mm

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 125: PrePostFE

Chapter 8. Nonlinear analysis. Geometric nonlinearities 119

p=1 !applied load

ET,1,BEAM188 !element type #1: BEAM188 (6 DoF)

KEYOPT,1,3,3 !element #1 keyoption 3=3 (cubic shape function)

SECTYPE,1,BEAM,RECT !section #1 = rectangular beam

SECOFFSET,CENT !centered section (offset=0)

SECDATA,H,B !section width and height

MP,EX,1,207000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson modulus for material #1

K,1,0,0 !generate key-points

K,2,L,0

L,1,2,100 !define line and divisions

LMESH,1 !mesh the line

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,0 !static analysis

PSTRES,ON !calculate stress stiffness matrix

D,1,UX,,,,,UY,UZ !fixed displacements node 1

D,2,UY,,,,,UZ !fixed displacements node 2

F,2,FX,-p !apply load node 2

SOLVE

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,BUCKLE !buckling analysis

BUCOPT,SUBSP,10 !buckling options: subspace iteration method, 10 eigenvalues

MXPAND !expand all buckling modes

SOLVE

/POST1 !start POST-PROCESSOR MODULE

SET,LIST !list eigenvalues

SET,FIRST !set first eigenvalue

PLDISP,1 !plot buckling mode

SET,NEXT !set next eigenvalue

PLDISP,1 !plot buckling mode

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T8/PrePostFE_Ex802.dat

As expected, the buckling mode that corresponds to a deformed shape in the X-Z plane is one

of the first modes which would not be considered in a 2-D analysis. Actually, this buckling mode

is the third found, although the critical load coincides with that of the second buckling mode in

the X-Y plane. Table 8.1 summarises the critical loads for the first ten calculated eigenvalues.

Table 8.1: Resulting eigenvalues for the bi-supported prismatic column.

Eigenvalue 1 2 3 4 5 6 7 8 9 10

Critical load (×106 N) 1.36 5.43 5.43 12.1 21.4 21.4 33.2 47.3 47.3 63.6

Example 8.3. The cantilever right angle frame shown in Figure 8.7 is subjected to an in-plane

end load F . Determine the first five bifurcation loads and deformed shapes for the structure. The

frame is made of steel with the following geometry: L = 250 mm, b = 30 mm and t = 1 mm.

Solution to Example 8.3. As in the previous example, the deformed shape of the structure can

produce out-of-plane displacements. Thus, a 3-D analysis has to be carried out. In this case, shell

elements will be used to this end.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 126: PrePostFE

120 Pre and post-process tools in finite element analysis

t

F

b

b

L

L

Figure 8.7: Cantilever structural frame.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command

window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, L-Frame: eigenvalues

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

t=1 !thickness in mm

L=250 !span in mm

b=30 !column base in mm

p=1 !applied load

ET,1,SHELL181 !element type #1: SHELL181 (6DoF)

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration imcompatible modes)

R,1,t !real constant #1, thickness

MP,EX,1,207000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson modulus for material #1

K,1,0,0 !generate key-points

K,2,0,-b

K,3,L-b,-b

K,4,L,-b

K,5,L,0

K,6,L-b,-L

K,7,L,-L

L,1,2,6 !define line and divisions

L,2,3,44

L,3,4,6

L,4,5,6

L,5,1,50

L,3,6,44

L,6,7,6

L,7,4,44

AL,1,2,3,4,5 !define areas through lines

AL,8,7,6,3

AGLUE,1,2 !bond areas

AMESH,ALL

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,0 !static analysis

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 127: PrePostFE

Chapter 8. Nonlinear analysis. Geometric nonlinearities 121

PSTRES,ON !calculate stress stiffness matrix

NSEL,S,LOC,X,0

D,ALL,ALL !fixed encastred nodes

NSEL,S,LOC,X,L

NSEL,R,LOC,Y,-L

F,ALL,FX,p !apply load

NSEL,ALL

SOLVE

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,BUCKLE !buckling analysis

BUCOPT,SUBSP,5 !buckling options: subspace iteration method, 5 eigenvalues

MXPAND !expand all buckling modes

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

SET,LIST !list eigenvalues

SET,FIRST !set first eigenvalue

PLNSOL,U,Z,2,10 !plot buckling mode

SET,NEXT !set next eigenvalue

PLNSOL,U,Z,2,10 !plot buckling mode

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T8/PrePostFE_Ex803.dat

Note that the first eigenvalue corresponds to a load F = 17.53 N.

8.3.2 Nonlinear buckling analysis

Nonlinear buckling analysis is usually the more accurate approach and the recommended for

design or evaluation of real structures. This technique uses a nonlinear static analysis with

gradually increasing loads to determine the load level at which the structure becomes unstable.

Using the nonlinear technique, the model can include features such as initial imperfections,

plastic behaviour, gaps, and large-deflection response. In addition, using deflection-controlled

loading, the post-buckled performance of the structure that buckles into a stable configuration

can be evaluated.

Example 8.4. Consider the structural frame in Ex. 8.3 and use a nonlinear buckling analysis to

determine the critical load and buckling curve for the structure. Use an out-of-plane perturbation

load applied at the free end of the frame to drive to the structure to buckling. This perturbation

is removed close to the buckling load.

Solution to Example 8.4. The out-of-plane perturbation load is only used to cause a small de-

formation and force the structure to buckle as a consequence of an assumed imperfection. In this

case, this assumed imperfection causes a small out-of-plane deflection. This perturbation is set

to Fz = 1 ×10−2 N.

As the eigenvalues of the structure have been evaluated in the previous example and it has

been determined that the first buckling mode occurs when F is 17.66 N, during the simulation

a load F = 24 N will be considered in order to obtain the post-buckling behaviour of the structure.

As expected, the critical load or bifurcation point predicted by using the nonlinear buckling

method is close to the first eigenvalue found in Ex. 8.3 although slightly lower. Figure 8.8 shows

the resulting buckling curve where it can be seen that the bifurcation point is about 16 N while

the structure starts to behave in a nonlinear way at about 10 N. It can be also seen in the figure

that the behaviour of the structure is stable after the bifurcation point as the structure tends to

stiffen and larger displacements requires larger loads.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 128: PrePostFE

122 Pre and post-process tools in finite element analysis

1

0

2.5

5

7.5

10

12.5

15

17.5

20

22.5

25

VALU

0

8

16

24

32

40

48

56

64

72

80

TIME

L-Frame: nonlinear buckling - load perturbation

NOV 27 2010

01:10:17

POST26

F_X

Displacement (mm)

Lo

ad (

N)

Figure 8.8: Buckling curve for the cantilever structural frame - load perturbation.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, L-Frame: nonlinear buckling - load perturbation

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

t=1 !thickness in mm

L=250 !span in mm

b=30 !column base in mm

ET,1,SHELL181 !element type #1: SHELL181 (6DoF)

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration imcompatible modes)

R,1,t !real constant #1, thickness

MP,EX,1,207000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson modulus for material #1

K,1,0,0 !generate key-points

K,2,0,-b

K,3,L-b,-b

K,4,L,-b

K,5,L,0

K,6,L-b,-L

K,7,L,-L

L,1,2,6 !define line and divisions

L,2,3,44

L,3,4,6

L,4,5,6

L,5,1,50

L,3,6,44

L,6,7,6

L,7,4,44

AL,1,2,3,4,5 !define areas through lines

AL,8,7,6,3

AGLUE,1,2 !bond areas

AMESH,ALL

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 129: PrePostFE

Chapter 8. Nonlinear analysis. Geometric nonlinearities 123

nNODE=node(L-b/2,-L,0) !store node number

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,0 !static analysis

NLGEOM,ON !activate geometric nonlinearities

ARCLEN,ON !use Arc Length method (for improved convergence)

NSUBST,2 !use 2 substeps

NSEL,S,LOC,X,0

D,ALL,ALL !fixed encastred nodes

ALLSEL

F,nNODE,FZ,1e-2 !apply perturbation load

SOLVE

FINISH

/SOLU !start SOLUTION MODULE

OUTRES,ALL,ALL !write results for every substep

NSUBST,40 !use 40 substeps

F,nNODE,FX,24 !apply load

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

SET,LAST !set last eigenvalue

PLNSOL,U,Z !plot buckling mode

/POST26 !start HISTORY-PLOT MODULE

NSOL,2,nNODE,U,Z,uz !evolution of Z-displacement at nNODE

ABS,3,2,,,U_Z !absolute value

XVAR,3 !use as X-axis

ESOL,4,389,nNODE,F,X,F_1 !evolution of applied force (element 389, nNODE)

ESOL,5,433,nNODE,F,X,F_2 !evolution of applied force (element 433, nNODE)

ADD,6,4,5,,F_X,,,-1,-1 !evolution of applied force (change sign)

PLVAR,6 !plot reaction force vs. displacement

PRVAR,3,6 !list displacement and reaction force

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T8/PrePostFE_Ex804.dat

Note that in this case the calculation requires more time as it is a nonlinear calculation. Thus,

it is important to adjust correctly all the control parameters in order to reduce the calculation

time and ensure the convergence of the solution.

Example 8.5. Consider the structural frame in Ex. 8.3 and 8.4 and use a nonlinear buckling

analysis to determine the critical load and buckling curve for the structure. In this case, use the

deformed shape of the first buckling mode multiplied by 1/10 of the thickness of the frame as the

initial perturbation.

Solution to Example 8.5. In this case, the eigenvalue analysis must be run first in order to

upload the deformed geometry of the structure for the first buckling mode as the initial pertur-

bation in the structure. As in the previous case, the eigenvalue analysis of the structure results

in the first buckling mode taking place when F is 17.66 N. Thus, during the simulation a load F

= 24 N will be considered in order to obtain the post-buckling behaviour of the structure.

Similarly to the previous example, the critical load or bifurcation point predicted is close to

the first eigenvalue but slightly lower and the structure is stable after the bifurcation point. As it

can be seen in Figure 8.9, the bifurcation point in the resulting buckling curve is about 16.5 N,

while the nonlinear behaviour of the structure starts at about 10 N. Observe that the resulting

load-displacement curve shown in Figure 8.9 is very similar to the one obtained in Ex. 8.4.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 130: PrePostFE

124 Pre and post-process tools in finite element analysis

1

0

2.5

5

7.5

10

12.5

15

17.5

20

22.5

25

VALU

0

8

16

24

32

40

48

56

64

72

80

TIME

L-Frame: nonlinear buckling - deformed shape perturbation

NOV 27 2010

01:05:26

POST26

F_X

Displacement (mm)

Lo

ad (

N)

Figure 8.9: Buckling curve for the cantilever structural frame - deformed shape perturbation.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, L-Frame: nonlinear buckling - deformed shape perturbation

/PREP7 !start PRE-PROCESSOR MODULE

!Parameters

t=1 !thickness in mm

L=250 !span in mm

b=30 !column base in mm

p=1 !applied load

delta=t/10 !shape factor multiplier (t/10)

ET,1,SHELL181 !element type #1: SHELL181 (6DoF)

KEYOPT,1,3,2 !element #1: keyoption 3=2 (full integration imcompatible modes)

R,1,t !real constant #1, thickness

MP,EX,1,207000 !Young’s modulus for material #1

MP,PRXY,1,0.3 !Poisson modulus for material #1

K,1,0,0 !generate key-points

K,2,0,-b

K,3,L-b,-b

K,4,L,-b

K,5,L,0

K,6,L-b,-L

K,7,L,-L

L,1,2,6 !define line and divisions

L,2,3,44

L,3,4,6

L,4,5,6

L,5,1,50

L,3,6,44

L,6,7,6

L,7,4,44

AL,1,2,3,4,5 !define areas through lines

AL,8,7,6,3

AGLUE,1,2 !bond areas

AMESH,ALL

nNODE=node(L-b/2,-L,0) !store node number

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,0 !static analysis

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 131: PrePostFE

Chapter 8. Nonlinear analysis. Geometric nonlinearities 125

PSTRES,ON !calculate stress stiffness matrix

NSEL,S,LOC,X,0

D,ALL,ALL !fixed encastred nodes

ALLSEL

F,nNODE,FX,p !apply load

SOLVE

FINISH

/SOLU !start SOLUTION MODULE

ANTYPE,BUCKLE !buckling analysis

BUCOPT,SUBSP,5 !buckling options: subspace iteration method, 5 eigenvalues

MXPAND !expand all buckling modes

SOLVE

FINISH

!Add displacement from previous analysis

!multiplier for added displacements,

!load step, substep (equivalent to mode=1),

!results file containing displacements and extension

/PREP7 !start PRE-PROCESSOR MODULE

UPGEOM,delta,1,1,file,rst

FINISH

/SOLU !start SOLUTION MODULE - continuation loads

ANTYPE,STATIC !static analysis

NLGEOM,ON !activate geometric nonlinearities

ARCLEN,ON !use Arc Length method (for improved convergence)

OUTRES,ALL,ALL !write results of every substep

NSUBST,40 !use 40 substeps

F,nNODE,FX,24 !apply load

SOLVE

FINISH

/POST1 !start POST-PROCESSOR MODULE

SET,LAST !set last eigenvalue

PLNSOL,U,Z !plot buckling mode

/POST26 !start HISTORY-PLOT MODULE

NSOL,2,nNODE,U,Z,uz !evolution of Z-displacement at nNODE

ABS,3,2,,,U_Z !absolute value

XVAR,3 !use as X-axis

ESOL,4,389,nNODE,F,X,F_1 !evolution of applied force (element 389, nNODE)

ESOL,5,433,nNODE,F,X,F_2 !evolution of applied force (element 433, nNODE)

ADD,6,4,5,,F_X,,,-1,-1 !evolution of applied force (change sign)

PLVAR,6 !plot reaction force vs. displacement

PRVAR,3,6 !list displacement and reaction force

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T8/PrePostFE_Ex805.dat

8.4 Suggested problems

Problem 8.1. The bi-supported column in Example 8.2 can be considered as a symmetric struc-

ture and therefore could be simulated using symmetry boundary conditions (as schematically

shown in Fig. 8.10). Determine if the resulting buckling eigenvalues are the same for the com-

plete structure and the symmetric half column or not. Justify the results.

Problem 8.2. Compute the bifurcation load and the post-buckling behaviour of the beam in

Example 8.2 by means of a nonlinear analysis. It is necessary to build-in the left extreme of the

beam.

Problem 8.3. Extract the first five bifurcation loads and deformed shapes of the structure pre-

sented in Figure 8.11. The thickness of the beam is 1.5 mm and it is made of steel. To solve it,

consider the Lanczos method.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 132: PrePostFE

126 Pre and post-process tools in finite element analysis

P

L/2

x

y

z

S

S

Figure 8.10: Buckling curve for the cantilever structural frame.

Figure 8.11: Cantilever T-beam.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 133: PrePostFE

Chapter 9

Material nonlinearities

9.1 Introduction

As has been introduced in Chapter 8, a nonlinear structural behaviour can be induced by a geo-

metric nonlinearity, a contact or boundary nonlinearity, or by a material nonlinearity. This chapter

deals with the nonlinear structural behaviour caused by material nonlinearities. It must be taken

into account that an analysis including nonlinear models requires an iterative solution that might

compromise its convergence and can be very expensive in terms of computational time.

Nonlinear material models arise from the presence of a time-independent behaviour, such as

hyperelasticity, plasticity or damage, or to take into account other time-dependent behaviours,

such as creep or viscoplasticity.

A number of material-related factors can cause changes in the stiffness of the structure dur-

ing the course of an analysis. Nonlinear stress-strain relationships of plastic, multilinear elastic,

and hyperelastic materials will cause a stiffness change in the structure at different load levels

(and, typically, at different temperatures). Creep, viscoplasticity, and viscoelasticity will give rise

to nonlinearities that can be time-, rate-, temperature-, or stress-related. Swelling will induce

strains that can be a function of temperature, time, neutron flux level (or some analogous quan-

tity), and stress. Some nonlinear material models are presented here as an example involving

different physical responses.

9.2 Plasticity

Most common engineering materials exhibit a linear stress-strain relationship up to a stress

level known as the proportional or elastic limit. Beyond this limit, the stress-strain relationship

becomes nonlinear, although not necessarily inelastic. Plastic behaviour, characterized by non-

recoverable strain, begins when the stress level exceeds the material yield point. Because there

is usually little difference between the yield point and the proportional limit, the most common

plasticity approach assumes that these two points are coincident in plasticity analyses (see Fig-

ure 9.1).

Plasticity is a nonconservative, path-dependent phenomenon. In other words, the sequence

in which loads are applied and in which plastic responses occur affects the final solution results.

If plastic response is anticipated for the analysis, loads should be applied as a series of small

incremental load steps or time steps.

127

Page 134: PrePostFE

128 Pre and post-process tools in finite element analysis

9.2.1 Bilinear Kinematic Plasticity

As shown in Figure 9.1, bilinear plasticity assumes an elastic linear behaviour up to the yield

point, and another linear behaviour after this point. The unload path is parallel to the elastic

response. This model is known as the bilinear kinematic hardening model and is recommended

for small-strain analyses involving materials that obey von Mises yield criteria (most metals).

Figure 9.1: a) Uniaxial plasticity behaviour, and b) Bilinear Plasticity approach

Hint 39: ANSYS properties for Bilinear Kinematic Hardening model

The bilinear kinematic hardening model is activated in ANSYS with the command TB,BKIN

(see the following example). The sequence number in TBDATA command is the yield stress in

the first position and the tangent modulus d.

Bilinear Kinematic Plasticity Example: Nickel Alloy

FINISH

/CLEAR

/PREP7

MP,EX,1,180e9 !Pa

MP,PRXY,1,.31 !no units

MP,DENS,1,8490 !kg/m3

TB,BKIN,1,1 !bilinear kinematic hardening, material #1, 1 temperature

TBDATA,1,900e6,445e6 !Yield stress (Pa) and Tangent modulus (Pa)

TBPLOT,BKIN,1 !display the data table

In the case of an isotropic hardening, the hardening of the material is independent of the di-

rection and it is the same for tension and compression. The Bilinear Isotropic Hardening model

uses the von Mises yield criteria coupled with an isotropic work hardening assumption. This

model is recommended for large strain analyses and it is activated in ANSYS with the command

TB,BISO. The definition parameters are the same as for the case of the bilinear kinematic model.

Example 9.1. Use a bilinear plasticity model to simulate in ANSYS an hexagonal Allen wrench

10 mm wide across flats made of high carbon steel (HCS) with a Young’s modulus of 210 ×103

MPa, a Poisson’s ratio of 0.3, a Yield stress of 500 MPa, and a Tangent modulus of 20 ×103 MPa.

Solution to Example 9.1. Small strains are expected for this analysis and the Bilinear Kine-

matic Hardening model is used. Two different load cases are considered to show the effect of

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 135: PrePostFE

Chapter 9. Material nonlinearities 129

the bilinear model and the generated plastic strain. Observe that once the first applied load is

removed there is no remaining deformation or plastic strain. However, when the second applied

load is removed, there is a remaining deformation and plastic strain. The ANSYS command list

is presented next.

FINISH

/CLEAR

/TITLE, Allen wrench with plastic strain

/UNITS,MPA !units are in mm, MPa, and Newtons

/PREP7 !start PRE-PROCESSOR MODULE

W_HEX=10 !distance across flats (10mm)

*AFUN,DEG !specifies units for angular functions in parameter expressions

W_FLAT=W_HEX/2/TAN(60)*2 !wrench edge length

L_SHANK=60 !shank length

L_HANDLE=112.5 !handle length

BENRAD=10 !bending radius between the shank and the handle

L_ELEM=7.5 !element length

NO_D_HEX=2 !number of element divisions in the hexagon

ET,1,SOLID185 !element type #1: SOLID186 (3 DoF)

KEYOPT,1,2,3 !element #1: keyoption 2=3 (simplified enhanced strain integration)

ET,2,PLANE182 !element type #2: PLANE182 (2 DoF)

KEYOPT,2,1,3 !element type #2: keyoption 1=3 (simplified enhanced strain formulation)

MP,EX,1,2.1E5 !define material, plastic steel, Young’s modulus

MP,PRXY,1,0.3 !Poisson coeficient

TB,BKIN,1,1 !bilinear isotropic hardening, material #1, 1 temperature

TBDATA,1,500,0.2E5 !yield stress, tangent modulus

TBLIST,BKIN,1 !list plastic model properties

/XRANGE,0,0.01 !x-axis range on TBPLOT

TBPLOT,BKIN,1 !plot plastic strain-stress model

RPOLY,6,W_FLAT !define the geometry of the Allen wrench section (hexagon)

K,7 !define the shank and handle lengths

K,8,,,-L_SHANK

K,9,,L_HANDLE,-L_SHANK

L,4,1

L,7,8

L,8,9

LFILLT,8,9,BENRAD !generates a fillet line between intersecting lines 8 and 9

ASBL,1,7 !subtracts lines from areas

CM,BOTAREA,AREA !groups geometry entities in the variable BOTAREA

LESIZE,2,,,NO_D_HEX !define control mesh and meshing of the hexagonal section

LESIZE,5,,,NO_D_HEX

LESIZE,1,,,1

LESIZE,3,,,1

LESIZE,4,,,1

LESIZE,6,,,1

TYPE,2 !change the element type to mesh the section

ESHAPE,2

AMESH,ALL

TYPE,1 !change the element type to mesh the volume

ESIZE,L_ELEM !define control mesh

VDRAG,2,3,,,,,8,10,9 !volume by dragging an area along a path, area, line path

CMSEL,,BOTAREA !select the group BOTAREA and assemblies

ACLEAR,ALL !clear the area and associate nodes

ASEL,ALL !select all areas

/VIEW,1,1,1,1

EPLOT !plot elements

FINISH !end PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

ANTYPE,STATIC

AUTOTS,ON !automatic stepping on

NSUBST,3,5,1 !number of substeps, max, min

CNVTOL,F,,,,1E-30 !set convergence tolerance on force, minimum

CMSEL,,BOTAREA !apply boundary conditions: clamp bot area

LSEL,,EXT !select the external lines of the BOTAREA

NSLL,,1 !select nodes associated with selected lines

D,ALL,ALL !clamp

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 136: PrePostFE

130 Pre and post-process tools in finite element analysis

NSEL,S,LOC,X,W_FLAT/2-0.1,W_FLAT+0.1 !select nodes to apply load

NSEL,R,LOC,Y,L_HANDLE-L_ELEM-0.1,L_HANDLE+0.1

CM,NLOAD,NODE !define group of nodes

ALLSEL

T=60 !apply a load of 60 N to nodes

F,NLOAD,FX,-T

SOLVE !solve 1st load set

FDELE,ALL,ALL !delete the loads

T=1e-10 !apply a load of 0 N to nodes

F,NLOAD,FX,-T

SOLVE !solve 2nd load set: no loads

T=120 !apply a load of 120 N to nodes

F,NLOAD,FX,-T

SOLVE !solve 3rd load set

FDELE,ALL,ALL !delete the loads

T=1e-10 !apply a load of 0 N to nodes

F,NLOAD,FX,-T

SOLVE !solve 4th load set: only remain plastic strain

FINISH !end SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

/DSCALE,,1 !do not scale displacements

SET,1

PLNSOL,EPEL,EQV !contour plot of von Mises equivalent elastic strains

PLNSOL,EPPL,EQV !contour plot of von Mises equivalent plastic strains

SET,2

PLNSOL,EPEL,EQV !contour plot of von Mises equivalent elastic strains

PLNSOL,EPPL,EQV !contour plot of von Mises equivalent plastic strains

SET,3

PLNSOL,EPEL,EQV !contour plot of von Mises equivalent elastic strains

PLNSOL,EPPL,EQV !contour plot of von Mises equivalent plastic strains

SET,4

PLNSOL,EPEL,EQV !contour plot of von Mises equivalent elastic strains

PLNSOL,EPPL,EQV !contour plot of von Mises equivalent plastic strains

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T9/PrePostFE_Ex901a.dat

The same problem can be simulated by defining an initial deformed state for a final load step

corresponding to the deformation-state resulting from an initial load step. Once this final load

step is solved with zero loads applied, the remaining deformations are the plastic deformations

of the initial step. In ANSYS this can be achieved by defining this initial deformed state by using

the INISTATE command. The ANSYS command list for the generation of the initial load step and

writing of the initial state file for the considered the example is presented next.

FINISH

/CLEAR

/TITLE, Allen wrench with plastic strain

/UNITS,MPA !units are in mm, MPa, and Newtons

/PREP7 !start PRE-PROCESSOR MODULE

W_HEX=10 !distance across flats (10mm)

*AFUN,DEG !specifies units for angular functions in parameter expressions

W_FLAT=W_HEX/2/TAN(60)*2 !wrench edge length

L_SHANK=60 !shank length

L_HANDLE=112.5 !handle length

BENRAD=10 !bending radius between the shank and the handle

L_ELEM=7.5 !element length

NO_D_HEX=2 !number of element divisions in the hexagon

ET,1,SOLID185 !element type #1: SOLID186 (3 DoF)

KEYOPT,1,2,3 !element #1: keyoption 2=3 (simplified enhanced strain integration)

ET,2,PLANE182 !element type #2: PLANE182 (2 DoF)

KEYOPT,2,1,3 !element type #2: keyoption 1=3 (simplified enhanced strain formulation)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 137: PrePostFE

Chapter 9. Material nonlinearities 131

MP,EX,1,2.1E5 !define material, plastic steel, Young’s modulus

MP,PRXY,1,0.3 !Poisson coeficient

TB,BKIN,1,1 !bilinear isotropic hardening, material #1, 1 temperature

TBDATA,1,500,0.2E5 !yield stress, tangent modulus

TBLIST,BKIN,1 !list plastic model properties

/XRANGE,0,0.01 !x-axis range on TBPLOT

TBPLOT,BKIN,1 !plot plastic strain-stress model

RPOLY,6,W_FLAT !define the geometry of the Allen wrench section (hexagon)

K,7 !define the shank and handle lengths

K,8,,,-L_SHANK

K,9,,L_HANDLE,-L_SHANK

L,4,1

L,7,8

L,8,9

LFILLT,8,9,BENRAD !generates a fillet line between intersecting lines 8 and 9

ASBL,1,7 !subtracts lines from areas

CM,BOTAREA,AREA !groups geometry entities in the variable BOTAREA

LESIZE,2,,,NO_D_HEX !define control mesh and meshing of the hexagonal section

LESIZE,5,,,NO_D_HEX

LESIZE,1,,,1

LESIZE,3,,,1

LESIZE,4,,,1

LESIZE,6,,,1

TYPE,2 !change the element type to mesh the section

ESHAPE,2

AMESH,ALL

TYPE,1 !change the element type to mesh the volume

ESIZE,L_ELEM !define control mesh

VDRAG,2,3,,,,,8,10,9 !volume by dragging an area along a path, area, line path

CMSEL,,BOTAREA !select the group BOTAREA and assemblies

ACLEAR,ALL !clear the area and associate nodes

ASEL,ALL !select all areas

/VIEW,1,1,1,1

EPLOT !plot elements

FINISH !end PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

ANTYPE,STATIC

AUTOTS,ON !automatic stepping on

NSUBST,3,5,1 !number of substeps, max, min

CNVTOL,F,,,,1E-30 !set convergence tolerance on force, minimum

CMSEL,,BOTAREA !apply boundary conditions: clamp bot area

LSEL,,EXT !select the external lines of the BOTAREA

NSLL,,1 !select nodes associated with selected lines

D,ALL,ALL !clamp

NSEL,S,LOC,X,W_FLAT/2-0.1,W_FLAT+0.1 !select nodes to apply load

NSEL,R,LOC,Y,L_HANDLE-L_ELEM-0.1,L_HANDLE+0.1

CM,NLOAD,NODE !define group of nodes

ALLSEL

T=60 !apply a load of 60 N to nodes

!T=120 !uncomment to apply load of 120 N to nodes

F,NLOAD,FX,-T

INISTATE,WRITE,1,,,,0,EPPL !write plastic deformation state in file

SOLVE !solve initial load set

FINISH !end SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

/DSCALE,,1 !do not scale displacements

PLNSOL,EPEL,EQV !contour plot of von Mises equivalent elastic strains

PLNSOL,EPPL,EQV !contour plot of von Mises equivalent plastic strains

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T9/PrePostFE_Ex901b.dat

The ANSYS command list for the generation of final load step and reading of the initial state

file for the considered example is presented next.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 138: PrePostFE

132 Pre and post-process tools in finite element analysis

FINISH

/SOLU !start SOLUTION MODULE

INISTATE,READ,file.ist !read plastic deformation state in file

FDELE,ALL,ALL !delete all loads

SOLVE !solve final load set: no loads

FINISH !end SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

/DSCALE,,1 !do not scale displacements

PLNSOL,EPEL,EQV !contour plot of von Mises equivalent elastic strains

PLNSOL,EPPL,EQV !contour plot of von Mises equivalent plastic strains

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T9/PrePostFE_Ex901c.dat

Observe that additionally to the expected plastic deformation there is a remaining elastic

deformation and stress. What is the cause of this remaining elastic deformation and stress?

9.2.2 Multiple-point Isotropic Plasticity

Multiple-point plasticity models can be used to define multilinear plasticity behaviours.

Hint 40: ANSYS properties for Multiple-point Isotropic Plasticity model

The multiple-point isotropic plasticity model is activated in ANSYS with the command TB,MISO

(see example next), the sequence number in TBPT command are the different stress-strain

points that define the material response.

Multiple-point Isotropic Plasticity Example: Aluminium

FINISH

/CLEAR

/PREP7

MP,EX,1,69000 !material #1: Elastic modulus

MP,PRXY,1,0.3 !material #1: Poisson coeficient

TB,MISO,1,1,11 !material #1, Multi-point isotropic plasticity, n- points

TBPT,,0.003,207 !nonlinear curve point,, x coordinate, y coordinate

TBPT,,0.004,230.7885

TBPT,,0.005,242.7903

TBPT,,0.006,252.0527

TBPT,,0.007,259.8827

TBPT,,0.008,266.7906

TBPT,,0.009,273.0415

TBPT,,0.01,278.7934

TBPT,,0.024,335.648

TBPT,,0.04,379.7314

TBPT,,0.063,428.6213

TBPLOT,MISO,1

Example 9.2. Considerer a thin-walled aluminum sphere with a radius r = 250 mm and a thick-

ness t = 5 mm. The sphere is subjected to an internal pressure p = 12 MPa. The elastic modulus

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 139: PrePostFE

Chapter 9. Material nonlinearities 133

and Poisson ratio of the material are E = 69 GPa and ν = 0.3. The plastic behaviour of aluminium

is governed by

σe = 207 + 930(ǫp)1/2

where σe is the effective stress and ǫp is the plastic strain. The aim is to obtain the radial dis-

placement with the internal pressure and the unrecoverable radial displacement after unloading.

Solution to Example 9.2. The following MATLAB file is used to obtain the stress vs. total strain

curve shown in Figure 9.2 and write the command sequence to define the material behaviour in

the ANSYS input file.

%% PrePostFE. Solution of Example 9.2.

% J.A. Mayugo, 2008

clear all;close all

E=69000 % MPa

nu=0.3

sigma_eff_0=207 % MPa

sigma_eff=930 % MPa

%% Elastic response

epsilon_elastic=[0:0.0001:0.005]; %elastic strain

sigma_elastic=E.*epsilon_elastic; %elastic stress

%% Plastic response

epsilon_p=[0:0.0001:0.065]; %plastic strain

sigma_eff=sigma_eff_0+sigma_eff.*(epsilon_p).^0.5; %plastic stress

%% Total response

epsilon_e=sigma_eff./E;

epsilon=epsilon_e+epsilon_p;

%% Multi-point plasticity model

epsilon_MISO=[[0.003:0.001:0.01],0.024,0.040,0.063];

sigma_MISO=interp1(epsilon,sigma_eff,epsilon_MISO,’linear’);

[m,n_MISO]=size(sigma_MISO)

figure1=figure

hold on

plot(epsilon,sigma_eff,’LineWidth’,1.8);

plot(epsilon_elastic,sigma_elastic,’r--’,’LineWidth’,1.8);

plot(epsilon_MISO,sigma_MISO,’kd’,’LineWidth’,1.8,’MarkerFaceColor’,’w’,’MarkerSize’,6);

hold off

xlabel(’Total strain’,’Fontsize’,16);ylabel(’Stress’,’Fontsize’,16);

legend(’Plastic response’,’Elastic response’,’Discrete response to MISO’,’Location’,’Best’);legend(’boxoff’);

set(gca,’Fontsize’,16);

saveas(figure1,[’PrePostFE_Ex902’],’eps’);

n_file = ’PrePostFE_Ex902’;

tline{1} = [’MP,EX,1,’,num2str(E),’ !material #1: Elastic modulus ’];

tline{2} = [’MP,NUXY,1,’,num2str(nu),’ !material #1: Poisson coeficient’];

tline{3} = [’TB,MISO,1,1,’,num2str(n_MISO),’ !material #1, Multi-point isotropic plasticity, n- points’];

for ii=1:n_MISO

tline{3+ii} = [’TBPT,,’,num2str(epsilon_MISO(ii)),’,’,num2str(sigma_MISO(ii))];

end

fid0 = fopen([n_file,’.txt’],’w’);

fprintf(fid0,’%10s\n\n’,’!INPUT FILE TO ANSYS, Multi-point isotropic plasticity’);

for i=1:n_MISO+3

fprintf(fid0,’%10s\n’,tline{i});

end

fclose(fid0);

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T9/PrePostFE_Ex902.m

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 140: PrePostFE

134 Pre and post-process tools in finite element analysis

0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.080

50

100

150

200

250

300

350

400

450

Total strain

Str

ess

Plastic responseElastic responseDiscrete response to MISO

Figure 9.2: Plasticity uniaxial behaviour

See input file for ANSYS below.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Aluminium sphere subjected to internal presure

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SHELL208 !element #1: 2-d axisymmetric SHELL

SECTYPE,1,SHELL !section #1: type shell

SECOFFSET,MID !section #1: offset=0

SECDATA,5,1,,5 !section #1: thickness, material and integration points

MP,EX,1,69000 !material #1: Elastic modulus

MP,PRXY,1,0.3 !material #1: Poisson coeficient

TB,MISO,1,1,11 !material #1, Multi-point isotropic plasticity, n- points

TBPT,,0.003,207 !non-linear curve point,, x coordinates, y coordinates

TBPT,,0.004,230.7885

TBPT,,0.005,242.7903

TBPT,,0.006,252.0527

TBPT,,0.007,259.8827

TBPT,,0.008,266.7906

TBPT,,0.009,273.0415

TBPT,,0.01,278.7934

TBPT,,0.024,335.648

TBPT,,0.04,379.7314

TBPT,,0.063,428.6213

K,1, !create keypoints

K,2,250

K,3,,250

LARC,2,3,1,250 !create arc

LESIZE,ALL,,,20 !specify 20 elements on line

LMESH,ALL !mesh

FINISH !exit PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

!OUTRES,ALL,1 !write results for each sub-step

NSUBST,,100,1 !number of substeps, max, min

NSEL,S,LOC,Y,0 !select nodes at Y=0

D,ALL,UY,0 !fix the node displacement in Y direction

SFE,ALL,1,PRES,,12 !apply internal pressure 12 MPa

NSEL,ALL !select all

SOLVE !solve the first load-step

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 141: PrePostFE

Chapter 9. Material nonlinearities 135

SFEDELE,ALL,1,PRES !delete all pressure loads

SOLVE !solve a second load-step

FINISH !exit SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

SET,1 !set the first load-step

PLDISP,1

SET,2 !set the second load-step

PLDISP,1

FINISH !exit POST-PROCESSOR MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T9/PrePostFE_Ex902.dat

9.3 Two parameter Mooney-Rivlin Hyperelastic

A material can be considered as hyperelastic if there is an elastic potential function (or strain

energy density function), which is a scalar function of one of the strain or deformation tensors,

whose derivative with respect to a strain component determines the corresponding stress com-

ponent. Hyperelasticity can be used to analyse elastomers or rubber-like materials subjected to

large strains and displacements with small volume changes (nearly incompressible materials).

Therefore, it is necessary to activate the large strain theory during the analysis. One of the hy-

perelasticity models that can be used in ANSYS is the Mooney-Rivlin model.

In the two parameter Mooney-Rivlin model the form of the strain energy potential is:

u = c10(

I1 − 3)

+ c01(

I2 − 3)

+1

d(J − 1)2 (9.1)

where u is the strain energy potential, I1 the first deviatoric strain invariant, I2 the second devia-

toric strain invariant, c01 and c10 are material constants characterising the deviatoric deformation

of the material, J determinant of the elastic deformation gradient and d is the material incom-

pressibility parameter.

The initial shear modulus is defined as:

µ = G = 2 (c10 + c01) (9.2)

and the initial bulk modulus is defined as:

K =2

d(9.3)

where if d is not defined explicity but as

d =1 + 2ν

c10 + c01(9.4)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 142: PrePostFE

136 Pre and post-process tools in finite element analysis

Hint 41: ANSYS properties for Mooney-Rivlin model

Mooney-Rivlin model for elements SHELL181, PLANE182, PLANE183, SOLID185, SOLID186,

SOLID187, SOLSH190, SHELL208, and SHELL209.

The Mooney-Rivlin model is activated in ANSYS with the command TB,HYPER,,,,MOONEY or

TB,MOONEY (see example next), the sequence number in TBDATA command is c10, c01, and d.

Mooney-Rivlin Example: Rubber

MP,DENS,1,.0018 !lb/in3

MP,PRXY,1,.499 !no units

TB,MOONEY,1

TBDATA,1,80 !C10 (psi)

TBDATA,2,20 !C01 (psi)

Example 9.3. Use ANSYS to model a circular plate made of rubber with applied pressure in one

surface. Use an hyperelastic model.

Solution to Example 9.3. See input file for ANSYS below.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Balloon / circular plate problem

/PREP7 !start PRE-PROCESSOR MODULE

MP,EX,1,1.E6 !Young’s modulus

MP,PRXY,1,0.5 !Poison coefficient

MP,DENS,1,0.1 !density

TB,HYPER,1,,,MOONEY !data table for Mooney-Rivlin hyperelastic model

TBDATA,1,80.0,20.0 !constants c_10 and c_01

ET,1,SHELL181 !element type SHELL181

R,1,0.5 !real constant set #1, thickness of 0.5 mm

N,1,0.,0. !geometry and mesh

N,2,0.17143,0.

N,3,0.47143,0.

N,4,0.90000,0.

N,5,1.4571,0.

N,6,2.1429,0.

N,7,2.9571,0.

N,8,3.9000,0.

N,9,4.9714,0.

N,10,6.1714,0.

N,11,7.5000,0.

N,101,0.,0.

N,102,0.16996,2.23759E-02

N,103,0.46740,6.15338E-02

N,104,0.89230,0.11747

N,105,1.4447,0.19020

N,106,2.1245,0.27970

N,107,2.9318,0.38598

N,108,3.8666,0.50905

N,109,4.9289,0.64890

N,110,6.1186,0.80553

N,111,7.4358,0.97895

E,1,2,102,102

E,2,3,103,102

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 143: PrePostFE

Chapter 9. Material nonlinearities 137

E,3,4,104,103

E,4,5,105,104

E,5,6,106,105

E,6,7,107,106

E,7,8,108,107

E,8,9,109,108

E,9,10,110,109

E,10,11,111,110

LOCAL,11,0,0.0,0.0,0.0,7.5,0.0,0.0 !new local coordinate system

NROTAT,102,111,1 !rotates nodes: 102 to 111

FINISH !finish PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

ANTYPE,STATIC !set static analysis

AUTOTS,ON !use automatic time stepping

NSUBST,400,1200,25 !specify the number of substeps, max, min

NLGEOM,ON !non-linear analysis

NROPT,FULL,,OFF !option of convergence: Newton-Raphson

OUTRES,ALL,ALL !solution data to be written

NEQIT,20 !max number of equilibrium iterations

D,1,UY,0.0,,11,1,ROTX,ROTZ !boundary conditions

D,102,UY,0.0,,111,1,ROTX,ROTZ

D,11,UX,0.0,,111,100,UY,UZ

D,1,UX,0.0,,,,UY,ROTX,ROTY,ROTZ

SF,ALL,PRES,50.0 !apply uniform pressure in psi

SOLVE !solve current load state

FINISH !finish SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

/NOPR !suppress graphing data

/VIEW,1,,-1 !change the view to plane x-z

!/ANG,1

!/USER

/FOCUS,1,4,,8,0 !setup center of graphics screen for disp. plot

/DIST,,12 !set distance to zoom out

/TRIAD,OFF !hide the coordinate system

SET,FIRST !set displacement data for first substep

PLDISP,0 !plot displacement data

/NOERASE !set display to overlay plot

SET,,10

PLDISP,0

SET,,20

PLDISP,0

SET,,25

PLDISP,0

SET,LAST

PLDISP,1 !plot final displacement with original position

/ERASE

/TRIAD,ON

/GOPR !reactivate supressed printout (\NOPR)

/ESHAPE,0

FINISH !finish POST-PROCESSOR MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T9/PrePostFE_Ex903.dat

The following file allows to obtain the thickness evolution an the displacement evolution (in

this case with an experimental comparison).

/POST26 !start TIME-HISTORY MODULE

/XRANGE,0,3.0 !x-axis scale range

/YRANGE,0,1 !y-axis scale range

/AXLAB,X,UZ OF CENTER/R-INITIAL !x-axis label

/AXLAB,Y,THICKNESS/ORIGINAL THICKNESS !y-axis label

NSOL,2,1,U,Z,UZ_1 !nodal data to be stored

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 144: PrePostFE

138 Pre and post-process tools in finite element analysis

ESOL,3,1,,SMIS,17,TH_1 !element data bo be stored

ADD,4,2,,,UZRATIO,,,0.13333333,0,0, !adds variables

ADD,5,3,,,SH.181,,,2,0,0,

/COLOR,CURVE,MRED !curve color

XVAR,4 !x-variable to be displayed

PLVAR,5 !y-variable to be displayed

/ERASE

/NOPR !supress the input data

*DIM,X,TABLE,20,1 !add a table: experimental data

*DIM,Y,TABLE,20,1

X(1,1)= 1.25 !table x data point

Y(1,1)= 1.25 !table y data pointX(2,1)= 1.8

Y(2,1)= 2.5

X(3,1)= 2.25

Y(3,1)= 4.0

X(4,1)= 2.6

Y(4,1)= 5.9

X(5,1)= 2.9

Y(5,1)= 7.8

X(6,1)= 3.2

Y(6,1)= 9.8

X(7,1)= 3.5

Y(7,1)= 11.6

X(8,1)= 3.62

Y(8,1)= 12.6

X(9,1)= 4.1

Y(9,1)= 15.3

X(10,1)= 4.9

Y(10,1)= 18.8

X(11,1)= 5.7

Y(11,1)= 22.1

X(12,1)= 6.2

Y(12,1)= 24.0

X(13,1)= 7.2

Y(13,1)= 27.9

X(14,1)= 8.3

Y(14,1)= 31.2

X(15,1)= 8.9

Y(15,1)= 32.9

X(16,1)= 9.9

Y(16,1)= 35.8

X(17,1)= 10.9

Y(17,1)= 38.0

X(18,1)= 13.1

Y(18,1)= 42.9

X(19,1)= 14.4

Y(19,1)= 45

X(20,1)= 15.2

Y(20,1)= 46

/GOPR !reactivates the supressed printout

/XRANGE,0,20 !x-axis scale range

/YRANGE,0,60 !y-axis scale range

/AXLAB,X,UZ OF CENTER (IN) !x-axis label

/AXLAB,Y,PRESSURE (LB/SQ IN) !y-axis label

/COLOR,CURVE,YGRE !curve color

*VPLOT,X(1,1),Y(1,1) !plot a curve from an array

/NOERASE

NSOL,2,1,U,Z,UZ_1 !nodal data to be stored

PROD,7,1,,,SH.181,,,50,0,0, !multiply solution by 50

/COLOR,CURVE,MRED !curve color

XVAR,2 !specify x variable to be displayed

PLVAR,7 !display solution in graph file

/ERASE

FINISH !finish TIME-HISTORY MODULE

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T9/PrePostFE_Ex903_post.dat

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 145: PrePostFE

Chapter 9. Material nonlinearities 139

9.4 Suggested problems

Problem 9.1. Reconsider the situation in Example 3.3 and introduce a bilinear plasticity model.

The yield stress is 270 MPa and ET = E/180. Increase the load until some plastic deformation

appears. Obtain the Von Misses contour plot of the plastic strain and comment the results. Show

your results in a report.

Problem 9.2. Generate an ANSYS model to simulate the behavior of a 5 mm thick rectangular

plate (see figure 9.3) with material nonlinearities defined by a bilinear kinematic plasticity law.

Use PLANE182 elements and consider the following material properties to define the non-linear

behaviour: an elastic modulus of 210 GPa, Poisson’s coefficient ν = 0.3, and a yield stress of 500

MPa. Define an appropriate value for the applied pressure p and obtain the stress-strain curve of

the bilinear plasticity approach when: a) the tangent modulus is 1% of the elastic modulus and

b) the tangent modulus is 0.1% of the elastic modulus.

Figure 9.3: Rectangular plate

Use the same applied pressure as before to simulate the same problem when the tangent

modulus is 0.01% of the initial modulus. Comment the obtained results.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 146: PrePostFE
Page 147: PrePostFE

Chapter 10

Contact

10.1 Introduction

Contact is the situation in which two separate surfaces touch each other at some point or region.

At that region they become mutually tangent, which means:

• They do not interpenetrate

• They can transmit compressive normal forces and tangential friction forces.

• They do not transmit tensile normal forces and, consequently, they are free to separate and

move away from each other.

The contact between two different bodies or elements, and the associated forces, can be mod-

eled during a Finite Element Analysis. However, contact problems are highly nonlinear, since the

load direction and position depends on the deformation of the structure but also the stiffness of

the system depends on the contact status (no contact, sticking or sliding).

Consequently, contact problems consume significant computer resources. It is important to

understand the physical basis of the problem and prepare the model accordingly in order to make

it as efficient as possible.

In addition, contact problems include two extra difficulties:

• The regions or zones where contact will take place are unknown until the model is solved.

Obviously, these regions depend on the applied loads or displacements, material, boundary

conditions and other. During the solution, different surfaces can come into and go out of

contact with each other in an unpredictable way.

• Second, most contact problems involve friction. Although there are different friction laws

to model this problem, they all are nonlinear. Frictional response can be chaotic, making

solution convergence difficult.

Most Finite Element codes deal with the contact problem by defining special contact elements

between the two or more surfaces that can come into contact. Thus, in a model involving con-

tact, the surfaces where the contact can take place must be specified and the contact elements

defined. Usually there are two types of contact finite elements: those attached to the rigid or

more rigid body (TARGET elements in ANSYSTM ) and those attached to the deformable or more

141

Page 148: PrePostFE

142 Pre and post-process tools in finite element analysis

deformable body (CONTACT elements in ANSYSTM ).

In general, there are two different classes of contact problems:

• Rigid-to-deformable.

• Deformable-to-deformable.

In the first category, one or more of the contacting surfaces are treated as rigid. The stiff-

ness of the rigid body is much higher than that of the deformable body and it can be regarded

as undeformable. This is the general case of a ’soft’ body in contact with a ’hard’ body (such

as a metal-forming problem). The other class, deformable-to-deformable, is the more common

type. In this case, all the contacting bodies are deformable and have relatively similar stiffnesses.

In order to help the convergence of the solution, it is recommended to use displacements

instead of forces. In this way, rigid body motions before the contact is established are minimized.

In case that the applied loads in the model have to be forces, it is recommended to subdivide the

solution in two different load steps. During the first load step, a small displacement is applied to

ensure the contact between the different bodies. During the second load step, the forces of the

model are applied. In this way, the first load step ensures the contact between the bodies and

minimizes rigid body motion. The second load step, corresponds to the real calculation of the

model.

Hint 42: Contact elements and Contact and Target surfaces

Contact elements are those to receive the loads and undergo deformations. These elements

are not allowed to penetrate the contact surface. However Target elements are allowed to

penetrate through the contact surface.

For rigid-to-deformable contact, the designation is easy: the target surface is the rigid sur-

face and the contact surface the deformable surface. However, in deformable-to-deformable

the choice of target and contact surfaces may affect the solution accuracy.

Hint 43: Contact elements in ANSYS

Element Usage

CONTA171 and CONTA172 2D Surface-to-surface

CONTA174 3D Surface-to-surface

CONTA175 2D/3D Node-to-surface

CONTA176 3D line-to-line

CONTA177 3D line-to-surface

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 149: PrePostFE

Chapter 10. Contact 143

Example 10.1. The stress distribution generated in two cylinders in contact can be obtained

in an analytical way according to Hertz theory or modeled through a nonlinear Finite Element

Analysis. Consider the two metallic cylinders shown in Figure 10.1 and model the generated

contact stress when the applied force is F = 20000 N. The first cylinder has a radius R1 = 15 mm

and is made of aluminum (E = 71000 MPa and ν = 0.334). The second cylinder has a radius R2

= 10 mm and is made of steel (E = 207000 MPa and ν = 0.29).

Figure 10.1: Metallic cylinders in contact

Solution to Example 10.1. As the problem is symmetric, it is only necessary to model a quarter

of the cylinders (shaded zone in Figure 10.1). To ensure the contact between the two cylinders

and avoid convergence problems, a first step is generated imposing a small initial displacement

on cylinder 2.

In this case, and although cylinder 2 is much more stiff than cylinder 1, both cylinders have

been considered as deformable for illustration.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext.

FINISH

/CLEAR

/TITLE, Contact stress in cylinders (Model 2D plane stress)

!Parameters

R1=15 !radius bottom cylinder

R2=10 !radius top cylinder

F=20000 !applied load

I=0.0075 !initial displacement

/PREP7 !start preprocess module

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

ET,2,TARGE169 !element type #2: target element

ET,3,CONTA171 !element type #3: contact element

MP,EX,1,71000 !material #1: E=71000 MPa

MP,NUXY,1,0.334 !material #1: Poisson=0.334

MP,EX,2,207000 !material #2: E=207000 MPa

MP,NUXY,2,0.29 !material #2: Poisson=0.29

!Geometry: keypoints: bottom cylinder

CSYS,1 !cylindrical coordinate system

K,1,0,0

K,2,R1,0

K,3,R1/2,90

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 150: PrePostFE

144 Pre and post-process tools in finite element analysis

K,4,R1,30

K,5,R1,90

!Geometry: keypoints: top cylinder

LOCAL,102,1,0,R1+R2,0 !local cylindrical coordinate system

CSYS,102

K,6,R2,-90

K,7,R2/2,-90

K,8,R2,-30

K,9,0,0

K,10,R2,0

CSYS,0 !general coordinate system (cartesian)

!Geometry: lines

L,1,2,30

L,1,3,5

LARC,2,4,1,R1 !arc: first KP,last KP, centre KP, radius

LESIZE,3,,,5 !5 divisions

L,3,4,30

L,3,5,30,.1 !30 decreasing divisions: last div=first div/10

LARC,4,5,1,R1

LESIZE,6,,,30,.1 !30 decreasing divisions: last div=first div/10

L,6,7,20,10 !20 increasing divisions: last div=first div*10

LARC,6,8,9,R1

LESIZE,8,,,20,10 !20 increasing divisions: last div=first div*10

L,7,8,20

L,7,9,5

LARC,8,10,9,R1

LESIZE,11,,,5 !5 divisions

L,9,10,20

!Geometry: areas

AL,1,2,3,4 !areas by lines

AL,4,5,6

AL,7,8,9

AL,9,10,11,12

AGLUE,1,2 !glue areas

AGLUE,3,4

!Mesh

TYPE,1 !select PLANE182 elements

MAT,1 !select aluminium

MSHKEY,1 !mesh with 4 node elements

AMESH,1,2 !mesh areas 1 and 2 (bottom cylinder)

MAT,2 !select steel

MSHKEY,1 !mesh with 4 node elements

AMESH,3,4 !mesh areas 3 and 4 (top cylinder)

!Generate contact pairs: target (the stiffest)

LSEL,S,,,8 !select line 8

REAL,1 !assign real constant

TYPE,2 !assign element type 2 (target element)

NSLL,S,1 !select nodes on selected line

ESLN,S,0 !select elements attached to selected node

ESURF !create elements overlaid on free element surfaces

!Generate contact pairs: contact (the softer)

LSEL,S,,,6 !select line 6

REAL,1 !assign real constant

TYPE,3 !assign element type 3 (contact element)

NSLL,S,1 !select nodes on selected line

ESLN,S,0 !select elements attached to selected node

ESURF !create elements overlaid on free element surfaces

NSEL,ALL !select all nodes

ESEL,ALL !select all elements

FINISH !finish preprocess module

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 151: PrePostFE

Chapter 10. Contact 145

/SOLU !start solution module

NLGEOM,ON !non-linear analysis

!First step: ensure contact

NSEL,S,LOC,X,0

D,ALL,UX,0 !fix horizontal displacement

NSEL,S,LOC,Y,0

D,ALL,UY,0 !fix vertical displacement

NSEL,S,LOC,Y,R1+R2

D,ALL,UY,-I !ensure contact

NSEL,ALL

SOLCONTROL,ON !activate automatic solution control in non-linear analysis

NSUBST,1 !number of substeps in load step

TIME,1 !set the time=1 for the load step

SOLVE !solve current load step

!Secodn step: Apply load

NSEL,S,LOC,Y,R1+R2 !delete displacement BC on top cylinder

DDELE,ALL,UY

CP,1,UY,ALL !couples Y-dof selected nodes in nset=1

NSEL,R,LOC,X,0

F,ALL,FY,-F/2 !apply half load (symmetry)

NSEL,ALL

SOLCONTROL,ON

NSUBST,1 !number of substeps in load step

TIME,2

SOLVE !solve current load step

FINISH !finish solution module

/POST1 !start Post-Processor module

PLDISP,1 !plot the deformed shape

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T10/PrePostFE_Ex1001.dat

Hint 44: Post-processing Contact in ANSYS

Contact may be post-processed using the PLESOL command:

PLESOL,CONT,Comp

In Comp we can introduce, among others, one of the following:

Comp Description

STAT Contact status: 3-closed and sticking 2-closed and

sliding 1-open but near contact 0-open and not near

contact

PRES Contact pressure

SFRIC Contact friction stress

Example 10.2. Consider the grip arm in Ex. 3.13. In that case, the contact between the grip-

arm and its rotation axis was not considered and the axis was modeled with stiff beams to avoid

modelling contact. Moreover, contact with the loading cone on the top part was simulated fixing

one node. Redefine the model generated in Ex. 3.13 to include the contact between arm and the

loading cone. Consider that the loading cone is made of steel, is undeformable and it is loaded by

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 152: PrePostFE

146 Pre and post-process tools in finite element analysis

a vertical load F = 14 N (take into account that in the real mechanism there are three grip-arms

like this).

Solution to Example 10.2. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH

/CLEAR

/TITLE, Grip arm, cone contact

/AUX15 !import IGES file

IOPTN,IGES,NODEFEAT !select options

IOPTN,MERGE,YES

IOPTN,SOLID,YES

IOPTN,SMALL,YES

IOPTN,GTOLER, DEFA

IGESIN,’grip_arm’,’igs’,’ ’

!Parameters

F=14 !load applied to the loading cone

/PREP7 !start preprocess module

ET,1,PLANE182 !element type #1: PLANE182 (2 DoF)

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

KEYOPT,1,3,3 !element type #1: keyoption 3=3 (plane stress w/thickness)

R,1,5 !real constant #1: thickness=5 mm

ET,2,LINK180 !element type #2: LINK180 (3 DoF)

R,2,1e9 !real constant #2: area (ultra rigid bar)

ET,3,TARGE169 !target element

ET,4,CONTA171 !contact element

MP,EX,1,71000 !material #1: E=71000 MPa

MP,NUXY,1,0.33 !material #1: Poisson=0.33

MP,EX,2,210000 !material #2: E=210000 MPa

MP,NUXY,2,0.3 !material #2: Poisson=0.3

LGEN,,all,,,-1747.394,-416.3893,0,,,1 !move lines coordinates to the origin

LSEL,s,,,1,11 !select lines

LSEL,u,,,3,4 !unselect circle lines

AL,all !generate global area with all selected lines

LSEL,s,,,3,4 !select circle lines

AL,all !generate circle

ASBA,1,2 !substract circle to global area

N,,0,0,0 !generate node on 0,0,0 (origin)

LESIZE,3,,,10 !divisions line 3

LESIZE,4,,,10 !divisions line 4

AESIZE,all,2 !element size a 2 mm

MSHKEY,2 !try quadrangualar elements

AMESH,all !mesh all areas

TYPE,2 !set element #2

MAT,2 !set material #2

SECNUM,2 !set section #2

REAL,2 !set real constant #2

E,1,178 !generate element between nodes #1 and #178

*REPEAT,20,0,1 !repaeat previous command 19 times incrementing +1 the second argument

!Define the cone

K,100,21,16,0

K,101,39,40,0

L,100,101 !creates circle with centre K and radius

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 153: PrePostFE

Chapter 10. Contact 147

NKPT,9999,101 !pilot node for cone

!Generate contact pairs: target (the cone)

REAL,3 !assign real constant

TYPE,3 !assign element type 3

LATT,2,3,3 !assign material, real and element type to line

LMESH,12 !create elements on line

TSHAP,PILO !specify target with pilot node

E,9999 !specify pilot node

!Generate contact pairs: contact (the grip)

LSEL,S,,,9 !select the line 9

REAL,3 !assign real constant

TYPE,4 !assign element type 4

NSLL,S,1 !select nodes attached to the line

ESLN,S,0 !select elements attached to the nodes

ESURF !create elements on free element surfaces

!Reverse target normals, point to contact

ESEL,TYPE,3 !select type 3 elements

ESURF,,REVERSE !reverse normals

ALLSEL,ALL !select all

FINISH !finish preprocess module

/SOLU !start solution module

!First step: ensure contact

D,1,UX,,,,,UY,UZ !fix all displacements of the articulated node

D,172,UX,,,,,UY !fix horizontal and vertical displacement fixed node

D,9999,UX

D,9999,UY,1.2 !y displacement to initiate the contact: 1.2 mm

!Solution parameters

NLGEOM,ON !activate non-linear analysis

SOLCONTROL,ON !activate the optimized non-linear solution

NSUBST,1 !number of substeps in load step

TIME,1 !set the time=1 for the load step

SOLVE !solve current load step

!Secodn step: apply load

DDELE,9999,UY !delete applied displacement

F,9999,FY,F/3 !apply load (symmetry)

NLGEOM,ON !activate non-linear analysis

SOLCONTROL,ON !activate the optimized non-linear solution

NSUBST,1 !number of substeps in load step

TIME,2 !set the time=2 for the load step

SOLVE !solve current load step

FINISH !finish solution module

/POST1 !open postprocess

PRRSOL !list reaction forces

/DSCALE,ALL,1 !deformed scale

/EFACET,1 !plot 1 facet per element edge

PLNSOL,S,EQV !plot VonMises stress

FINISH

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T10/PrePostFE_Ex1002.dat

10.2 Frictional Contact

The contact between two surfaces may generally include friction. Although there exist some dif-

ferent models for friction, the most commonly employed is the one by Coulomb (Figure 10.2).

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 154: PrePostFE

148 Pre and post-process tools in finite element analysis

Figure 10.2: Coulomb’s friction model

This model states that the maximum value of the friction force equals the product of the force

component which is normal to the surface (N) by the static friction coefficient (µs). If external

forces in the same direction of the friction are higher than this maximum value, then a relative

movement between surface starts and the friction force equals the product of the normal by the

dynamic friction coefficient (µd).

Example 10.3. Friction wedges are extremely simple mechanisms employed to lift loads. Model

the friction wedges shown in Figure 10.3 and obtain the shear stress acting on the contact sur-

face. Material 1 is aluminium and material 2 is steel. The static and dynamic friction coefficient

are 0.2. d is a displacement of 200 mm applied on the left edge of the wedge. The angle of the

wedge is 15o.

Figure 10.3: Friction wedge

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 155: PrePostFE

Chapter 10. Contact 149

Hint 45: Coulomb’s friction in ANSYS

To employ Coulomb’s friction model in ANSYS, the only thing we need to do is to specify the

friction coefficients, using the commands:

MP,MU,ID,VALUE

where ID is the material number and VALUE is the dynamic friction coefficient. If the

dynamic and static friction coefficient are different, the static one can be introduced by means

of a real constant. The value of this real constant is the factor (FACT) between the static and

dynamic coefficient:

µs = FACT · µd

As you may see in Figure 10.2, Colulomb’s friction model has a discontinuity, since the static

coefficient changes abruptly when µs and µd are different. To avoid convergence problems,

ANSYS allows to introduce a decay exponential function between µs and µd depending on the

relative velocity:

µ = µd · (1 + (FACT− 1) · exp−DC · vr)

where DC is the decay coefficient and vr the relative velocity. The decay coefficient may be

computed if a point of the curve (µ1, vr1) is known:

DC = −1

vr1· ln

µ1 − µd

(FACT− 1) · µd

For the contact elements FACT and DC are introduced as real constant at the 21st and 22nd

place, respectively, of the R command, so the following lines have to be introduced:

R,ID,,,,,,

RMORE,,,,,,

RMORE,,,,,,

RMORE,,,FACT,DC,,

where ID is the number of the real constant set.

Solution to Example 10.3. Some tolerance distance (1 mm) is employed to avoid both blocks

start the analysis being in contact.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Curved Beam - Solid Modeling

/PREP7 !start PRE-PROCESSOR MODULE

PI=3.14159265 !pi angle

PHI=PI/12 !phi angle -> 15º

S=SIN(PHI)

C=COS(PHI)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 156: PrePostFE

150 Pre and post-process tools in finite element analysis

TOL=1 !tolerances between the blocks

ET,1,PLANE182 !element type #1: PLANE182

KEYOPT,1,1,3 !element type #1: keyoption 1=3 (simplified enhanced strain formulation)

KEYOPT,1,3,3 !element type #1: keyoption 3=3 (plane stress w/thickness)

R,1,200 !block thickness

ET,2,TARGE169 !target element

ET,3,CONTA171 !contact element

MP,EX,1,70000 !material #1: E=70000 MPa

MP,NUXY,1,0.27 !material #1: poisson=0.27

MP,DENS,1,2.7e-6 !material #1: density 2.7Kg/mm^3

MP,MU,1,0.2 !friction coefficient

MP,EX,2,207000 !material #2: E=207000 MPa

MP,NUXY,2,0.27 !material #2: poisson=0.27

MP,DENS,2,7.8e-6 !material #2: density 7.8Kg/mm^3

MP,MU,2,0.2 !friction coefficient

!Geometry: Keypoints: block 1

K,1,0,TOL

K,2,100,TOL

K,3,100+900*C,900*S+TOL

K,4,100+900*C,200+900*S+TOL

K,5,0,200+900*S+TOL

!Geometry: Keypoints: block 2

K,6,100+400*C,0

K,7,100+400*C,400*S

K,8,100+1400*c,1400*S

K,9,600+1400*C,1400*S

K,10,600+1400*C

L,1,2,3 !block 1: lines

L,2,3,15

L,3,4,5

L,4,5,20

L,5,1,10

L,6,7,3 !block 2: lines

L,7,8,20

L,8,9,10

L,9,10,10

L,10,6,30

A,1,2,3,4,5 !block 1: area

A,6,7,8,9,10 !block 2: area

MAT,1

AMESH,1 !mesh block 1

MAT,2

AMESH,2 !mesh block 2

!Generate contact pairs: target (the stiffests)

TYPE,2 !change the element type to #2

REAL,2

LSEL,S,,,7 !select line 7

NSLL,S,1 !select nodes on selected line

ESLN,S,0 !select elements attached to selected node

ESURF !create elements on free element surfaces

!Generate contact pairs: contact (the softer)

TYPE,3 !change the element type to #3

REAL,2

KEYOPT,3,4,1 !detect contact from nodal point

KEYOPT,3,5,3 !auto close gap/reduce penetration

LSEL,S,,,2 !select line 2

NSLL,S,1 !select nodes on selected line

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 157: PrePostFE

Chapter 10. Contact 151

ESLN,S,0 !select elements attached to selected node

ESURF !create elements on free element surfaces

ALLSEL !select all

/SOLU

!First step: gravity

NSUBST,1 !number of substeps in load step

TIME,1

ACEL,,9.81 !acceleration due to gravity

DL,10,2,UY,0 !fix Y displacement of block #2

DL,5,1,UX,0 !fix X displacement of block #1

SOLVE !solve current load step

!Second step: apply load

DL,9,2,UX,-200 !apply X displacement to block #2

NSUBST,20,50,10 !number of substeps in load step

TIME,2

AUTOTOTS,ON !use automatic time substepping

OUTRES,ALL,ALL !write all solution items to the database

NLGEOM,ON !non-linear geometric analysis

SOLVE !solve current load step

FINISH !finish Solution module

/POST1 !enter the Post-Processor module

PLNSOL,S,Y !plot stress in Y direction

/DSCALE,,1

PLDISP,1 !plot the deformed shape

PLESOL,CONT,SFRIC !plot the friction forces on the contact surface

PLESOL,CONT,PRES !plot the pressures on the contact surface

SET,FIRST

/REPLOT

SET,NEXT

/REPLOT

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T10/PrePostFE_Ex1003.dat

10.3 Glue-type or assembly contact for dense-to-coarsemesh tran-

sition

Although it is not its main purpose, contact options of a finite element program can also be em-

ployed to model assemblies and to avoid difficult mesh transitions. That is, different components

may be meshed independently and assembled using glue-type contact.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 158: PrePostFE

152 Pre and post-process tools in finite element analysis

Hint 46: Glue-type contact or assemblies in ANSYS

When using ANSYS’ contact elements assemblies may be easily defined using KEYOPTIONS

of these elements:

• Setting KEYOPT(2) = 2, the contact algorithm will consider contact region as a multi-

point constraint (MPC)

• When using the multipoint constraint (MPC) approach to define surface-based constraints,

use KEYOPT(4) in the following way: set KEYOPT(4) = 1 for a force-distributed constraint,

set KEYOPT(4) = 2 for a rigid surface constraint.

• KEYOPT(12) = 5 for bonded always contact, or KEYOPT(12) = 6 for bonded initial contact.

Example 10.4. Let us model a modern art urban sculpture consisting of a steel column which

is glued to a concrete block. Let us assume the bond surface remains rigid. One of the critical

loadcases for this construction is to have a pressure of 10 MPa on the surface of the block. Obtain

the contact pressure.

Figure 10.4: Urban sculpture

Solution to Example 10.4. The following KEYOPTIONS are set:

• Keyoption(2) = 2. The contact is treated as a MPC.

• Keyoption(4) = 2. The contact surface remains rigid.

• Keyoption(12) = 5. The contact remains always bonded.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 159: PrePostFE

Chapter 10. Contact 153

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Curved Beam - Solid Modeling

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,SOLID185 !element type #1: solid185

KEYOPT,1,2,3 !element #1: keyoption 2=3 (Simplified enhanced strain formulation)

ET,2,PLANE182 !element type #2: plane182

KEYOPT,2,1,3 !element #2: keyoption 1=3 (Simplified enhanced strain formulation)

MP,EX,1,207000 !material #1: E=207000 MPa

MP,NUXY,1,0.27 !material #1: poisson=0.27

MP,EX,2,50000 !material #2: E=50000 MPa

MP,NUXY,2,0.3 !material #2: poisson=0.30

CYL4, 1000, 1000, 250, 360,,, 1000 !define the cylinder

BLOCK,0,3000,0,2000,0,-500 !define the block

LSEL,S,LINE,,1,4 !select top and bottom lines of the cylinder

LSEL,A,LINE,,5,8

LESIZE,ALL,,,12 !define the element size

LSEL,S,LINE,,9,10 !select side lines of the cylinder

LESIZE,ALL,,,15 !define the elelment size

EXTOPT,ACLEAR,1 !sets the pattern area meshed to clear once the volume is meshed

AMESH,1

VSWEEP,1,1,2 !area sweep to mesh the cylinder

LSEL,S,LINE,,11,22 !select the lines that define the block geometry

LESIZE,ALL,100 !define the element size

AMESH,6 !mesh a block side

VSWEEP,2,6,5 !area sweep to mesh the block

ET,3,CONTA174 !define contact element (3D, 8-node)

KEYOPT,3,2,2 !sets "GLUE" type contact (considers contact region as a multipoint constraint)

KEYOPT,3,4,2 !sets rigid surface constraint

KEYOPT,3,12,5 !KEYOPT(12)=5 "Initial contact"

ET,4,TARGE170 !define the target element

TYPE,3

MAT,2

AMESH,1

TYPE,4

ASEL,S,AREA,,6 !select area

NSLA !select nodes attached to selected areas

NSEL,R,LOC,X,55,1500

NSEL,R,LOC,Y,55,1500

ESLN,S,0 !select elements attached to nodes

ESURF !generates overlaid elements

ALLSEL !select all

FINISH

/SOLU !begin Post-Processor module

!First step

NLGEOM,ON

AUTOTS,ON

NSUBST,1 !number of substeps in load step

TIME,1

SOLVE !solve current load step

!Second step: apply load

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 160: PrePostFE

154 Pre and post-process tools in finite element analysis

DA,2,ALL,0 !fix area 2

SFA,5,,PRES,10 !apply surface load

NSUBST,1 !number of substeps in load step

TIME,2

SOLVE !solve current load step

/POST1

PLNSOL,S,Y

PLDISP,1

PLESOL,CONT,PRES

FINISH !finish Post-Processor module

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T10/PrePostFE_Ex1004.dat

The pressure contact is 121.483 MPa.

10.4 Proposed Problems

Problem 10.1. Reconsider the situation in Ex. 10.1 and model cylinder 2 as an undeformable

body. Compare the resulting stress distributions in cylinder 1 in both cases and the displacement

of cylinder 2.

Problem 10.2. Reconsider the situation in Ex. 10.3 but making µd = 0.1,µs = 0.15. Try to use a

decay function. Apply the displacement gradually and analyze the evolution of the friction stress

over the surfaces with time.

Problem 10.3. The spread footing displayed in figure 10.5 is loaded by a force F = 1T/m and

a moment M . Determine the minimum value of M that cause a partial loss of contact between

the foundation and the ground. Consider the foundation very rigid with a Young’s modulus of

30000MPa and a Poisson’s of 0.3. Compute the maximum contact stress obtained for this moment.

Figure 10.5: Spread footing

Note: consider plane strain.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 161: PrePostFE

Chapter 11

Heat transfer

11.1 Introduction

Heat transfer is a directional phenomena whose direction is from the bodies at a higher temper-

ature to the bodies at a lower temperature until a thermal equilibrium is reached. This chapter is

devoted to those mechanical problems involving heat transfer in the three different mechanisms:

conduction, convection and thermal radiation. The different magnitudes of a thermal analysis

and their role in a finite element model are:

Temperatures are the degrees of freedom (DOF) of the problem. So, temperatures can be

restricted at some parts of the domain and are also the solution, as displacements are in

structural analyses.

Heat flows are surface loads employed when the total amount of heat which goes through a

surface is known. Its value is positive if the flux goes to the element. This kind of load can

only be applied to solid elements and shells. They are the analog load to pressures in the

structural analysis.

Convection are loads per unit area. They can be applied at external surfaces where a fluid is

acting. They can only be applied on solids or shells. In models constructed with linear

elements, the convection element LINK34 can be employed to specify convective loads.

They are close to be the analog load to a pressure in a structural analysis.

Heat flow rates are loads concentrated on nodes. They are generally employed with linear ele-

ments where convection and heat fluxes cannot be applied. The analog load in a structural

analysis is the force.

Heat generation rates they can be applied as element loads to model the heat generated within

the element, due to electrical current or chemical reactions, for instance. They must be

expressed in heat flux per unit time and unit surface. Are treated as body loads (like the

gravity in a structural analysis).

Since heat flows and convective loads are both surface loads, only one of them can be applied

on a surface at the same time.

155

Page 162: PrePostFE

156 Pre and post-process tools in finite element analysis

Hint 47: Temperatures as DOF in ANSYS

Since for the thermal analysis temperatures are the DOF, temperatures can be introduced in

an analogous manner as displacements and rotations were introduced for structural analysis.

That is, employing the commands to set DOF values at nodes and lines:

D, NODE, TEMP, VALUE

DL, LINE, AREA, Lab, VALUE

where VALUE is the temperature value and where Lab = TEMP was introduced.

Hint 48: Heat transfer elements in ANSYS

Element type ANSYS elements

Conductive bar LINK33

Solids 2-D (quads) PLANE55, PLANE77

Solids 2-D (triangle) PLANE35

Solids 3-D (brick) SOLID70, SOLID90

Thetraedral SOLID87

Shell SHELL131 (with KEYOPT(3)=2

Convection link LINK34

Radiation link LINK31

Radiation matrix MATRIX50 (with KEYOPT(1)=1)

Infinite boundary INFIN9, INFIN47

11.2 Heat transfer mechanisms

11.2.1 Heat conduction

When there exists a thermal gradient and two substances contact, molecules from both sub-

stances exchange energy. Also in the presence of a heat gradient some solids such as metals

exchange heat employing available free electrons. These two mechanisms involve heat conduc-

tion.

The equation which describes heat conduction was introduced by Fourier:

qxA

= −λdT

dx(11.1)

where qx is the heat flux at x direction, A is the surface normal to the heat flux dT/dx is the

thermal gradient in the x direction and λ is the heat conduction coefficient or conductivity. The

three-dimensional equation can be written:

~q

A= −λ∇T (11.2)

where ∇ is the gradient operator.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 163: PrePostFE

Chapter 11. Heat transfer 157

To make possible heat conduction the conductivity, which is the ability of a material for trans-

fering heat through itself, must be introduced for each material. This can be done simply using

the label KXX to denote conductivity in the material property command:

MP,KXX,NMAT,VAL

Example 11.1. We want to compute the heat flux which goes through a wall whose thickness is

13 mm. One face of the wall is at 300 ◦C and the other face at 125 ◦C. The conductivity of the

wall is 0.2 W/m◦C. We also want to compute the temperature of the wall at 10 mm of the surface

at 300 ◦C. Use ANSYS to model the situation described above and compare the solution obtained

with an analytical solution.

Solution to Example 11.1. An analytical solution can be obtained for this problem:

q

A= −λ

△T

△x= −0.2 ·

300− 125

0.013= −2692.3W/m2

On the other hand at x = 10mm the temperature can be computed:

T (x = 10mm) = T0 −q

A

x− x0λ

= 300 − 2692.3 ·0.01

0.2= 165.38◦C

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext.

FINISH

/CLEAR

/TITLE,Heat conduction through simple wall

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,LINK33 !define element type

R,1,1 !area = 1 m^2 to obtain results per unit area

MP,KXX,1,.2 !conductivity

N,1,0 !define geometry and mesh

N,2,0.01

N,3,.013

E,1,2

E,2,3

EPLOT

FINISH !end PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

D,1,TEMP,300 !apply node temperatures

D,3,TEMP,125

SOLVE

FINISH !end SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PRESOL,HEAT !list heat fluxes

PLNSOL,TEMP !plot temperatures

PRNSOL,TEMP !list temperatures at nodes

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T11/PrePostFE_Ex1101.dat

Example 11.2. Use ANSYSTM to model the following situation. We want to compute the heat

flux through a cylindrical tube whose inner diameter is 10 cm and outer diameter 28 cm. The

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 164: PrePostFE

158 Pre and post-process tools in finite element analysis

inner temperature is 300 ◦C and the outer temperature 125 ◦C. The tube is 3 m long but only the

central section is considered. The conductivity of the material is 0.2 W/m◦C.

Solution to Example 11.2. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH

/CLEAR

/TITLE,Heat conduction through simple wall cylinder

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE55 !define element type

KEYOPT,1,3,1 !element #1: keyoption 3=1 (axisymmetric)

MP,KXX,1,.2 !conductivity

N,1,0.05 !define geometry and mesh

N,2,0.05,0.1

N,7,0.14

N,8,0.14,0.1

FILL,1,7,2

FILL,2,8,2

E,1,3,4,2

EGEN,3,2,1

FINISH !end PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

NSEL,X,0.05

D,ALL,TEMP,300 !apply temperature 300 for x=0.05

NSEL,X,.14

D,ALL,TEMP,125 !apply temperature 300 for x=0.14

NSEL,ALL

SOLVE

FINISH !end SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PRESOL,HEAT !list heat fluxes

PLNSOL,TEMP !plot temperatures

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T11/PrePostFE_Ex1102.dat

Example 11.3. Use ANSYS to model the following situation. We know that the heat flux crossing

a double wall is 1000W/m2. The first layer of the wall has a conductivity of 0.05 W/m◦C and is 10

cm thick. The second layer is 3 cm thick and has a conductivity of 0.2 W/m◦C. The temperature

on the surface of this second layer is 50 ◦C.

Solution to Example 11.3. If we want to introduce the heat flux as a nodal load, we must divide

the total heat flux 1000 W/m2 between the nodes of the elements which form the inner side of

the wall. To do so, we assume that the width of the wall is 1 m and its height is 0.5 m and we

compute the total energy as:

E = 1000W/m2 × 1m× 0.5m = 500W

Now we divide this energy taking into account the fact that the nodes at the tips only affect

one element and the rest of the nodes are connected to two elements. So we introduce at the

tip nodes only the half of the energy which is introduced at the central nodes. If we mesh the

wall with 10 elements in the height direction the tip nodes are loaded with 25 W and the central

nodes 50 W.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 165: PrePostFE

Chapter 11. Heat transfer 159

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command win-

dow enter /input, file, ext.

FINISH

/CLEAR

/TITLE,Double wall

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE55 !define element type

KEYOPT,1,3,3 !element #1: keyoption 3=3 (to specify thickness)

R,1,1 !thickness=1 m

MP,KXX,1,.05 !define thermal properties

MP,KXX,2,.2

RECTANGL,0,0.1,0,0.5 !define geometry and mesh

RECTANGL,0.1,0.13,0,0.5

AGLUE,1,2

ESIZE,0.05

AMESH,1

MAT,2

AMESH,3

EPLOT

FINISH !end PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

NSEL,X,0.13

D,ALL,TEMP,50 !apply temperatures and heat flux

NSEL,S,LOC,X,0

NSEL,R,LOC,Y,0.01,0.49

F,ALL,HEAT,50

NSEL,S,LOC,X,0

NSEL,U,LOC,Y,0.01,0.49

F,ALL,HEAT,25

NSEL,ALL

SOLVE

FINISH !end SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PLNSOL,TF,X,0 !plot the thermal flux in X direction

PLNSOL,TEMP !plot temperatures

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T11/PrePostFE_Ex1103.dat

We can also introduce the heat flux as a line load as follows:

FINISH

/CLEAR

/TITLE,Double wall

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE55 !define element type

KEYOPT,1,3,3 !element #1: keyoption 3=3 (to specify thickness)

R,1,1 !thickness=1 m

MP,KXX,1,.05 !define thermal properties

MP,KXX,2,.2

RECTANGL,0,0.1,0,0.5 !define geometry and mesh

RECTANGL,0.1,0.13,0,0.5

AGLUE,1,2

ESIZE,0.05

AMESH,1

MAT,2

AMESH,3

EPLOT

FINISH !end PRE-PROCESSOR MODULE

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 166: PrePostFE

160 Pre and post-process tools in finite element analysis

/SOLU !start SOLUTION MODULE

NSEL,X,0.13 !apply temperatures and heat flux

D,ALL,TEMP,50

SFL,4,HFLUX,1000 !apply the heat flux as a line load

NSEL,ALL

SOLVE

FINISH !end SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PLNSOL,TF,X,0 !plot the thermal flux in X direction

PLNSOL,TEMP !plot temperatures

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T11/PrePostFE_Ex1103_b.dat

11.2.2 Convection

Another basic mechanism for heat transfer is convection. This mechanism implies the energy

exchange between a fluid and a surface or interface and macroscopical movement of the matter.

Convection can be forced, if the fluid is forced to move by some external mean, or it can be natu-

ral if movement is produced by density changes.

In the field of fluid mechanics there exist complicated equations which describe the motion

and energy exchange of a fluid. Since finite element codes cannot solve this equations, convection

is dealt with an engineering approach, using Newton’s equation for cooling down:

q = h · A(Ts − T∞) (11.3)

where q is the heat flux, A is the surface on which convection is acting, Ts is the temperature

at the surface, T∞ is the temperature of the fluid and h is a coefficient which depends on the

geometry.

Hint 49: ANSYS commands to model convection

Since finite element codes cannot generally work with fluids, convection has to be introduced

as a load. The convection coefficient and the temperature of the fluid are needed, so equation

11.3 can be employed. Convection can be introduced as a surface load, employing the same

commands that are used for structural surface loads:

SFL, LINE, CONV, COEFF1, COEFF2, TEMP1, TEMP2 for convection on lines (2D models)

SFA, AREA, LKEY, CONV, COEFF1, TEMP1 for convection on areas (3D models)

COEFF1 is the film or convection coefficient and TEMP1 the bulk temperature. COEFF2 and

TEMP2 can be introduced to set linear variations of the coefficient and the temperature. Ob-

serve that the value for Lab was set to CONV.

Example 11.4. Use ANSYS to model the following situation. We want to analyze the loss of

energy in an oven. The oven has a rectangular 230 x 228 mm section with an internal circular

cavity with radius 40 mm. The inner temperature is 1300 ◦C and the temperature on the external

surface is 35 ◦C. For this situation the film coefficient is 75 W/m2 ◦C (convection). The material

condutivity is 0.3 W/m◦C.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 167: PrePostFE

Chapter 11. Heat transfer 161

Solution to Example 11.4. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH

/CLEAR

/TITLE,Convection in an oven

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE55 !define element type

MP,KXX,1,.3 !define thermal properties

RECTANG,-0.115,0.115,-0.114,0.114 !define geometry and mesh

PCIRCLE,0,0.04

ASBA,1,2

ESIZE,0.005

AMESH,3

EPLOT

FINISH !end PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

LSEL,S,,,1,4 !convection load on surface

SFL,ALL,CONV,75,,35

LSEL,S,,,5,8

NSLL,S,1

D,ALL,TEMP,1300

NSEL,ALL

LSEL,ALL

SOLVE

FINISH !end SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PLNSOL,TEMP !plot temperatures

PLNSOL,TF,SUM !plot thermal flux

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T11/PrePostFE_Ex1104.dat

11.2.3 Radiation

Heat transfer by means of radiation does not need any medium to propagate. Indeed, the radiant

exchange is maximum when there is no material in the intermediate space. This heat transfer

mechanism takes place between two surfaces, a surface and a gas or fluid, or the combination of

surfaces and fluids. In this case, the energy is sent by means of electromagnetic waves, which

are radiated by all the bodies to the environment. When this energy incides on a body, some part

is reflected and the rest is absorved so the body temperature changes.

• α: spectral absorption factor, which is the part of the energy which incides on the body and

which is absorved. Materials with α = 1 are called black bodies.

• ε: emissivity, which is the proportion of the energy emitted by the body respect to the

energy emitted by a black body at the same temperature. So for a black body, ε = α = 1.

Generally α and ε depend on the temperature but it is generally assumed that they are con-

stants. This assumption is usually called the grey body assumption.

The Steffan-Bolzman laws make possible to compute the radiative heat interchange:

qo = σAεTb [W ] (11.4)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 168: PrePostFE

162 Pre and post-process tools in finite element analysis

qi = σAαT0 [W ] (11.5)

q = σA [εTb − αT0] [W ] (11.6)

where qo is the heat flux emitted by a body, qi is the heat flux received by a body from

the environment by radiation, q = qo − qi is the total flux, σ is the Stefan-Boltzmann constant

σ = 5.67 · 10−8W/m2K4, A is the surface receiving the radiation, Tb is the temperature of the

body and T0 the temperature of the environment.

Radiation is a phenomena which depends on waves going from one body to another body. For

this reason, finite element codes generally have to compute viewfactors, that is, which surfaces

are able to interchange waves. This procedure is similar to raytracing.

Hint 50: ANSYS commands to model thermal radiation

Radiation may be introduced as a surface load, using the label RDSF, which stands for radiation

surface:

SFL,LINE,RDSF,EMIS, ,KEY

where EMIS is the emissivity and KEY is the enclosure surface number, that is, surfaces de-

noted with the same number will interchange heat by means of radiation. The next command

is used to set the free space temperature:

SPCTEMP,KEY,TEMP

where KEY denotes the enclosure surface number and TEMP the temperature value. The

following commands may also be useful:

• STEF: to set the value of the Stefan-Bolzman constant

• RADOPT: to set the radiosity solver options (defaults are generally OK)

• V2DOPT: to set options for the viewfactor computation (defaults are generally OK)

There are other options to include radiation in a thermal analysis such as the use of the

special element MATRIX50. They are specified in the ANSYS help.

Example 11.5. Use ANSYS to model the following situation. A small flat stone radiator with

emissivity 0.9 is used to heat a circular wall of the same material with emissivity 0.7. The con-

ductivity of the material is 0.01 W/m◦C. The radiator is at 150 ◦C and the external face of the wall

at 5 ◦ C. The space temperature is maintained at 80◦C. Analyze the temperature change in the

wall caused by the stone radiator.

Solution to Example 11.5. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 169: PrePostFE

Chapter 11. Heat transfer 163

FINISH

/CLEAR

/TITLE,Radiation between circular annulus

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE55 !define element type

MP,KXX,1,0.01 !define thermal properties

BLC4,-0.4,0.2,0.4,0.05 !define geometry and mesh

CYL4,0.2,0,1,0,.75,180

ESIZE,0.05

AMESH,ALL

FINISH !end PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

TIME,1

DELTIM,.5,.1,1 !time step size, minimum step size, maximum step size

NEQIT,1000 !max number of equilibrium iterations

LSEL,S,LINE,,3 !radiation boundary condition on radiator

SFL,ALL,RDSF,.9,,1

LSEL,S,LINE,,7 !radiation boundary condition on annulus

SFL,ALL,RDSF,.7,,1

LSEL,S,LINE,,3 !temperature on radiator

DL,ALL,,TEMP,150,1

LSEL,S,LINE,,5 !temperature on annulus

DL,ALL,,TEMP,5,1

ALLSEL

TOFFST,273 !temperature offset from absolut zero

STEF,5.67E-8 !Stefan-Boltzmann constant

RADOPT,0.5,0.01,0 !radiosity solver options: relaxation flux, convergence tolerance, iterative solver

SPCTEMP,1,80 !space temperature for enclosure 1

V2DOPT,0,0,0 !2-D view factor options

SOLVE

FINISH !end SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

PLNSOL,TEMP !plot temperature

PLNSOL,TF,SUM,0 !plot the thermal flux (sum of all)

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T11/PrePostFE_Ex1105.dat

11.3 Thermal transient analysis

In many situations involving heat conduction we are not only interested in a steady-state solution

of the mechanical system but we need also information on how temperature changes. In these

cases, a transient solution is needed.

In a transient analysis, dynamic effects are taken into account so further material properties

are needed. In any mechanical transient analysis the material density is needed. Additionally, in

a thermal transient analysis the specific heat is needed.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 170: PrePostFE

164 Pre and post-process tools in finite element analysis

Hint 51: ANSYS commands for thermal transient analysis

Command Usage

TUNIF,VALUE Set initial temperature for the whole model

IC, NODE, TEMP, VALUE Set initial temperatures for a set of nodes. If

NODE=ALL the initial condition is set to all the se-

lected nodes

Recall that D command is used to constrain a temperature, this temperature will remain

fixed for the whole analysis. The command DDELE may be used to remove a previously set

temperature.

Postprocessing of transient analysis was described in 6.2.

Example 11.6. Reconsider the oven of Example 11.4. Assume the whole oven is initially at a

temperature of 20 ◦C when an inner temperature of 800 ◦C is applied. The same convective load

as in Ex. 11.4 is considered. Simulate the temperature evolution for 5000 seconds. Obtain the

temperature evolution for a node located in the middle of the oven wall.

Solution to Example 11.6. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH

/CLEAR

/TITLE,Heat conduction - transient analysis

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,PLANE55 !define element type

MP,KXX,1,.3 !define thermal and material properties

MP,DENS,1,1200

MP,C,1,857 !specific heat

RECTANG,-0.115,0.115,-0.114,0.114 !define geometry and mesh

PCIRCLE,0,0.04

ASBA,1,2

ESIZE,0.005

AMESH,3

FINISH !end PRE-PROCESSOR MODULE

/SOLU !start SOLUTION MODULE

ANTYPE,4 !analysis type: transient

TIME,5000

NROPT,FULL !Newton-Raphson = full

LUMPM,0 !lumped mass approx off

NSUBST,20 !20 substeps

NEQIT,100 !max no. of iterations = 100

AUTOTS,OFF !auto time search off

LNSRCH,ON !line search on

OUTRES,ALL,ALL !output data for all substeps

KBC,1 !load applied linearly

LSEL,S,,,1,4

SFL,ALL,CONV,75,,35 !convection load on surface

LSEL,S,,,5,8

NSLL,S,1

D,ALL,TEMP,800

ALLSEL

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 171: PrePostFE

Chapter 11. Heat transfer 165

TUNIF,20 !initial temperature for the whole model

SOLVE

FINISH !end SOLUTION MODULE

/POST1 !start POST-PROCESSOR MODULE

/CONT,1,20,20,,800 !define a contour range

PLNSOL,TEMP

ANTIME,20,0.5,,0,2,0,5000 !animated through time post-processing

FINISH

/POST26 !start TIME-HISTORY MODULE

NSOL,2,1687,TEMP !temperature solution for node 1687

PLVAR,2 !plot temperature evolution

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T11/PrePostFE_Ex1106.dat

The resulting temperature curve for the node 1687 is shown in Figure 11.1.

Figure 11.1: Transient thermal analysis of an oven. Temperature evolution for node 1687.

11.4 Suggested problems

Problem 11.1. Cooling plates are usually employed to improve cooling down of machines work-

ing at high temperatures. Model the device in Figure 11.2, using axisymmetric elements.Consider

that the inner wall is at 90 ◦C. The outer temperature is 10 ◦C and the film coefficient is 35

W/m2 ◦C. The conductivity of the material is 40 W/m◦C.

Problem 11.2. Analyze the following situation. The room represented in Figure 11.3 is heated

by a metallic radiator which is 0.5 m long and 5 mm thick and whose temperature is 50 ◦ C. The

conductivity of the metal is 40 W/m◦C and the emissivity of the radiator is 0.9. The radiator is

located at 5 mm of the wall along its longer side. The temperature of the room is 20 ◦ C and the

outer temperature is 5 ◦ C. The film coefficient for the outer wall is 50 W/m2 ◦C. The wall is 15

cm thick and it is made of an isolating material with conductivity 0.01 W/m◦C and emissivity 0.7.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 172: PrePostFE

166 Pre and post-process tools in finite element analysis

Figure 11.2: Problem: cooling plates

Assume the space enclosure temperature (SPCTEMP command) is 20 ◦C. Hint: do not consider

convection inside the room.

Obtain the temperature distribution in the room.

Figure 11.3: Problem: radiator in a room

Problem 11.3. We want to simulate the temperature change in a bottle of wine which is located

within an aluminium cylinder filled with ice. Consider that the initial temperature of the wine

is 17 ◦C and the initial temperature of the ice is -3 ◦C. You may consider the initial temperature

of any other element is at room temperature, 21 ◦C. The convection coefficient for the external

face of the aluminium cylinder is 60 W/m2 ◦C. Although this problem contains a fluid and cannot

be correctly modeled by means of standard finite elements, obtain the temperature curve for the

central node, located in the wine, during the first 5 minutes.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 173: PrePostFE

Chapter 11. Heat transfer 167

Hint: use the IC command to apply different values of initial conditions. Use plane elements.

The material data is given in the following table:

Material C (J/kg◦C) KXX (W/m◦C) DENS (kg/m3)

Ice 4186 2.18 917

Glass 840 0.91 2500

Aluminium 215 250 2750

Wine 1100 2.63 1000

Figure 11.4: Problem: cooling wine. Note: consider given lengths refer to outer diameters

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 174: PrePostFE
Page 175: PrePostFE

Chapter 12

Modal Analysis

12.1 Introduction

The correct design of structures or machines is difficult from a dynamical point of view and diffi-

cult to solve. These problems are complex and appear frequently. The difficulties increase with

the modern machines which try to be slighter and cheaper than the ones of the rivalry, and the

common trend to increase the nominal speeds. Dynamic problems appear at situations such as

with variable loads and with energy inputs which can be sources of dynamic instabilities.

The dynamic problems in machines require suitable treatments. If these treatments are not

performed, not desired vibrations will appear and so other effects such as less long life, noises,

and low quality of the product. The proper dynamic design should avoid possible variable loads

in time, and to optimize the chassis or structure capacity of the machine in the dynamic strength.

The method of the modal analysis is used to improve the dynamic behavior of the structures

and machines. It can be used numerically in the initial design step, or can be used experimentally

by testing a specimen prototype with the goal to correct definitively its dynamical behavior.

The modal analysis is a design technique based on the knowledge of the frequencies and the

natural modes (shapes) of vibration of the machine or the structure. Normally, it is enough to

consider the modes associated to a range of frequencies of interest. The frequencies and the nat-

ural modes depend of the inertia, stiffness and damping of the structure or machine. The modal

analysis can be a starting point for another, more detailed, dynamic analysis, such as a transient

dynamic analysis, a harmonic response analysis, or a spectrum analysis.

The knowledge of the natural frequencies is very important from a design point of view, be-

cause a good dynamical behavior of the machine is when the natural frequencies are enough far

from the velocities of work (exciting frequencies and their harmonics). The design method to

follow in order to reach a proper dynamic design could be:

1. To define an initial design, and determine the frequencies and the natural modes of vibra-

tion.

2. In function of these natural frequencies, it could be of interest to increase or reduce some

of them. To increase one natural frequency, it is enough to stiffer the machine in order to

reduce the deformation of the corresponding mode, or to reduce the mass of the machine

parts that have the displacements of higher amplitude.

When the exciting loads can abroad a wide range of frequencies and it is not possible to make

169

Page 176: PrePostFE

170 Pre and post-process tools in finite element analysis

far the natural frequencies, the solution is to introduce damping in such a way the maximum

value of the answer is reduced.

To apply the Finite Element (FE) method is a good way to make the modal analysis, solving the

algebraic problem of eigenvalues. Modal analysis in the ANSYS FE code is a linear analysis. Any

non-linearity, such as plasticity and contact (gaps), are ignored even if they are defined. There

are several mode extraction methods: subspace, Block Lanczos, Power Dynamics, reduced, un-

symmetric, and damped. The damped method allows to include damping in the structure.

12.2 Finite element models: lumped mass

12.2.1 Single lumped mass

At following, it is introduced the concept of natural modes of vibration via the simple harmonic

oscillator represented in Example 12.1. In addition, the basic ideas of natural frequency and

natural mode shape are also explained.

Example 12.1. The simple harmonic oscillator, depicted in Figure 12.1, is a combination of a

linear elastic spring having a free length L, a concentrated mass M , and a stiffness k. The mass

of the spring is considered negligible, and the gravity and the friction are also neglected.

Use a single bar element with the mass lumped at one node, and extract the frequencies and

the natural modes, knowing that: L = 1.0 m, M = 1.5 kg, and k = 2.0 N/m. The initial conditions

are x(0) = 0.5 m and x(0) = 0 m/sec.

Figure 12.1: Simple harmonic oscillator.

Solution to Example 12.1. If by some action, the mass is displaced from its equilibrium position

in Figure 12.1, the force system becomes unbalanced. So, the Newton’s second law should be

applied to the free body diagram of the mass:

Fx = Max = Md2x

dt2= −kx (12.1)

Eq. 12.1 is a second-order, linear, ordinary differential equation with constant coefficients. It

is most-often expressed in the form:

d2x

dt2+

k

Mx =

d2x

dt2+ ω2x = 0 (12.2)

A general solution for Eq. 12.2 could be:

x(t) = C sin(ωt+ φ) (12.3)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 177: PrePostFE

Chapter 12. Modal Analysis 171

In Eq. 12.3, the mass oscillates sinusoidally at circular frequency ω and with constant ampli-

tude C. Phase angle φ is indicative of position at time 0, since x(0) = C sinφ. Also, note that,

since x(t) is measured about the equilibrium position, the oscillation occurs about that position.

The circular frequency is ω =√

k/M rad/sec.

From a FE formulation point of view, using a single two node bar element with the mass con-

centrated to the right side node, Eq. 12.2 can be reduced to the following equilibrium equation:

[

0 0

0 M

] [

u1u2

]

+ k

[

1 −1

−1 1

] [

u1u2

]

=

[

r10

]

(12.4)

Using the constraint condition of displacement at node 1, the first equation of Eq. 12.4 be-

comes −ku2 = r1 (where r1 is the reaction load at node 1), and the second equation yields:

Mu2 + ku2 = 0 (12.5)

Figure 12.2: Simple harmonic oscillator with two node element, with the mass concentrated at

right side node.

A solution of Eq. 12.5 could be 12.3, taking ω =√

k/M =√

2/1.5 = 1.155 rad/sec. The am-

plitude C and the phase angle φ are determined by application of the initial conditions, resulting

C = 0.5 m and φ = π/2 rad. Therefore, the motion solution of node 2 is u2 = 0.5 sin(1.155t + π2),

indicating that the mass oscillates 0.5 m above and below the static equilibrium position contin-

uously in time and completes one cycle every 2π/0.155 sec.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command

window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, Simple harmonic analysis, lumped

!Parameters

L = 1.0 ! length (m)

b = 0.1 ! element width (m)

h = 0.2 ! element height (m)

Em = 100 ! Young modulus (N/m^2)

DensMat = 75 ! density (kg/m^3)

x_0 = 0.5 ! initial conditions displacement

velx_0 = 0.0 ! initial conditions velocity

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,COMBIN14,,,2 ! TWO-DIMENSIONAL LONGITUDINAL SPRING

ET,2,MASS21,,,4 ! TWO-DIMENSIONAL MASS

R,1,(b*h)*Em/L ! Specify the stiffness of the spring

R,2,DensMat*(b*h)*L ! Specify the mass

N,1 ! Define node #1 on coordinates (0,0)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 178: PrePostFE

172 Pre and post-process tools in finite element analysis

N,2,L ! Define node #2 on coordinates (L,0)

E,1,2 ! Define spring element

TYPE,2

REAL,2

E,2

M,2,UX ! Defines master degrees of freedom for reduced generation analyses

OUTPR,ALL,1

OUTRES,ALL,1

FINISH

/SOLU

ANTYPE,MODAL

!PSTRES,ON

MODOPT,REDUC,5,,,PRMOD ! PRINT ALL REDUCED MODE SHAPES

MXPAND

!LUMPM,ON

D,1,ALL ! BC at node #1

D,2,UY ! BC at node #2

IC,2,UX,x_0,velx_0, ! Initial Conditions at node #2: x(0), Vel_x(0)

SOLVE

FINISH

/POST1

PLNSOL,U,X,0,1.0 ! Displacement at X

*GET,FREQ1,MODE,1,FREQ ! Frequency of mode 1

!*GET,FREQ2,MODE,2,FREQ ! Frequency of mode 2

SET,FIRST

PLNSOL,U,X,0,1.0 ! Displacement at X

PLDI,2 ! Display the deformed mesh overlayed with undeformed

ANMODE,10,0.5, ,0 ! Animate the diplacement

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T12/PrePostFE_Ex1201.dat

As can be seen, the frequency obtained is f = 0.183776298 1/sec, which corresponds to a

circular frequency of ω = 1.155 rad/sec.

Hint 52: Frequencies

As can be seen, only one frequency is extracted and one mode shape. This is due to the level

of element discretization used.

12.2.2 Multiple lumped mass

The model inspected before is herein extended to multiple degrees of freedom, to illustrate the

existence of multiple natural frequencies and vibration modes. The example solved next and

depicted in Figure 12.3 corresponds to the case of two springs and two lumped mass harmonic

oscillator.

Example 12.2.

Example 12.3. Use two bar elements with the masses lumped at two nodes as shown in Figure

12.4, and extract the frequencies and the natural modes, knowing that: L1 = L2 = 1.0m,M1 = 1.5

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 179: PrePostFE

Chapter 12. Modal Analysis 173

Figure 12.3: Two mass harmonic oscillator.

Figure 12.4: Two element oscillator, with the mass concentrated at right side nodes.

kg, M2 = 2.5 kg, and k1 = k2 = 2.0 N/m. The initial conditions are x2(0) = 0.5 m, x2(0) = 0 m/sec,

x3(0) = 0.75 m, and x3(0) = 0 m/sec.

Solution to Example 12.2. In a similar way as the previous example, the corresponding FE

discretization of the problem in this case is:

[M ]

u1u2u3

+ [K]

u1u2u3

=

r10

0

(12.6)

Invoking the constraint condition u1 = 0, Eq. 12.6 becomes:

[

M1 0

0 M2

] [

u2u3

]

+

[

k1 + k2 −k2−k2 k2

] [

u2u3

]

=

[

0

0

]

(12.7)

which is a system of two second-order, linear, ordinary differential equations in the two unknown

system displacements u2 and u3. The solutions considered are u2(t) = C2 sin(ωt+ φ) and u3(t) =

C3 sin(ωt+ φ). Replacing these solutions into Eq. 12.7, the governing equation yields to:

− ω2

[

M1 0

0 M2

] [

C2

C3

]

+

[

k1 + k2 −k2−k2 k2

] [

C2

C3

]

=

[

0

0

]

(12.8)

Eq. 12.8 is a system of two, homogeneous algebraic equations which is well known as eigen-

value problem:(

[K]− ω2[M ])

= 0. From linear algebra, a system of homogeneous algebraic

equations has nontrivial solutions if and only if the determinant of the coefficient matrix is zero:

k1 + k2 − ω2M1 −k2−k2 k2 − ω2M2

= 0 (12.9)

which gives: (k1 + k2 − ω2M1)(k2 − ω2M2) − k22= 0. This equation is known as the characteristic

equation or frequency equation of the physical system, and it is treated as quadratic equation in

the unknown ω2. For the example, the solutions are ω21= 0.3413 rad/sec, and ω2

2= 3.1254 rad/sec.

The ANSYSTM command sequence for this example is listed below. You can either type these

commands on the command window, or you can type them on a file, then, on the command

window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/TITLE, two element harmonic analysis, lumped

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 180: PrePostFE

174 Pre and post-process tools in finite element analysis

!Parameters

L = 1 ! length (m)

b = 0.1 ! element width (m)

h = 0.2 ! element height (m)

Em = 100 ! Young modulus (N/m^2)

DensMat1 = 75 ! density (kg/m^3)

DensMat2 = 125 ! density (kg/m^3)

x2_0 = 0.5 ! initial conditions displacement

velx2_0 = 0.0 ! initial conditions velocity

x3_0 = 0.75 ! initial conditions displacement

velx3_0 = 0.0 ! initial conditions velocity

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,COMBIN14,,,2 ! TWO-DIMENSIONAL LONGITUDINAL SPRING

ET,2,MASS21,,,4 ! TWO-DIMENSIONAL MASS

R,1,(b*h)*Em/L ! Specify the stiffness of the spring

R,2,DensMat1*(b*h)*L ! Specify the mass for node #2

R,3,DensMat2*(b*h)*L ! Specify the mass for node #3

N,1 ! Define node #1 on coordinates (0,0)

N,2,L ! Define node #2 on coordinates (L,0)

N,3,2*L ! Define node #3 on coordinates (2*L,0)

E,1,2 ! Define spring element

E,2,3 ! Define spring element

TYPE,2

REAL,2

E,2

M,2,UX ! Defines master degrees of freedom for reduced generation analyses

TYPE,2

REAL,3

E,3

M,3,UX ! Defines master degrees of freedom for reduced generation analyses

OUTPR,ALL,1

OUTRES,ALL,1

FINISH

/SOLU

ANTYPE,MODAL

MODOPT,REDUC,5,,,1 ! PRINT ALL REDUCED MODE SHAPES

MXPAND

D,1,ALL ! BC at node #1

D,2,UY ! BC at node #2

D,3,UY ! BC at node #3

IC,2,UX,x2_0,velx2_0, ! Initial Conditions at node #2: x(0), Vel_x(0)

IC,3,UX,x3_0,velx3_0, ! Initial Conditions at node #3: x(0), Vel_x(0)

SOLVE

FINISH

/POST1

*GET,FREQ1,MODE,1,FREQ ! Frequency of mode 1

*GET,FREQ2,MODE,2,FREQ ! Frequency of mode 2

!*GET,FREQ3,MODE,3,FREQ ! Frequency of mode 3

SET,FIRST

PLNSOL, U,X, 0,1.0 ! Displacement at X

PLDI,2 ! Display the deformed mesh overlayed with undeformed

ANMODE,10,0.5, ,0 ! Animate the diplacement

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 181: PrePostFE

Chapter 12. Modal Analysis 175

SET,NEXT

PLNSOL, U,X, 0,1.0 ! Displacement at X

PLDI,2 ! Display the deformed mesh overlayed with undeformed

ANMODE,10,0.5, ,0 ! Animate the diplacement

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T12/PrePostFE_Ex1202.dat

12.3 Finite element models: continuous distributed mass

The previous examples corresponds to the cases where the masses are lumped in single nodes.

These cases yield to a lumped (diagonal) matrix, since each mass is directly attached to an ele-

ment node. In these simple cases, the mass of the spring elements are neglected in comparison

to the concentrated masses. In the general case of solid structures, the mass is distributed geo-

metrically throughout the structure, and the inertia properties of the structure depend directly

on the mass distribution. The lumped mass method (reduced method) is faster than the subspace

method because it uses reduced (condensed) system matrices to calculate the solution. How-

ever, it is less accurate because the reduced mass matrix is approximate. The adapted Eq. 12.7

for a continuous bar discretized by two bar elements and using the corresponding relationship

between densities ρ2 = (5/3)ρ1 (see Example 12.2.2), is written below:

ρ1AL

6

[

4 1

5/3 2(5/3)

] [

u2u3

]

+

[

k1 + k2 −k2−k2 k2

] [

u2u3

]

=

[

0

0

]

(12.10)

Example 12.4. Solve Eq. 12.10 using two elements of two nodes in ANSYS FE code. Take the

properties defined in Example 12.3.

Solution to Example 12.3. The ANSYSTM command sequence for this example is listed below.

You can either type these commands on the command window, or you can type them on a file,

then, on the command window enter /input, file, ext.

FINISH !close all previous modules

/CLEAR !clear all previous models

/FILNAM, MODAL

/TITLE, simple harmonic analysis with two node beam element

!Parameters

L = 1 ! length (m)

b = 0.1 ! element width (m)

h = 0.2 ! element height (m)

Em = 100 ! Young modulus (N/m^2)

DensMat1 = 75 ! density (kg/m^3)

DensMat2 = 125 ! density (kg/m^3)

x2_0 = 0.5 ! initial conditions displacement

velx2_0 = 0.0 ! initial conditions velocity

x3_0 = 0.75 ! initial conditions displacement

velx3_0 = 0.0 ! initial conditions velocity

/PREP7 !start PRE-PROCESSOR MODULE

ET,1,BEAM188 !element type #1: BEAM188 (6 DoF)

SECTYPE,1,BEAM,RECT !section #1 = rectangular beam

SECOFFSET,CENT !centered section (offset=0)

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 182: PrePostFE

176 Pre and post-process tools in finite element analysis

SECDATA,h,b !section width and height

MP,DENS,1,DensMat1 !density

MP,EX,1,Em !Young modulus

MP,PRXY,1,,0.3

MP,DENS,2,DensMat2 !density

MP,EX,2,Em !Young modulus

MP,PRXY,2,,0.3

N,1 ! Define node #1 on coordinates (0,0)

N,2,L ! Define node #2 on coordinates (L,0)

N,3,2*L ! Define node #3 on coordinates (2*L,0)

MAT,1

E,1,2 !define element by nodes #1, #2

MAT,2

E,2,3 !define element by nodes #1, #2

FINISH !finish PRE-PROCESSOR MODULE

/SOLU

ANTYPE,MODAL ! Choose modal analysis type

MODOPT,SUBSP,5 ! Choose the subspace mode extraction method, extracting 5 modes

MXPAND

!LUMPM,1 ! Lumped mass model

NSEL,S,LOC,X,0 ! Clamp node #1

D,ALL,ALL

NSEL,ALL

NSEL,S,LOC,X,L ! To fix other degree of freedom at node #2

D,ALL, , , , , ,UY,UZ,ROTX,ROTY,ROTZ,

NSEL,S,LOC,X,2*L ! To fix other degree of freedom at node #2

D,ALL, , , , , ,UY,UZ,ROTX,ROTY,ROTZ,

IC,2,UX,x2_0,velx2_0, ! Initial Conditions at node #2: x(0), Vel_x(0)

IC,3,UX,x3_0,velx3_0, ! Initial Conditions at node #3: x(0), Vel_x(0)

SOLVE

FINISH

/POST1

*GET,FREQ1,MODE,1,FREQ ! Frequency of mode 1

*GET,FREQ2,MODE,2,FREQ ! Frequency of mode 2

!*GET,FREQ3,MODE,3,FREQ ! Frequency of mode 3

SET,LIST,2 ! List modes

SET,FIRST

PLDISP,2

ANMODE,10,.5E-1

SET,NEXT

PLDISP,2

ANMODE,10,.5E-1

SET,NEXT

PLDISP,0

ANMODE,10,.5E-1

FINISH

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T12/PrePostFE_Ex1203.dat

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 183: PrePostFE

Chapter 12. Modal Analysis 177

12.4 Suggested problems

Problem 12.1. Consider the Example 12.3, and obtain the natural frequencies using L1 = 0.5 m,

L2 = 1.0 m, M1 = 0.5 kg, M2 = 4.5 kg, and k1 = 1.5 N/m and k2 = 3.0 N/m. Check if the solutions

are as the ones obtained analytically. How many natural frequencies are obtained? Report the

answer and the input file.

Problem 12.2. Using the help of ANSYS, consider the Example 12.4 and apply an excitation load

(Harmonic analysis) with the same first modal circular frequency detected. Report the answer

obtained and the input file.

Problem 12.3. Using the help of ANSYS, consider the previous problem and increase or reduce

the stiffness and/or the mass, in order to modify the natural frequencies and so to reduce exces-

sive amplitude of the structure when the excitation load is applied. Report the answer and the

input file.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 184: PrePostFE
Page 185: PrePostFE

Chapter 13

Introduction to ANSYS Workbench

ANSYS Workbench is a general purpose engineering tool based on the Finite Element that:

• Provides a highly integrated engineering simulation platform

• Supports multi-physics engineering solutions

• Provides bidirectional parametric associativity with most available CAD systems.

The following sections are structured to be a first introduction to:

• The nature and design of the ANSYS Workbench User Interface

• The concepts of ANSYS Workbench Projects and related engineering simulation capabilities

• The integrated nature of ANSYS Workbench technology

• The power of the ANSYS Workbench in using applied parametric modelling and simulation

techniques to provide quality engineering solutions

13.1 Basics

When ANSYS Workbench is started, a window appears and possibly a pop-up suggesting to follow

one of the recommended tutorials. After closing the pop-up, it can be seen that the window of the

just started session is divided into three areas (see Figure 13.1), apart from the usual menus. The

Information window or Project Schematic presents all the information relevant for the current

project and its contents varies with in each step. The Unit System of the project can be changed

with the Units button. By default, the units system is set to Metric (kg,m,s,◦C,A,N,V) but can be

changed to any other predefined or user-defined system. In this brief introduction, though, the

Unit System used will be the default to be consistent in all the simulations. The Analysis toolbox

contains all the different options available to perform different simulation types in ANSYS Work-

bench.

After double-clicking the Static Structural analysis type a new element appears in the Infor-

mation window, as shown in Figure 13.2. This new element is a table or check-list containing all

the necessary steps to complete a Static Structural. Completed steps are marked with a green

tick, while uncompleted steps are marked with a blue question mark. Observe that the two first

steps are already completed: 1 Static Structural has been already chosen as well as 2 Engineer-

ing Data. This second step corresponds to all the default data set by the program, including the

Unit System and Material Data. By default, ANSYS Workbench assumes structural steel as the

179

Page 186: PrePostFE

180 Pre and post-process tools in finite element analysis

Information window

Analysis

toolboxThe units of the analysis

can be set here

Figure 13.1: View of the starting session in ANSYS Workbench.

material for a static structural analysis with a Young’s modulus of 2×1011 Pa, a Poisson’s ratio

of 0.3, a shear modulus of 7.69×1010 Pa, a tensile ultimate strength of 4.6×108 Pa and a tensile

yield strength of 2.5×108 Pa. All this information can be modified by double-clicking 2 Engineer-

ing Data and modifying the desired parameters accordingly. To go back to the Static Structural

check-list it is needed to click on the Return to Project button of the top menu.

To complete the first uncompleted step, Geometry, it is necessary to double-click on this item.

After doing so, a new program tab appears. It is the DesignModeler or DM module, where all

the geometric modelling takes place. In order to better explain how the DesignModeler works, a

simple example will be developed as a sort of tutorial in the following section.

13.2 ANSYS Workbench Design Modeler

To understand how the ANSYS Workbench DesignModeler or DM module works in a static struc-

tural analysis, a rectangular plate with fixed sides made of structural steel and subjected to

normal pressure will be considered and all the necessary steps to model it will be described.

Example 13.1. Model using ANSYS Workbench a rectangular plate with fixed sides subjected to

normal pressure. The plate is 0.5 m wide, 0.5 m long and 5 mm thick and is made of structural

steel.

Solution to Example 13.1. After starting ANSYS Workbench, selecting the Stattic Structural

option and initiating the DesignModeler by double-clicking the Geometry step in the check-list,

click on the newly appeared DM tab. Observe in Figure 13.3 that this tab has a new window

distribution with many new buttons and three windows. The model will be graphically repre-

sented in the main window as we perform different geometric operations. The different available

commands or operations as well as the three outline of the model will be displayed in the left-top

window, while in the left-bottom one the different options and explanations for this commands

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 187: PrePostFE

Chapter 13. Introduction to ANSYS Workbench 181

Default data is set by default

Check-list for a Static

Structural analysis

Figure 13.2: Initital check-list for the Static Structural analysis in ANSYS Workbench.

will appear. As it can be seen in Figure 13.3, the are two types of buttons. One type are used to

perform auxiliary operations such as zoom, selection, orientation, while the other type of buttons

is used to execute generation commands and generate different geometry features. Note that

the first button of the second type is the Generate button, used to generate all the described

geometric operations. Allow some time to get familiar with the different buttons and options.

At the bottom of the Tree outline and sketchinb toolbox window there are two tabs: Sketching

and Modeling. The first one is used to generate the basic geometry of the element to simulate,

mainly in 2D, while the second is used to define from the 2D sketch the final geometry of the part

to simulate, mainly 3D. To start modelling the rectangular plate consider the following steps:

• Select the Sketching tab and from the new options given in the window select Draw and

Rectangle. Draw a rectangle without considering any restrictions in dimensions or location.

To do this, the button Look at Face/Plane/Sketch (the one with a head looking a green

rectangle) might help as a 2D representation of the XY plane will be represented.

• Now select Dimensions to mark the dimensions and location of the plate. Use the option

General for the width and height dimensions selecting one of the horizontal and one of the

vertical edges respectively. Locate the dimensions at some distance of the part.

• To set the location of the plate with respect the origin of coordinates, use Horizontal to set

the distance between one vertical edge and the vertical axis. Repeat with Vertical and one

of the horizontal edges and the horizontal axis. In this way, the general dimensions and

location of the plate will be defined. At this point, do not worry about the correct values of

these dimensions as they will be modified in a parametric way later.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 188: PrePostFE

182 Pre and post-process tools in finite element analysis

Information

and details

Tree outline and

sketching toolbox

Auxiliary buttons

Graphical

representation

Command

buttons

Figure 13.3: Design Modeler for the Static Structural analysis in ANSYS Workbench.

Hint 53: Setting dimensions in ANSYS Workbench Design Modeler

When setting the dimensions of a sketch in the Design Modeler of ANSYS Workbench, it is

very important to not overconstraint the sketch. This means, that care must be taken when

defining the dimensions to mark so there is no possibility of incompatibility between two or

more dimensions. In this case, the program will prompt a warning indicating that the model is

overconstrained. Similarly, care must be taken when using constraints to avoid incompatible

definitions between constraints and constraints and dimensions.

On the other hand, the number of dimensions and constraints must be enough to fully

describe the model or sketch. Otherwise, the program might assume some dimensions or

constraints that are not appropriate.

• Use the option Display in dimensions to set that both name and value of dimensions are

visible.

• Use Edit to select each one of the defined dimensions and modify both the name and value.

Start with the main horizontal dimension by clicking it and name it "width" and give set its

value to "0,5" in theDetails View window. Do similarly for the main vertical dimensions with

"height" and "0,5" and horizontal and vertical locations with "x_offset" and "y_offset" and

"0,25". Note that the dimensions and location of the plate vary at each step.

• Use the Zoom to Fit and the Move option modify the location of the dimensions and have a

good view of the plate.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 189: PrePostFE

Chapter 13. Introduction to ANSYS Workbench 183

Hint 54: Parametric dimensioning in ANSYS Workbench

Defining the correct value of the dimensions in the Design Modeler of ANSYS Workbench

allows for a correct definition of the part and changing these values afterwards. However,

this do not allow for the parametrisation of the values and establishing relations between the

different dimensions.

To establish parametric relations between dimensions it is necessary to define which ones

of the defined dimensions will be treated as parameters and open the Parameter Manager by

clicking the Parameters button.

• Select again the Draw option in the toolbox and locate the defined dimensions in the Details

View. Click on the empty square besides each dimension and a pop-up window will appear

to define the name of the parameter associated to the dimensions. You can use the default

name or change it. Click OK and repeat for all the dimensions defined.

• Start the Parameter Manager by clicking the Parameters button. A list of the defined pa-

rameters and values will appear. Here the value of all the parameter can be set to the

desired numeric value.

• Click on the Parameter/Dimension Assignments tab and a new list will appear where the

parametric relations can be established. Here set XYPlane.y_offset equal to XYPlane.height/2

(or the name of the parameter you have used for height divided by 2) and XYPlane.x_offset

equal to XYPlane.width/2 (or the name of the parameter you have used for width divided by

2).

• Click on the Check tab to actualise the current definitions and values. Now you can try

changing the value of the height or width of the plate in the Design Parameters tab and

each time you click Check, the dimensions of the plate will be changed keeping the plate

always centred with the origin.

• Revert the values of height and width to the initial ones and close the Parameter Manager.

Now the sketch of the plate is ready to build the 3D model of the plate. To do so, continue

with the following steps:

• Click on the Modeling to start with the 3D model.

• Click on the Extrude button to extrude the 2D sketch of the plate to a 3D model.

• In the Details View window observe the different available options. Basically note that the

extrusion will be done based on Sketch1 (the only one available at the moment), that it will

be done adding material (at the moment there are no other extrusions to which subtract

material), it will be done normal to the XY-plane in the normal direction (it can be changed

to be done symmetrically if desired) and by default the depth of the extrusion is 1 m.

• Change the value of the extrusion depth to the thickness of the plate "0,005" m.

• Click on the Generate button to generate the 3D model of the part.

• Use File in the top menu to select Save Project and save the current project as "Pre-

PostFE_Ex1301_Ex1302.wbpj" in the working directory. This can be also done by going

back to the original tab of ANSYS Workbench and using the Save as button. Observe that

now the 3rd step of the project-list is completed.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 190: PrePostFE

184 Pre and post-process tools in finite element analysis

13.3 ANSYS Workbench Mechanical

Once the model of a part has been created, it can be processed for simulation. However, before

submitting the simulation it is necessary to fulfil a series of basic steps, such as defining mesh,

boundary conditions, loads and desired results. All this work is done in the modeller section of

ANSYS Workbench.

As mentioned before, once the 3D model of a part has been completed, in the general window

of the project the check-list shows a green tick in the Geometry step. However, a blue question

mark is shown in the Model and following steps indicating that these steps are uncompleted. In

a Stationary Static project, by clicking theModel step a new window is opened (see Figure 13.4).

This is the Mechanical module, where all the necessary elements to define the simulation.

Outline window

Auxiliary buttons

Graphical

representation

Command

buttons

Details windowMessage/graph window

Figure 13.4: Mechanical module for the Static Structural analysis in ANSYS Workbench.

In the window for the Outline of the Mechanical module a schema of the project is presented

marking all the required steps to complete the simulation and which ones have been already

completed. As different steps are selected and completed the details listed in the Details window

and the command buttons are changed accordingly. Take some moments to get familiar with the

distribution of buttons and windows.

Again, to understand how the ANSYS Workbench Mechanical module works in a static struc-

tural analysis, all the necessary steps to model and simulate the rectangular plate with fixed sides

considered in Example 13.1 will be described.

Example 13.2. Simulate using ANSYS Workbench the rectangular plate with fixed sides de-

scribed in Example 13.1. Consider that the plate is fixed by the edges/sides and has a 2 MPa

uniform normal pressure applied in one of its faces. Obtain the distribution of displacement,

strain and stress resulting in the plate.

Solution to Example 13.2. To simulate the rectangular plate with fixed sides follow the steps

described below.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 191: PrePostFE

Chapter 13. Introduction to ANSYS Workbench 185

• If necessary, start ANSYSWorkbench and load the project saved as "PrePostFE_Ex1301_Ex1302.wbpj".

• Click on the Model step of the project list to start the Mechanical module and click in the

Mechanical tab.

• In the Outline, select Static Structural and observe the command buttons and details

change. In this case, it is not necessary to complete any other feature of the model, in-

cluding mesh, so it is possible to jump to the definition of the simulation conditions.

Hint 55: Mesh in ANSYS Workbench Mechanical

In the Mechanical module of ANSYS Workbench a simulation can be submitted for calculation

without specifying any condition for the mesh. This means that it is not necessary that the user

specifies the element type, size, behaviour of the element, etc. When a simulation is submitted

for calculation without any specification of the mesh, the program uses an automatic mesh

option to mesh the part in the most suitable way.

The automatic meshing of the part might not be convenient for the type of problem sim-

ulated. In this case, the user must specify the mesh conditions to obtain consistent results.

However, for certain applications, ANSYS Workbench is not a suitable tool to simulate the

mechanical behaviour of a part (for instance, in the case of composite materials).

• Click the Loads command button and select the Pressure option. Select one of the square

faces of the plate with the mouse and then Apply in the details window. For the selection of

the face, the Rotate utility button and the Faces utility button for selection might help.

• In the cell for Magnitude enter the value "2e6", corresponding to 2 MPa. Observe that by

default pressure is normal to the face, compression and constant, although it is applied with

a linear ramp. If needed, these conditions can be changed in the details window.

• Click the Supports command button and select the Fixed Support option. Select the 4 sides

of the plate with the mouse and the click Apply in the details window. For the selection of

multiple elements (faces), make use of the CRTL key in the keyboard.

• In the Outline click Solution to change the command buttons and details window.

• To set the viewable results, through the command buttons select Deformations and choose

Total, Strains and choose von-Mises) and select Stresses and choose Equivalent (von-

Mises).

• The simulation is ready for submission. Click the Solve button to start the analysis.

13.4 Basic review of results and post-processing

Once a simulation has been submitted for calculation and the desired results are available, AN-

SYS Workbech offers different options to review these results and obtain conclusions. A simple

introduction on how to review the generated results of a Static Structural analysis is given in the

following example based on the simulation carried out in Ex. 13.2.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 192: PrePostFE

186 Pre and post-process tools in finite element analysis

Example 13.3. Review the results generated in Example 13.2 and obtain the different displace-

ment and stress distributions, analyse the distribution of the von Mises stress in the thickness

direction of the central section of the plate, obtain the strength safety factor of the plate and

prepare a report based on these data.

Solution to Example 13.3. To analyse the results of the simulation carried out in Example 13.2

it is first necessary to open the project save as PrePostFE_Ex1301_Ex1302.wbpj containing all

the simulation data. Once the project has been opened in the ANSYS Workbench window and the

project list is available, by double-clicking on 7 Results the Mechanical module will be started.

The following steps describe how to review the results and generate the results report.

• To plot the distribution of displacement in the plate, click on the Total Deformation item of

the project outline. The same procedure can be followed for the Equivalent Elastic Strain

and Equivalent Stress distributions. Note that although the plate is only loaded with a

2 MPa pressure, its slenderness results in stress values higher than the considered yield

strength, 250 MPa.

• Through the Message/graph window it is possible to see an animation of the currently

selected result as load is applied following the considered load step in the analysis.

• Using the Edges command button it is possible to change the representation options of the

model, including the representation of the mesh used for the simulation. Take some time to

try it.

• Although before submitting the simulation for calculation only the Total Deformation, Equiv-

alent Elastic Strain and Equivalent Stress variables were selected as results, it is possible

to change it and obtain directional distributions of them. Select the Total Deformation item

in the project outline and in the Details window change the Type from Total Deformation

to Directional Deformation and select the Orientation as Z Axis. Click the Solve button to

generate the new results. The same procedure can be followed for the strains and stresses.

• Adjust the orientation of the plate to obtain a good representation of the distribution of the

displacement in the Z direction and use the New Figure or Image button to generate an

image of the view. Repeat for the von Mises stress. These figures will be used later on in

the report.

• Click on the New Section Plane button to generate a section in the plate (be careful to

generate the section in the Equivalent Stress item of the project outline and not in the kept

figure). Define the section so the section plane is centred with the plate. Once the plane

is generated, adjust the direction of the section and view options to obtain a good view of

the distribution of stress inside the material. Keep the image for the report, unselect the

section plane and close the section plane utility.

• Select the Solution item in the outline of the project and click on the Tools command button.

Select the Stress Tool. A new item, Stress Tool, appears in the outline. This new item

contains the Safety Factor option for the calculation of the safety factor of the analysed

part with respect to its yield strength. Click the Solve button to obtain the distribution of

the safety factor in the element. As expected, the safety factor for most of the part is bellow

1 indicating that this plate would fail. Keep an image for the report.

• To generate the report, it is only necessary to click on the Report Preview tab of the main

graphical window.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 193: PrePostFE

Chapter 13. Introduction to ANSYS Workbench 187

• In the ANSYS Workbench main window save the project.

This file can be found at:

ftp://amade.udg.edu/mms/PrePostFE/input_files/T13/PrePostFE_Ex1303.pdf

Example 13.4. After reviewing the results generated in Example 13.3 consider the redefinition

of the dimensions of the square plate subjected to normal pressure so the safety factor is higher

than the unity in all the element. Keep the thickness of the plate as constant and keep the plate

as square.

Solution to Example 13.4. After loading the PrePostFE_Ex1301_Ex1302.wbpj project it is rec-

ommended to save it with a new name (PrePostFE_Ex1304.wbpj ) to avoid losing the original data

and results. The redefinition of the dimensions of the plate can be done by two different ways:

• Starting the Design Modeler and through the Parameter Manager change the value of the

desired parameters. After generating the new geometry clicking the Generate command

button, it is necessary to update the new geometry in the Mechanical module. This can be

done by selecting theModel item in the outline of the project and click on Refresh Geometry

or by using the Refresh all Data option of File in the top menu and the Solve button.

• Click on the Parameters Set cell in the main window of the program to start the parameters

table. Here, the desired parameters can be changed accordingly. By clicking the Update

Project button all the data is updated and a new simulation is run.

After some iteration, it can be found that setting the height and the width of the plate equal

to 12.5 cm, the minimum value of the safety factor is 1.126. So the design of the plate is safe

under the considered conditions. At this point it is wise to safe the project to keep all the data.

Example 13.5. Once the design of the plate is safe against a static loading condition, consider

the durability of the plate against cyclic loading. If necessary, redefine the dimensions of the

plate so it can last for one million cycles or more. As in the previous example, keep the thickness

of the plate as constant and keep the plate as square.

Solution to Example 13.5. The following steps describe the step to follow to asses the design

of the square plate against cyclic loading.

• Load the project generated in Example 13.4.

• Start the Mechanical module and add a fatigue analysis to the solution by clicking Fatigue

Tools in the Tools button.

• Adjust the parameters for the fatigue analysis according to the specifications of the prob-

lem.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 194: PrePostFE

188 Pre and post-process tools in finite element analysis

Hint 56: Cyclic loading defintion in ANSYS Workbench

When setting a cyclic analysis in ANSYS Workbench, the definition of the different parame-

ters affect the final result, so it is important to understand them pay attention to the correct

selection of these. The more important parameters are described bellow.

• The Fatigue Strength Factor (Kf) is a factor that is defined to group all the common

fatigue factors that modify the endurance limit of the material. In this value should be

included the effect of the surface condition (Ka), dimensions (Kb), loading type (Kc),

temperature (Kd) and reliability (Ke).

• The Type option is used to set the sort of cyclic loading, such as zero-based, fully reversed

and history.

• Scale Factor is used to determine the ratio between the load defined during the analysis

and the maximum value of the cyclic load. In the case of a Fully Reversed analysis, this

value also applies to the minimum (negative) value.

• Analysis Type is used to select between a stress life anlaysis, the most common, and a

strain life analysis.

• Mean Stress Theory allows the selection of the theory used to calculate the results or

safety factor. Between the available options Gerber, Goodman and Soderberg theories

are the most common.

• As a supposition set the Fatigue Strength Factor (Kf) as 0.8.

• Instead of a Fully Reversed type of analysis it is more convenient or realistic to assume that

the analysis type is Zero-Based.

• Use the Gerber theory for the calculation of the results.

• Use the Contour Results command button to select the desired results to plot. In this case,

Life and Safety Factor can be chosen.

• Solve.

After solving, it is found that the minimum safety factor is of 0.60783 and the minimum num-

ber of cycles is of 78631 cycles. As it is not enough warranty the infinite life of the plate, it must

be redesigned varying its geometry. Some iteration is needed to determine that a height and

width of 9 cm is enough to satisfy the infinite life condition of the plate.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 195: PrePostFE

Chapter 14

Fluid-Structure Interaction

In the present chapter we will explore the capabilities of ANSYS Workbench for solving engi-

neering problems where fluid and solid parts strongly interact. Examples of these cases are the

deformation of a traffic sign panel due to wind effects, the load applied on an hydraulic structure

due to marine currents, etc. ANSYS Workbench uses different modules for solving both fluid and

solid problems. This methodology requires an external coupling between both modules in order

to obtain a solution for a Fluid-Structure Interaction (FSI) problem. This can be easily done in

the information window within the ANSYS Workbench User Interface, as we will see below.

14.1 ANSYS Workbench FSI

The solution of a FSI problem by means of ANSYS Workbench requires the use of two modules

(fluid and solid) that are coupled. The results generated in the fluid system are connected to the

structural one that use them as suitable loads applied on the solid boundaries. The flow may be

solved by employing either ANSYS CFX or ANSYX FLUENT, both Computational Fluid Dynamics

(CFD) software tools, whereas the solid part is solved by the Static Structural module explained

in the previous chapter. In the Project Schematic or information window that appears after

starting ANSYS Workbench, the coupled FSI system is in the list of Custom Systems within the

Toolbox window. As shown in Figure 14.1 14.1, there are two modules for solving FSI problems:

FSI: Fluid Flow (CFX) -> Static Structural and FSI: Fluid Flow (FLUENT) -> Static Structural

depending on which of the two CFD will be employed. Here, we use ANSYS CFX for solving the

flow.

Figure 14.1: Choosing a FSI module in ANSYS Workbench.

189

Page 196: PrePostFE

190 Pre and post-process tools in finite element analysis

ANSYS CFX is an advanced CFD that contains several steps that have to be carefully com-

pleted for obtaining the flow solution. These are explained in the following section.

14.2 ANSYS Workbench CFX

ANSYS CFX is able to model a wide variety of flows: laminar and turbulent, steady and transient,

newtonian and non-newtonian, multiphase, combustion, etc. This general purpose CFD may be

used either as a standalone program (chosen in the Analysis Systems tab) or as a component of

a FSI problem (chosen in the Custom Systems tab). Here we explain the basics of ANSYS CFX

by solving a simple fluid flow problem whose solution will be coupled with the Static Structural

module in the next section.

14.2.1 Example 14.1

Obtain the forces exerted by the wind on a panel of traffic signs. The wind speed is 160 km/h. The

panel is a rectangular plate with dimensions: 4 m (horizontal), 2 m (vertical) and 5 mm (width).

The uppermost side of the panel is located 6.6 m above the ground.

Soluton to Example 14.1 Start ANSYS Workbench and select the Fluid Flow (CFX) module

that appears in the list of available Analysis Systems in the Toolbox window. This opens a new tab

in the white Information window as shown in Figure 14.1. Similar to the Static Structural module

analyzed in the previous chapter, the Fluid Flow (CFX) tab consists of a check-list of five steps

that have to be completed in order to obtain a successful simulation. The five software modules

that form the structure of ANSYS CFX can be grouped into three packages, as usual in Finite

Element programs. The pre-processor package contains the Geometry, Mesh and Setup modules

that appeared in Figure 14.1. The solver package corresponds to the Solution module in Figure

14.1. Finally, the post-processor package is the Results module that appears at the end of the

check-list in Figure 14.1. Note that both Geometry and Mesh modules are not tools exclusively

used in ANSYS CFX. Indeed, a double-click on the Geometry step in the check-list opens the

same Design Modeler module that was used when studying the Static Structural module in the

previous chapter. On the other hand, the Mesh step opens the Meshing module that is common

to many ANSYS systems such as the Static Structural. The Setup and Solution steps in Figure

14.1 are ANSYS CFX modules. The Results step in Fig. 1 opens the post-processor common to

all the CFDs softwares that can be launched within ANSYS Workbench.

Let us now solve the problem.

1. Geometry. It is assumed that the reader has already worked with the Design Modeler

module introduced in Chapter 13. Therefore, we do not include a tutorial of how to make

the geometry of the traffic sign panel. Note, however, that here the geometry does not

only consist of a solid domain but also of a fluid one. Boundaries of the fluid domain may

coincide with those of the solid surfaces that we are interested in. ANSYS CFX solves

the flow governing equations in the fluid domain only. This fluid domain is not necessarily

bounded by physical walls. In the study of a solid immersed in an external fluid, as it is

the case in this example, the fluid domain consists of a virtual box surrounding the solid

body. When the flow is air, this domain is called a virtual wind tunnel. As we will show next,

suitable boundary conditions must be imposed on the walls of this virtual wind tunnel in

order to have a well-posed problem.

Let us now import the geometry of our problem. In the check-list that appears in the infor-

mation window, right click on the Geometry step. Select Import. This opens a new window

that allows you to browse the geometry file. Select the appropriate path in order to import

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 197: PrePostFE

Chapter 14. Fluid-Structure Interaction 191

the file that you previously downloaded from the course web page. This automatically opens

the Design Modeler window with the imported geometry, as it is shown in Figure 14.2.

Figure 14.2: Case geometry.

Since the actual flow is not confined and the simulation requires to fix values of the vari-

ables in the boundaries of the fluid domain, a concern about the influence of the virtual

wind tunnel on the results may arise. The proximity of the virtual walls of the wind tunnel

to the solid surface may distort the simulated flow streamlines and generate an unrealistic

result. On the other hand, simulations with very large wind tunnels whose virtual walls are

far from the solid surface may not be feasible due to the high number of elements required

to discretize the entire fluid domain. A compromise between a reasonable number of cells

(obtained with a small fluid domain) and accuracy of the results (obtained with a large fluid

domain) has to be achieved. Several authors based on aerodynamics studies confirm that

the shape, size and location of the virtual wind tunnel that surrounds a solid body cannot be

arbitrarily set and propose a parametric definition of the wind tunnel dimensions in terms

of the main lengths of the solid structure as the best practice guidelines for performing

external flow simulations. These parametric dependencies of the geometrical dimensions

of both fluid and solid domains have been introduced in Figure 14.2 and can be accessed

through the Parameter Manager option in the Design Modeler module. Since the geome-

try includes parameters, there appears a new line below the check-list in the information

window appears where the values of the parameters can be modified. Parameters are very

useful when defining a geometry since, very often, a fluid problem requires a sensitivity

analysis of the results as a function of several dimensions. Note that, now, the first step in

the check-list Geometry is completed.

2. Mesh. Similar to the Finite Element Method, the Finite Volume Method employed by AN-

SYS CFX in order to solve the fluid governing equations requires a discretization of the

whole domain into small elements. This discretization process is called meshing and it cor-

responds to the second step in the check-list that appears in the information window. Let

us now mesh our geometry.

• Double-click on the Mesh item. A new program tab appears. It is the Meshing that

is ready to mesh the geometry imported in the previous step, as it is shown in Figure

14.3.

• In the Details of Mehsing window, select the option CFD for the Physics Preference

and be sure that the CFX option is selected as the Solver Preference. This allows the

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 198: PrePostFE

192 Pre and post-process tools in finite element analysis

program to perform an unstructured grid that uses tetrahedral elements.

• Select the sizing option and choose on: Proximity and .. in the Use Advanced Size

Function field. This allows the software to mesh regions with characteristic lengths

that differ several orders of magnitude by means of defining a size function in the

critical regions. This is the case of our problem, since the traffic sign panel is only 5

mm wide whereas one side of the wind tunnel is longer than 10 m.

• Click the Generate Mesh button (the lightning icon on the upper horizontal tab). This

creates the mesh that may look like that shown in Figure 14.3.

• Return to the Project Manager window. Note that, now, the second step in the check-

list Mesh is completed.

Hint 57: Automatic Meshing

Automatic meshing is available in ANSYS Workbench. However, it may fail when meshing fluid

domains since we often deal with complex geometries. In many fluid problems sizing options

have to be chosen and adequately set.

Figure 14.3: Meshing program.

In order to reduce the number of elements required to discretize the system, you may take

advantage of the problem symmetries. In the example here solved, we do only simulate the

behavior of half the panel (see 14.2) since the solution must be symmetrical with reference

to the centerline of the panel.

3. Setup. The Setup is the step where we set the boundary conditions together with the fluid

flow conditions of our problem.

• Double-click on the Setup item. A new program tab appears. It is the CFX-Pre that in-

cludes our meshed geometry obtained in the previous step. Figure 14.4 shows the GUI

of the CFX-Pre program. Similar to the Design Modeler program, there is a window

for the graphical representation. Below, we find a command line where information

and details of the pre-processing process are shown (which is blank in Figure 14.4).

On the left, the Outline tree that controls the pre-processing tools. Three main folders

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 199: PrePostFE

Chapter 14. Fluid-Structure Interaction 193

are found in this tree: Mesh, Simulation and Simulation Control. In this introductory

tutorial we use only the Simulation folder. Above them, there are several icons that

will help us during the step of pre-processing.

Since the geometry contains two bodies, one fluid and one solid, there exists interfaces

between both bodies. At the interface, we find two surfaces (fluid side and solid side).

Care must be taken in order to not select the surface of the solid side. ANSYS CFX

models only the fluid system, so all surfaces must correspond to the fluid body. In order

to assure that all surfaces correspond to boundaries of the fluid domain, it is better to

delete the solid geometry from the Default Domain body found in the Outline tree. This

may be carried out by double-clicking on the Default Domain icon and in the new tab

select only the domain that corresponds to the fluid.

Figure 14.4: Setup program.

• Create the boundary conditions of the fluid domain. These boundaries are:

(a) Fixed velocity at the inlet. This boundary is located in the tunnel wall placed in

front of the sign panel.

(b) Fixed pressure at the outlet. This boundary corresponds to the tunnel wall opposite

to the inlet.

(c) No slip wall at the bottom. This boundary is located at the ground.

(d) Symmetry at the symmetry plane. This boundary is located in the tunnel vertical

wall closed to the solid.

(e) Free slip wall at the two remaining external walls of the wind tunnel.

(f) All boundaries in contact with the solid correspond to non-slip walls.

• Click on the boundary condition icon shown in Figure 14.4. In the new window tab,

write Inlet as the name for the new boundary condition. This opens a new tab close to

the Outline one and named Boundary: Inlet with four options: Basic Settings, Bound-

ary Details, Source and Plot Options. Choose the front wall of the wind tunnel in the

Basic Settings () and Inlet as its the boundary type. In the Boundary Details tab,

choose Normal speed and set its value to 160 km/h. This will set a uniform velocity

profile normal to the inlet boundary at the specified velocity. Select the OK button

that appears at the bottom of the Boundary:Inlet tab. Note that, now, a new boundary

called Inlet appears below the Fluid Domain item in the Outline tree. Note, also, that

arrows in the graphical representation indicate that an inlet condition has been placed

at that surface.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 200: PrePostFE

194 Pre and post-process tools in finite element analysis

• Perform the same procedure as in the previous step in order to define the outlet bound-

ary condition. Now, in the new window tab that appears after clicking the boundary

condition icon, write Outlet. In the new window tab, choose Opening as the boundary

type and select the surface of the wind tunnel opposite to the inlet. In the Boundary

Details tab, write 0 Pa for the Pressure value. This sets the pressure at the outlet equal

to the atmospheric one. Once done, select the OK button that appears at the bottom of

the Boundary:Outlet tab. Similar to the previous case, double arrows in the graphical

representation indicate that an outlet condition has been placed at that surface.

• Repeat the same for the symmetry plane. Now, in the new window tab that appears

after clicking the boundary condition icon, write Symmetry. In the new window tab,

choose Symmetry as the boundary type and select the symmetry surface of the wind

tunnel. Select the OK button that appears at the bottom of the Boundary:Symmetry

tab. Red arrows in the graphical representation indicate that a symmetry condition

has been placed at that surface.

• Now, let us define the boundary condition for the ground. Click the boundary condition

icon and write Ground as the name for the new boundary condition. In the window tab,

choose Wall as the boundary type and select the bottom surface of the wind tunnel.

Since it is a physical wall, select the No slip option in the Boundary Details tab. For

simplicity, do not modify the surface roughness (it is smooth, by default). Select the

OK button that appears at the bottom of the Boundary:Ground tab.

• Finally, for the external boundaries of the wind tunnel, click the boundary condition

icon and write Tunnel walls as the name for the new boundary condition. In the window

tab, chooseWall as the boundary type and select the top and the lateral non-symmetric

surfaces of the wind tunnel. Note that now, you have to select two surfaces. These

surfaces are virtual so you have to select the Free slip condition in the Boundary Details

tab. Select the OK button that appears at the bottom of the Boundary:Tunnel walls tab.

The steps above have defined the external boundaries of the wind tunnel. Internal

boundaries correspond to those that are in contact with the solid sign panel. Let us

now define the boundaries for these surfaces.

Figure 14.5: Setup completed.

• Click the boundary condition icon and write Front Side as the name for the new bound-

ary condition. In the window tab, chooseWall as the boundary type and select the front

side of the traffic sign panel. Since it is a physical wall, select the No slip option in

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 201: PrePostFE

Chapter 14. Fluid-Structure Interaction 195

Boundary Details tab. Select the OK button that appears at the bottom of the Bound-

ary:Front Side tab.

• Repeat the same for defining the boundary condition of the back side of the traffic sign

panel. In this case, write Back Side as the name for this new boundary condition.

• Repeat the same for defining the boundary condition of the lateral sides of the traffic

sign panel. In this case, three surfaces have to be selected and use the name Lateral

Side for identifying them.

Finally, we have to define the fluid properties and flow conditions. This is done by

double-clicking on the Default Domain Modified icon in the Outline tree, as shown in

Figure 14.5. This opens a new tab where we may choose the type of fluid, turbulence

model, etc. By default, the fluid is air at 20ºC and the flow is turbulent. Since these

conditions are fine for our case, it is not necessary to modify them. Advanced modeling

involving heat transfer, multiphase flows, etc, would require a suitable selection of the

variables found in this tab.

Hint 58: Scale option

A graduated stick appears at the bottom of the graphical representation. Make sure that the

scale of the geometry shown coincides with that of the actual problem. In case not, suitably

scale the mesh with a right-click on the Mesh folder in the Outline tree. This will open the

Transformation mesh tool.

We may now return to the Project Manager window, where the third step in the check-list

Setup is now completed.

4. Solution. The CFX-Solver solves all the solution variables for the simulation for the problem

specification generated in CFX-Pre. ANSYS CFX uses a coupled solver that solves all the

governing equations as a single system in order to obtain a converged flow solution. In

order to execute the solver:

• Double-click on the Solution item in the Project Manager window. This opens a new

program tab that is the CFX-Solver Manager. On the Define Run window, click on

the Start Run button. This executes the solver. A new window appears, similar to

the one in Figure 14.6, where the evolution of the residuals as a funcion of time (or

iteration) is shown (with a graph on the left and with numerical values on the right). By

default, the simulation ends when all the residuals are below 10−4 or when the number

of time-steps or iterations reached 100. These figures may be modified with the Solver

Control option found in the Setup step. Since it takes time to reach a fully converged

solution, stop the simulation when it has reached the 10th iteration by clicking on the

stop button.

5. Results. In this final step, we will analyze the results. This is done with the CFD-Post pro-

gram, that is a common post-processor for both ANSYS-CFX and ANSYS-FLUENT solvers.

• Double-click on the Results item that appears in the check-list in the Project Manager

window. The program CFD-Post opens in a new tab. As we show in Figure 14.7, five

tabs may be selected in the graphical window: 3D Viewer (active by default), Table

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 202: PrePostFE

196 Pre and post-process tools in finite element analysis

Figure 14.6: Solver program.

Viewer, Chart Viewer, Comment Viewer and Report Viewer. On the left, we find four

tabs: Outline (active by default), Variables, Expressions and Calculators. Finally, in

the upper part of the window, we find icons that will allow us to perform several tasks.

Figure 14.7: CFD post program.

• Locations. Let us now create some locations in which we want to plot some results.

For doing so, open the Location icon found in the upper horizontal tab and select

Plane. This creates a virtual plane whose orientation and position must be defined in

the Details window that opens in the lower left corner. Note that any new geometry

created is shown in the 3D Viewer window. By doing a similar process, create several

planes at different locations and different orientations. Also create a line along the z

direction. Choose the Two Points method for creating the line with (1,6,12) and (1,6,-

20) as the coordinates of the two points that define the line. All of these new locations

appear in the Outline tree within the User Locations and Plots folder.

• Contour plots. Contour plots are easily created by clicking on the Contour icon that

appears in the upper horizontal bar. After naming the contour plot, the Details window

in the lower left corner allows us to choose which variable we want to represent and on

which domain. Within the Domains option, all the locations created above, besides the

original surfaces of the model, can be chosen. For a better graphical representation of

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 203: PrePostFE

Chapter 14. Fluid-Structure Interaction 197

the results when using contour plots, suitably modify the color bar in order to obtain

information easily readable (e.g., numerical values of labels multiples of 2, 5 or 10). In

contour plots, we suggest to deselect the plane in the User Locations and Plots since

otherwise it is shown as a grey surface merged with the contours.

• Streamlines. Streamlines correspond to lines that are tangent to the velocity field.

In steady flows, a streamline coincides with the trajectory of the particle. To create

a battery of streamlines from a given source (e.g., the inlet boundary), click on the

streamlines icon found in the horizontal bar and specify the source, the number of

streamlines, etc.

• Vector. The velocity field is a vector magnitude and it is represented by means of a set

of arrows that indicate not only the magnitude but also the field direction. A vector

plot can be created after choosing the vector icon located in the upper horizontal bar.

• Charts. The results shown above give a qualitative view of the solution. The power

of performing a CFD simulation, however, is to obtain quantitative results of problems

that in extremely rare occasions have analytical solutions. A chart or, equivalently,

and XY plot is a very interesting tool that may give us key information of the system

behavior. Here, we will plot in a chart the variation of the pressure field along the

line previously defined in the location section. First, select the Chart icon found in the

upper horizontal bar. This opens the Chart Viewer tab in the main graphical window.

In the Details window that appears on the lower left corner, select the z dimensions as

the X coordinate and pressure as the Y coordinate. Scroll the list of domains and select

the line created previously. Select the Apply button and the distribution of pressure as

a function of distance along the line will be displayed (see Figure 14.8).

• Calculator. This is a very interesting tool that gives us quantitative values of forces,

moments, etc., over any given surface or body defined in the problem. Select the

Calculators tab and you will find how useful may be this option. Explore by yourself

the capabilities of the calculator by obtaining the aerodynamic forces exerted by the

fluid on the sign panel. Copy and paste the results in the Table Viewer since, then,

they will appear in the Report Viewer tab.

Figure 14.8: Example of a chart window.

The CFD-post program is able to compare results of two different simulations. You may check

this very interesting capability by loading the results file that you previously downloaded from

the course web page. This file contains the converged solution of the above case.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 204: PrePostFE

198 Pre and post-process tools in finite element analysis

14.3 FSI: CFX and Static Structural

The previous section has dealt with the solution of the fluid flow problem by means of the CFX

software. Here we show how to couple the CFX program with the Static Structural module in

order to solve a Fluid-Structure problem. This one-way interaction (fluid flow solution used as an

external load applied to the boundaries of the solid system) can be easily done within the ANSYS

Workbench by choosing the FSI: Fluid Flow (CFX) -> Static Structural option in the Custom

Systems tab. We explain such a procedure by means of the following example.

14.3.1 Example 14.2

Obtain the deformation of the traffic sign panel studied in Example 14.1.

Soluton to Example 14.2 Within the ANSYS Workbench, double click on the FSI:Fluid

Flow(CFX)->Static Structural module that appears in the list of available Custom Systems in

the Toolbox window. This opens two tabs in the white Information window as shown in Figure

14.9: one is the Fluid Flow (CFX) module and the other is the Static Structural one. Note that two

blue lines connect both modules. One at the Geometry level and the other linking the Solution

step in the CFX module with the Setup step in the Static Structural module.

Figure 14.9: Fluid and solid modules.

Since we have already obtained the fluid flow solution of the traffic sign panel in the previous

example, we import the results file in the Solution step of the Fluid Flow (CFX) module. For doing

so, right-click on the Solution step, choose Import Solution and select the output file that you

have previously downloaded from the course web page. Note that, once done, the check-list of

five steps that appeared in the Fluid Flow (CFX) module has reduced to only two items: Solution

and Results as it shown in Figure 14.10.

Now, we must import the geometry into the Static Structural module. Here, we are interested

in the solid body only, so we must delete or suppress the geometry of the virtual wind tunnel

employed in the solution of the fluid flow problem. For doing so, make a right-click on the

Geometry step and choose edit. This opens the Design Modeler program that you also used in

the previous chapter. From the toolbar, choose File and, then, Import. Select the CFX.agdb file

that you should have previously downloaded from the course web page. This file contains the

geometry of the case solved in the Example 14.1, which consists of a virtual wind tunnel and a

solid traffic sign panel. Since here we focus on the solid body only, make a right-click on the

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 205: PrePostFE

Chapter 14. Fluid-Structure Interaction 199

Figure 14.10: Fluid and solid modules once imported the fluid flow solution.

Solid body corresponding to the virtual wind tunnel geometry within the Tree Outline tab. Then,

select the suppress option. This action allows as to work with the solid body only as it is shown

in Figure 14.11. We may now come back to the ANSYS Workbench window. Note that, now, the

Geometry task is marked as completed in the check-list of the Static Structural module.

Figure 14.11: Solid body of our example.

The next step consists of meshing the solid body. Let us do this by right-clicking in the Model

step in the check-list and choose edit. This opens the Static Structural-Mechanical module. Then,

check the meshing details that you will find by left-clicking on theMesh option in theOutline tree.

All the information related with the meshing step appears in the lowermost left corner within the

Details window. Turn Off the Use Advanced Size Function as it is shown in Figure 14.12. This

option produces a very simple discretization of the solid body with a low number of elements.

This will allow us to complete the Fluid-Structure interaction analysis within a short period of

time. However, and for a rigorous analysis, we should turn it on and re-mesh the solid body with

a more accurate mesh. This should divide the width of the panel into more elements than the

single one shown in Figure 14.12.

The Setup step of the Static Structural model can be done within the same program window.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 206: PrePostFE

200 Pre and post-process tools in finite element analysis

Figure 14.12: Example of a simple mesh.

First, we define the loads applied to the traffic panel. These will correspond to the pressure

results obtained in the CFX program except for the lateral symmetric boundary. Here, and for

simplicity, we use a Fixed Support boundary for that surface. We propose you to employ the

symmetry boundary in the Problem 14.4 found below. Remember that in order to define the

loads, you have to make a right-click on the Static Structural folder that appears in the Outline

tree. Then, you have to select the appropriate condition (Fixed Support in this case) and choose

the corresponding boundary. External loads, such as the pressure distribution on the surfaces of

the solid panel due to the effect of the wind, are imported by right-clicking on the Imported Load

folder that also appears in the Outline tree. Select Imported Pressure and choose the appropriate

surfaces. This option will link the output of the CFX program with the boundary condition chosen.

Therefore, it is extremely important to correctly identify the surfaces of the solid body in order to

be the same as those used in the CFX program. In our case, the Back Side surface that appears

in the list of available CFX input data corresponds to the downstream side of the panel that you

must select on the graphical window. The Front Side surface that appears in the list of available

CFX input data is the upstream side of the panel. Finally, the Lateral Side surface that is listed on

the available CFX data contains the input pressure field that should be applied to the three lateral

small surfaces (width). Remember that you have to press the Control button in order to select

multiple surfaces within the graphical window. At the end of this pre-processing step, the Outline

tree obtained should look like similar to that shown in Figure 14.12. Note that you will have three

different Imported Pressure data corresponding to the: front, back and lateral (three surfaces)

sides of the panel. In addition, a Fixed Support condition will be applied to the remaining vertical

lateral side. Finally, you may solve the Static Structural problem by clicking the Solve option in

the menu toolbar. This opens a new window that shows us the progress of the solution method.

Note that it may take few minutes in order to be completed since it transfers data from the fluid

solution to the solid problem. Once done, we may carry out a standard analysis of the solid body,

as you may have already done in the previous chapter. Figure 14.13 gives an example of one of

the output results.

14.4 Suggested problems

Problem 14.1. For the CFX only case (section 14.2.1), repeat the same analysis with a wind

velocity set to 100 km/h. Compare and discuss the results with those previously found.

Problem 14.2. For the CFX only case (section 14.2.1), repeat the same analysis with the traffic

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 207: PrePostFE

Chapter 14. Fluid-Structure Interaction 201

Figure 14.13: Example of the Results step.

sign panel located at the surface. Compare and discuss the results with those previously found.

Hint: Make use of the Parameter Manager in order to modify the height of the panel and to

recompute the case.

Problem 14.3. For the CFX only case (section 14.2.1), repeat the same analysis with a width

of the traffic sign panel equal to 20 cm instead of 5 mm. Compare and discuss the results with

those previously found. Hint: Make use of the Parameter Manager in order to modify the width

of the panel and to recompute the case.

Problem 14.4. For the FSI problem 14.3.1, repeat the the same analysis but with choosing

a Symmetry condition instead of a Fixed Support one for the lateral side surface of the traffic

panel. Important: this case requires to draw a vertical support of the panel in the Design Modeler

program whose base will be fixed at the surface. Hint: The Symmetry condition in the Static

Structural model is found by right-clicking on the Model folder that appears in the Outline tree.

MMEMÀSTER EN MECÀNICA DE

MATERIALS I ESTRUCTURES

Page 208: PrePostFE

Chapter 14. Fluid-Structure Interaction. 202

Example 14.3. FSI: transient analysis.

Analyze the deformation of a square pipeline where the water velocity increases linearly. To solve this problem the procedure is quite similar as previous problems, the main differences can be summarized in these steps:

STEP 1. Generate the solid domain (pipeline). Go to Create>Primitives>Bend and introduce these data:

To make the pipeline longer, generate an extrusion operation (Create>Extrude) from one of the square ends:

The final geometry must be similar to:

Page 209: PrePostFE

Chapter 14. Fluid-Structure Interaction. 203

STEP 2. Generate the fluid domain (water). To obtain the internal volume, the best procedure is a filling operation (Tools>Fill>By cavity), selecting the 6 internal faces of the solid. Automatically, the fluid volume is generated:

STEP 3. Meshing. Let ANSYS generate the default meshing.

Page 210: PrePostFE

Chapter 14. Fluid-Structure Interaction. 204

STEP 4. CFX-Pre main panel must only show the fluid geometry:

STEP 5. Definition of the transient interval. Total time (1 s) is divided into 10 parts (timesteps).

Page 211: PrePostFE

Chapter 14. Fluid-Structure Interaction. 205

STEP 6. Editing an incremental variable. To modify the inlet water velocity, an expression (sp) is generated, making time (t) adimensional, multiplying it by a constant (2) and finally given velocity dimensions to it (m/s).

STEP 7. Define the boundary conditions. In this case, the three boundaries are: o Inlet: it is an inlet boundary, with a normal speed of “sp”. o Outlet: it is an opening boundary, with a relative pressure of 0 Pa (option

opening pres. And Dirn.) o Wall: the rest of the external surfaces are grouped here, as a no slip wall

(smooth). STEP 8. Set the initial conditions.

STEP 9. Define the transient results file. This file stores the transient data of each time step.

Page 212: PrePostFE

Chapter 14. Fluid-Structure Interaction. 206

STEP 10. Run the CFX solver, obtaining ten files. STEP 11. Go to Static Structural > Model. Define a fixed support in the external

square frame of the inlet end:

STEP 12. Import pressure values. Here is necessary to link the CFD data (boundary Wall) to the six internal faces of the pipeline. In this import process the program link the transient results to the solution in static structural.

STEP 13. Deformation analysis. It is possible check the pipe deformation for each time step.

Page 213: PrePostFE

Chapter 14. Fluid-Structure Interaction. 207