Ansys Contact Analysis Overview
Ansys Contact Analysis Overview
Contact Analysis
Analysis in
in ANSYS
ANSYS
Mechanics Group
ANSYS, Inc.
• Capabilities Overview
• Lagrange versus Penalty Contact
• MPC Applications
• Contact Analysis using ANSYS Workbench
• Rigidflex
– Bodies of vastly different stiffness
– Steel against rubber seals
• Flexflex
– Bodies of comparable stiffness
– Metal contacting metal
• Self contact
– Body folds over itself
– Column buckling
Delete Select Element type to view or list: Run CNCHECK command: List/Select
Contact Pair Contact or Target or both Detail//Post/Adjust/Reset Pairs
• ANSYS SurfacetoSurface
Contact has better geometry
representation
– True curved surface
representation (nonfaceted) in 8Nodes
higher order Hex
10nodes
Tets
20Nodes
Hex
– ThermalStructural
• Stresses induced by thermal
expansions in an assembly
• Frictionally induced Heating
• Metal Forming (Sequential only)
– ThermalElectricStructural
• Electric conduction with Joule Thermal Assembly
heating and structural expansion
– Simulation of resistance welding or
similar processes
• Microelectro Mechanical Systems
(MEMs devices)
ThermalElectric contact
pairs across resistance spot
welding assembly
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
Multiphysics Applications
– StructuralElectric
• Electrostatic analysis
• Piezoelectric Magnetic contact
pair across gap
– Transducers Sensor
Pipe
– Magnetic
• Magnetic Flux analysis
• Static and Transient Magnetic
Bfield contours
Pipeline Sensor
(Electromagnetic)
60 iterations 32 iterations
Using defaults
is our goal !
FKN=1: KEY(10)=2
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
Robustness of Contact
Bending stress
Using defaults
is our goal !
ANSYS80: ANSYS81:
KEYO(10)=1 KEYO(10)=2
KFN = 1 KFN = 1
156 Iterations 83 Iterations
ANSYS80: ANSYS81:
KEYO(10)=1 KEYO(10)=1
KFN = 0.0001 KFN = 0.0001
25 Iterations 15 Iterations
Iteration
Pure Lagrange 675
Augmented Lagrangian
Keyo(10)=2, FKN = 0.5 1028
Frequencies
2 0.0000
Reaction force
3 0.0000
FX = 0.4234448E01 GAP
4 0.33021E02
FY = 0.9639680E03
5 0.39932E02
FZ = 0.1933389E01
6 0.63336E02
MX = 0.9152497E04
7 186.83 81: MPC
MY = 2033.720 No adjustment
8 322.63
MZ = 0.4560663E03
9 505.61
1 0.0000
2 0.0000 FX = 0.5690360E01
3 0.0000 FY = 0.1863415E03
4 0.31505E02 FZ = 0.3476209E01
5 0.44871E02 MX = 0.1647255E03
6 0.64525E02 MY = 2033.722
7 188.31 MZ = 0.4195581E03 81: MPC with
8 324.94 CNCH,ADJU
81: MPC with 81: Penalty with 81: MPC without 81: Penalty without 80: MPC without
Adjustment Adjustment Adjustment Adjustment Adjustment
1 0.0000 1 0.0000 1 0.0000 1 0.0000 1 0.0000
2 0.0000 2 0.82242E03 2 0.0000 2 0.35709E03 2 0.15729E02
3 0.0000 3 0.32439E02 3 0.0000 3 0.37133E02 3 0.37388E02
4 0.31505E02 4 0.21737 4 0.33021E02 4 32.650 4 8.8276
5 0.44871E02 5 0.23349 5 0.39932E02 5 48.024 5 14.405
6 0.64525E02 6 0.74425 6 0.63336E02 6 250.89
wrong 6 47.379
7 188.31 7 188.31 7 186.83 7 336.43 7 190.34
8 324.94 8 324.94 8 322.63 8 394.80 8 324.56
9 513.96 9 513.92 9 505.61 9 599.23 9 507.71
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
Robustness of Contact
Shellsolid constraint
• NLHIST command
Result Trackers
• Available for each
contact pair
• Converged
solution data
• Various types
Penalty means that any violation of the contact condition will be punished by
increasing the total virtual work:
δΨ = ∫ σ T δε dV + ∫ (ε N g N δg N + ε T gT δgT )dA
V Γ
( K + ε G T G )u = F
This is the equation used in FEA for the pure penalty method where ε is the contact
stiffness
Difference in d:
0.281e3/ 0.284e7
=1e4
PENE PENE
Difference in stress:
(35253501)/ 3525
=0.7%
Stress Stress
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
Pure penalty method
Tip:
As long as the penetration does not leads to the change of the contact
region,
The penetration will not influence the contact pressure and Stress
underneath the contact element
Caution:
For pretension problem, use large FKN>1, Because the small penetration
will strongly influence the pretension force.
F F
FContact
FKN=1
FKN=0.01
60 32
iterations iterations
ê The condition of the stiffness matrix crucially depends on the contact stiffness itself.
Tip:
Always use KEYOPT(10)=1,2
For bending problem use FKN=0.01 and KEYOPT(10)=1,2
For bulky problem use FKN=1 and KEYOPT(10)=1,2
Caution:
For pretension problem, use large FKN>1. Because the small penetration
will strongly influence the pretension force.
ê The condition of the stiffness matrix crucially depends on the contact stiffness itself.
Penalty:
FKN=10
Pretension load=2000 N Bolt working load=2012 N
External load 1000 N FKN=1 Lagrange:
Bolt working load=2012 N Bolt working load=2012 N
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
Pure penalty method
é There is no additional DOF.
Tip:
Always use Penalty if:
• Symmetric contact or selfcontact is used.
• Multiple parts share the same contact zone
• 3D large model(> 300.000 DOFs), use PCG solver.
δΨ = ∫ σ T δε dV + ∫ (λ N δg N + λ Tδg T )dA
V Γ
Contact constraint condition:
gN ≥ 0 Ensure no penetration
λN ≤ 0 Ensure compressive contact force/pressure
g N λN = 0 No contact λ N = 0, gap is non zero
Contact g N = 0, contact force is non zero
The equation is linear, in case of linear elastic and NodetoNode contact. Otherwise,
the equation is nonlinear and an iterative method is used to solve the equation. Usually
the NewtonMethod is used.
K G u F
T =
G 0 λ g0
ê Lagrange multipliers are additional DOFs à the FE model is getting large.
ê For symmetric contact or additional CP/CE, and boundary conditions, the equation
system might be overconstrained
ê Sensitive to chattering of the variation of contact status
é No need to define contact stiffness
Tip:
Always use Lagrange multiplier method if:
• The model is 2D.
• 3D nonlinear material problem with < 100.000 Dofs
Tip:
never use Lagrange multiplier method if:
• The model has > 500.000 DOFs.
Contact pair1
Contact Target
Contact
Contact
Contact Target
Target
Target
Contact with midside nodes Lagrange Multiplier
Asymmetric
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
Pure Lagrange multipliers method
• In most cases, Lagrange still works with symmetric contact
selfcontact
selfcontact
selfcontact
selfcontact
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
Pure Lagrange multipliers method
F R1 R2
Lagrange: Penalty:
110 Iterations 218 Iterations
CPU: CPU:
14 Sec. 24 Sec.
Penalty Key(10)=1:
54 Iterations
12 Sec.
Contact penetration
ε
plastic analysis contact analysis
KEYOPT(5)=0
KEYOPT(5)=1
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
Suggestion
One reason for convergence difficulties could be the following:
ω
Status
KEYOPT(5)=0 KEYOPT(5)=1
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
Suggestion
One reason for convergence difficulties could be the following:
• Numerically bad conditioned FE Model
4) ANSYS uses the penalty method as a basis to solve the contact problem and the
convergence behavior largely depends on the penalty stiffness itself. A semidefault value
for the penalty stiffness is used, which usually works fine for a bulky model, but might not be
suitable for a bending dominated problem or a sliding problem. A sign for bad conditioning is
that the convergence curve runs parallel to the the convergence norm. Choosing a smaller
value for FKN always makes the problem easier to converge. If the analysis is not
converging, because of the too much penetration, turn off the Lagrange multiplier.
The result is usually not as bad as you would believe.
FKN=1 FKN=0.01
FKN=1: KEY(10)=1
FKN=.1 FKN=0.0001
FKN=.1 FKN=0.0001
Penalty Key(10)=1:
54 Iterations
12 Sec.
Contact penetration
FKN=1
How can I know, whether the contact stiffness is too large which causes the
convergence difficulties ???
The typical sign for a too large value for the contact stiffness is that after several
iterations the force convergence value keeps almost constant, although the max.
DOF increment is getting smaller and smaller.
FKN=.1
How can I know, whether the contact stiffness is too small which causes the
convergence difficulties ???
The typical sign for a too small value for the contact stiffness is that after several
iterations the force convergence value is converging, but the max. DOF increment is
not getting smaller and the penetration is violated very often.
FKN=.01
NLGEO,ON
NSUB,1,1,1 NLGEO,ON
NSUB,10,100,1
MU=0 MU=0.1
Target
Contact
Contact
Target
Contact
Target
F
Contact
Contact Target
Target Contact
Plastic strain
Stress strain curve with
tangential slope 10000
Contact region
Stress distribution
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
Suggestion
One reason for convergence difficulties could be the following:
• Instable solution
13) Some time, the solution could be instable, if the static analysis type is used, e.g if the
contact region changes abruptly. In this case, you can use more load steps strategy to get
rid of the instable solution.
Status1
Stable instable
Normal stress
Contact mesh
Normal stress
Contact pressure
contact pressure
before local refinement Fixed scaling
contact pressure
After local refinement
Convergence history
1. Introduction
2. MPC connection for SOLIDSOLID, SHELLSHELL
3. MPC connection for SOLIDSHELL
4. MPC connection SOLIDBEAM and SHELLBEAM
5. MPC connection between the FE model and loading point
1
PL3 62.5 * 20 3
δ= = =1
20 3EI 5E5
Displacement
Stress
KEYOPT(9)=0 KEYOPT(9)=1
KEYOPT(9)=0 KEYOPT(9)=1
Hex Tets
Stress concentration
d1=20 rect,0,l/2,0,d1/2
KEYOPT(9)=0 d2=10 rect,l/2,l,d1/2(d1d2)/4,d1/2
g=1 aadd,16,17
l=10 rect,2*l0.5*l,2*l,0,d2/2
/prep7 vrot,16,18,,,,,2,1,180,2
et,1,95 smrt,off
et,2,170 esiz,d2/5 /solu
et,3,174,,2,,2 vsweep,4,18,28 nsel,s,loc,x,0
keyopt,3,9,1 vsweep,6,28,39 d,all,all
keyopt,3,12,5 vsweep,3 nsel,s,loc,z,0
mp,ex,1,2e5 vsweep,5 d,all,uz
mp,prxy,1,.3 asel,s,,,2,6,4 nsel,s,loc,x,l*2
rect,l/2,l,0,d1/2(d1d2)/4 asel,a,,,7,9,2 sfgrad,pres,0,y,0,2/d2
rect,l,2*l0.5*l,0,d2/2 asel,a,,,13,14 sf,all,pres
aadd,all nsla,s,1 alls
adel,all type,3 eqsl,pcg,1e7
lfil,7,10,g esurf solv
asel,s,,,20,22
KEYOPT(9)=1 al,all
asel,a,,,27,31,4
vrot,1,,,,,,2,1,180,2
smrt,1 asel,a,,,33,38,5
vsweep,1,1,8 nsla,s,1
vsweep,2,8,15 type,2
esurf
Displacement Displacement
Stress Stress
Displacement Displacement
Stress
Stress
Consistent shell mesh Dissimilar shell mesh via MPC Dissimilar shell mesh via MPC
Without offset with offset
Consistent shell mesh Dissimilar shell mesh via MPC Dissimilar shell mesh via MPC
Without offset with offset
Contact175
Target170
Part2
Part 3 to 5
Part 6 to 8
Part1
Displacement
Stress
/prep7 lsel,s,,,16
et,1,45 nsll,s,1
et,2,181 type,4
et,3,170 real,3
keyopt,3,5,1 !KEYOPT(5)=1 esurf
et,4,175,,2 !KEYOPT(2)=2 asel,s,,,6
keyopt,4,12,5 !KEYOPT(12)=5 nsla,s,1
mp,ex,1,2e5 type,3
mp,prxy,1,.3 esurf
r,1,1 shsd,3 !Virtual shell
block,0,10,0,10,0,10 nsel,s,loc,x,0
wpof,0,0,5 d,all,all
rect,10,20,0,10 nsel,s,loc,x,20
esiz,1.5 f,all,fz,1000
vmes,1 alls
type,2 /SOL
ames,7 solv
Solids solution
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
2. MPC connection for SOLIDSHELL
Shell
elements New Virtual
(thickness t ) KEYOPT(5)=2
Contact shell
elements elements
Solid
elements (preexisting)
MPC equations
Target elements (translation + Rotation
TARG170 DOF)
FTOLN
(on top of solid) shell edge virtual shell
Original FEA mode Influence
2nd Approach: shellshell constraint distance
/prep7 lsel,s,,,16
et,1,45 nsll,s,1
et,2,181 type,4
et,3,170 real,3
keyopt,3,5,2 !KEYOPT(5)=2 esurf
et,4,175,,2 !KEYOPT(2)=2 asel,s,,,6
keyopt,4,12,5 !KEYOPT(12)=5 nsla,s,1
mp,ex,1,2e5 type,3
mp,prxy,1,.3 esurf
r,1,1 shsd,3 !Virtual shell
block,0,10,0,10,0,10 nsel,s,loc,x,0
wpof,0,0,5 d,all,all
rect,10,20,0,10 nsel,s,loc,x,20
esiz,1.5 f,all,fz,1000
vmes,1 alls
type,2 /SOL
ames,7 solv
Solids solution
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
2. MPC connection for SOLIDSHELL
Shell
elements
(thickness t )
KEYOPT(5)=3
Contact elements
Solid (preexisting)
elements
MPC equations
shell edge – solid surface
Target elements FTOLN
TARG170 Influence
(on top of solid) distance
Original FEA mode 3rd Approach: shellsolid constraint
/prep7 lsel,s,,,16
et,1,45 nsll,s,1
et,2,181 type,4
et,3,170 real,3
keyopt,3,5,3 !KEYOPT(5)=3 esurf
et,4,175,,2 !KEYOPT(2)=2 asel,s,,,6
keyopt,4,12,5 !KEYOPT(12)=5 nsla,s,1
mp,ex,1,2e5 type,3
mp,prxy,1,.3 esurf
r,1,1 nsel,s,loc,x,0
block,0,10,0,10,0,10 d,all,all
wpof,0,0,5 nsel,s,loc,x,20
rect,10,20,0,10 f,all,fz,1000
esiz,1.5 alls
vmes,1 /SOL
type,2 solv
ames,7
Solids solution
New New
Virtual New Contact Virtual
elements
shell shell
elements CONTA175 elements
SHELL18
1
MPC equations
MPC equations
MPC equations
(translation DOF only)
(translation + Rotation
Shell shell edge – solid FTOLN
Virtual shell solid DOF) FTOLN
thickness surface
surface Influence Influence
shell edge virtual
shell distance distance
1) if there is an intersection between the contact normal and the target surface,
you can use PSOLVE to physically extend the contact surface
Example
Gap
/solu
target surface target surface psolve,elform
PSOLVE
fini
/solu
anty,modal
Gap before PSOLVE After PSOLVE modopt,lanb,7
mxpand,7
solv
Modal Analysis
Consistent mesh MPC Distance=0.1
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
2. MPC connection for ShellSHELL
2) if there is no intersection between the contact normal and the target surface,
constraint equations are still built as long as contact node and target
segments are inside the pinball region, if you use KEYOPT(5)=4
Modal Analysis
2nd Approach
Shells
Solids
Procedure:
1) Treat the solid surface and/or shell edge as contact surface, treat the beam
node as target pilot node. No additional target is needed.
2) Set the contact element keyoptions:
KEYOPT(2)=2 this will activate the MPC method
KEYOPT(12)=5 or 6 Set the bonded contact key
KEYOPT(4)=1 Forcedistributed surface
KEYOPT(4)=2 Rigid constraint surface
3) Run the analysis
KEYOPT(4)=2
Rigid constraint surface
KEYOPT(4)=1
Forcedistributed surface
KEYOPT(4)=2
Rigid constraint surface
KEYOPT(4)=1
Forcedistributed surface
Procedure:
1) Treat the FE surface and/or edge as contact surface, treat the loading node
as target pilot node. No additional target is needed.
2) Set the contact element keyoptions:
KEYOPT(2)=2 this will activate the MPC method
KEYOPT(12)=5 or 6 Set the bonded contact key
KEYOPT(4)=1 Forcedistributed surface
KEYOPT(4)=2 Rigid constraint surface
3) Run the analysis
KEYOPT(4)=1
Forcedistributed surface
KEYOPT(4)=2
Rigid constraint surface
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
4. MPC connection between the FE model and loading point
KEYOPT(4)=2 KEYOPT(4)=1
/prep7 n,1000,0,0 Rigid constraint surface
et,1,42 lsel,s,,,5,8
Forcedistributed surface
et,2,169 nsll,s,1
/solu
et,3,171,,2,,1 type,3
nsel,s,loc,x,10
keyopt,3,12,5 real,3
d,all,all
mp,ex,1,2e5 esurf
alls
mp,prxy,1,.3 alls
f,1000,mz,.7e6
rect,10,10,5,5 type,2
nlgeo,on
pcir,3 tshape,pilot
solv
asba,1,2 e,1000
smrt,4
ames,all
Boundary conditions
Remote force via MPC
Connection options
0,5
0,485 0,487 0,487 0,473
0,4
Surface extension
0,2
+Joint
0,1
0
Connection methods
© 2004 ANSYS, Inc. ANSYS, Inc. Proprietary
ANSYS Contact
Workbench
Workbench Features
Features
Tim Pawlak
Corporate Fellow
ANSYS, Inc.
Automatic generation
based on pair options
Disable transparency
Rename based on
geometry names
Tolerance type:
a) slider
b) numeric value
Automates construction of
connections between part,
manual effort is sometimes
Joins solid and surface bodies necessary
together by defining contact Setting the appropriate priority
relationship between improves the outcome of the
corresponding faces and automatic generation, review
edges of generated objects is good
practice
• Contact side is
red
• Target side is
blue
Selected contact
objects in tree will be
shown in graphics
window displayed
with corresponding
parts as more opaque
than other parts
Transparency can be
disabled, level of
opaqueness can be
adjusted in options
Highlight of geometry
entities by selection details
Symmetry behavior on
individual basis, including
auto asymmetry
Interface treatment
Contact stiffness
specification and update
options (very important for
good solution convergence)
Disable
transparency
Flip contact and
target
Rename based on
geometry
Available by inserting
a contact tool in the
contact folder.
Initial information
result object displays a
table of information
about the initial state
of contact throughout
the model
Lists useful
information such as:
1) Status
2) Number elements
contacting
3) Penetration and/or
gap (gap is negative)
4) Size of gaps closed
Valuable information
when setting up
contact simulations
Contact objects
can be drug and
dropped
• Convergence History
• Result Trackers
• Newton Raphson Residuals
Useful for
understanding the
solution progress
Details
• Collected by a
parent object
• Automatic
transparency
• Includes:
– Frictional stress
– Pressure
– Sliding distance
– Penetration
– Gap
– Status
– Reactions
ANSYS macro
2D surface
bodies
Options for
plane stress,
plain strain,
axisymmetry
• Purpose
– Helps ensure preferred
and proven options are
used
– Highlights recommends
features
• Easy to use
• Wide variety of features
• Useful results
• Sophisticated simulation
• Variety of algorithms
• Higher order contact
• Selfcontact
• MPC assemblies
• Multiphysics applications
• Large contact/assembly models (100M)
• Ease of use
• Robustness
• Diagnostic tools