-
-
September 20, 2019 at 12:10 pm
Rashi
SubscriberHi all,
Â
I need to do a simulation to see the effect of interference fit between two components. I can very easily do this in workbench, but I'm having some troubles to do this in APDL. For this assignment, I have to do it in APDL.
The following is the results I get, which is not correct and I cannot figure out why does this happen.Â
Â
I have also attached the APDL code I've used.Â
Â
Thank you.
-
September 20, 2019 at 12:11 pm
Rashi
SubscriberFINISHÂ
/CLEARÂ
Â
/PREP7Â
TREF,22Â
Â
!set background to white
/RGB,INDEX,100,100,100, 0Â Â
/RGB,INDEX, 80, 80, 80,13Â Â
/RGB,INDEX, 60, 60, 60,14Â Â
/RGB,INDEX, 0, 0, 0,15Â Â
/REPLOTÂ
Â
!!!!!!!!!!!!!!!!!!!!!
!MATERIAL DEFINITION!
!!!!!!!!!!!!!!!!!!!!!
Â
!MATERIAL ID=1
MP,EX,1,196e3,0Â Â Â Â Â !Elastic modulas (MPa)
MP,PRXY,1,0.272,0Â Â Â Â !Poisson ratioÂ
MP,DENS,1,7.75e-9,   !Density (tonne/mm3)
MP,ALPX,1,1.16e-5,   !CTE
MP,MU,1,0.1Â Â Â Â Â Â Â !Friction coefficient = 0.1
Â
!MATERIAL ID=2
MP,EX,2,151e3Â Â Â Â Â !Elastic modulas (MPa)
MP,PRXY,2,0.27Â Â Â Â Â Â !Poisson ratioÂ
MP,DENS,2,8.4e-9Â Â Â Â Â !density (tonne/mm3)
MP,ALPX,2,9.6e-6Â Â Â Â Â !CTE
MP,MU,2,0.1Â Â Â Â Â Â Â !Friction coefficient = 0.1
Â
!!!!!!!!!!!!!!!!!!!!!!!!!
!MESH ELEMENT DEFINITION!
!!!!!!!!!!!!!!!!!!!!!!!!!
Â
ET,1,63 !SHAFT
ET,2,63 !MAGNET1
ET,3,63 !MAGNET2
ET,4,63 !SLEEVE
ET,5,170Â Â Â Â Â Â Â Â !target
ET,6,174Â Â Â Â Â Â Â Â !contactÂ
KEYOPT,6,9,3Â !initial penetration effectÂ
KEYOPT,6,10,2 !contact stiffness
Â
k, 0 , 0.0 , 3.0 , 0 !1
k, 0 , 20.0 , 3.0 , 0 !2
k, 0 , 20.0 , 7.0 , 0 !3
k, 0 , 0.0 , 7.0 , 0 !4
k, 0 , 0.0 , 20.0, 0 !5
k, 0 , 20.0 , 20.0, 0 !6
k, 0 , 0.0 , 0 , 0 !7
k, 0 ,  20.0 ,  0 , 0 !8
Â
!!!!!!!
!SHAFT!
!!!!!!!
Â
LSTR , 1 , 2 !1
LSTR , 2 , 3 !2
LSTR , 3 , 4 !3
LSTR , 4 , 1 !4
Â
/PNUM, LINE, 1
LPLOT, ALL
Â
!CREATE AREA FROM ALL THE LINES
!ASEL.ALL,
AL,ALL,
Â
ASEL,ALL,,, Â
CM,SHAFT,AREA
Â
!!!!!!!!
!MAGNET!
!!!!!!!!
Â
LSTR , 3 , 4 !3
LSTR , 4 , 5 !5
LSTR , 5 , 6 !6
LSTR , 6 , 3 !7
Â
AL,3,5,6,7
Â
ASEL,S,AREA,,2,,, Â
CM,MAGNET,AREA
Â
Â
!!!!!!!!!!!!
!2D MESHING!
!!!!!!!!!!!!
Â
ASEL,ALL,
ESIZE,1,0, !ELEMENT SIZE SPECIFICATION = 1 mm
Â
CMSEL,S,SHAFT,,
type,1
MAT,1
AMESH,SHAFT
ESLA,S
CM,E_SHAFT,ELEM
Â
CMSEL,S,MAGNET,,
type,2
MAT,2
AMESH,MAGNET
ESLA,S
CM,E_MAGNET,ELEM
Â
!!!!!!!!!!!!
!3D MESHING!
!!!!!!!!!!!!
Â
ET, 7,185Â Â !SHAFT
ET, 8,185 !MAGNET
Â
!meshing one set of magnets
CMSEL,S,MAGNET,AREA
esla,s,1
type,8
EXTOPT,ESIZE,10,0, Â
VROTAT,all, , , , , ,7,8,180,,
CM,MAGNET_E,ELEM
Â
CMSEL,S,SHAFT,AREA
ESLA,S,1
TYPE,7
EXTOPT,ESIZE,10,0, Â
VROTAT,ALL, , , , , ,7,8,180,,
CM,SHAFT_E,ELEM
Â
!removing 2D elements
CMSEL,S,SHAFT,AREA
CMSEL,A,MAGNET,AREA
ACLEAR,ALL,,
Â
ASEL,S,TYPE,,1,4,1
ACLEAR,ALL,,
Â
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!
!SPECIFYING CONTACT!
!!!!!!!!!!!!!!!!!!!!
Â
LOCAL, 12, 1, 0, 0, 0, 0, 0, 90, ,
CSYS,12 !activate cylindrical cordinate system
Â
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!NAME SELECTION FOR CONTACT!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Â
!!!!!!!!!!!!!!
!SHAFT-MAGNET!
!!!!!!!!!!!!!!
Â
CMSEL,S,SHAFT_E,ELEM !select SHAFT elements
nsle,s,ALL,1 !select node of the selected elements
nsel,r,loc,x,7-0.01,7+0.01
cm,S-M,node
Â
CMSEL,S,MAGNET_E,ELEM !select SHAFT elements
nsle,s,ALL,1 !select node of the selected elements
nsel,r,loc,x,7-0.01,7+0.01
cm,M-S,node
Â
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!
!DEFINE CONTACT PROPERTIES!
!!!!!!!!!!!!!!!!!!!!!!!!!!!
Â
MP,MU,1,0.1 !friction coefficient 0.1
MAT,1Â Â
Â
!!!!!!!!!!!!!!
!SHAFT-MAGNET!
!!!!!!!!!!!!!!
Â
R,3,,,1.0,0.1,0,
RMORE,,,1.0E20,0.01,1.0,Â
REAL,3Â
ET,14,170Â Â
ET,15,174Â Â
KEYOPT,15,9,3Â !initial penetration effectÂ
KEYOPT,15,10,2Â !contact stiffness
Â
! Generate the target surface Â
NSEL,S,,,S-M
TYPE,14Â
ESLN,S,0
ESURFÂ Â
alls
! Generate the contact surface Â
NSEL,S,,,M-S
TYPE,15Â
ESLN,S,0
ESURFÂ Â
ALLSELÂ
Â
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!
!DEFINE MATERIALS!
!!!!!!!!!!!!!!!!!!
Â
CMSEL,S,SHAFT_E,ELEM
EMODIF,all,MAT,1,Â
Â
CMSEL,S,MAGNET_E,ELEM
EMODIF,all,MAT,2,Â
Â
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!DEFINE BOUNDARY CONDITIONS!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Â
CSYS,0Â
/solu
alls
nsel,s,loc,z,0
DSYM,SYMM,X,0
Â
nsel,s,loc,x,0
D, ALL, UX, 0,Â
Â
/solu
NLGEOM,ON
Time step 1
TIME,1
NSUBST,5Â Â !define no. substeps
allsel,all,Â
BFA,ALL,TEMP,22Â
SOLVEÂ
Â
-
September 26, 2019 at 4:31 pm
-
September 27, 2019 at 6:25 pm
Rashi
SubscriberSince defining interference fit in contact did not work I specified the interference in the geometry. Then I was able to get satisfactory results. Now I need to do the following,
In WB we can specify a remote point to a set of nodes and specify the DOF to the remote point. How can I do the same in APDL? Is there a way to couple a keypoint and set of nodes?Â
Â
Thanks
-
- The topic ‘Simulating effect of interference fit’ is closed to new replies.
-
4858
-
1587
-
1386
-
1242
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.


