Professional Documents
Culture Documents
!
!
!
!
!
!
!
!
!
!
/prep7
et,1,solid185,,3
nced
et,2,plane182,3
mp,ex,1,exx
mp,prxy,1,0.3
rpoly,6,w_flat
k,7
k,8,,,-l_shank
k,9,,l_handle,-l_shank
l,4,1
l,7,8
l,8,9
lfillt,8,9,bendrad
/view,,1,1,1
/angle,,90,xm
/pnum,line,1
lplot
/pnum,line,0
l,1,4
asbl,1,7,,,keep
cks
cm,botarea,area
lesize,1,,,no_d_hex
lesize,2,,,no_d_hex
lesize,6,,,no_d_hex
type,2
mshape,0,2d
mshkey,1
save
amesh,all
/title,meshed hex wrench end to
eplot
type,1
esize,l_elem
vdrag,2,3,,,,,8,10,9
/type,,hidp
/title,meshed hex wrench
eplot
cmsel,,botarea
!
!
!
!
!
!
!
!
!
strain formulation
four-node quadrilateral (for area mesh)using
simplified enhanced strain formulation
young's modulus for material 1
poisson's ratio for material 1
hexagonal area
keypoint at (0,0,0)
keypoint at shank-handle intersection
keypoint at end of handle
!
!
!
!
!
!
!
!
aclear,all
! delete the 2-d elements
asel,all
finish
! apply loads and obtain the solution
/solu
antype,static
! static analysis (default)
/title,allen wrench -- load step 1
! first fix all nodes around bottom of shank
cmsel,,botarea
! bottom areas of shank
lsel,,ext
! exterior lines of those areas
nsll,,1
! nodes on those lines
d,all,all
! displacement constraints
lsel,all
/pbc,u,,1
! displacement symbols turned on
/title,boundary conditions on end of wrench
nplot
!now apply pressure on handle to represent 100-n
(22.5-lb) finger
!force
asel,,loc,y,bendrad,l_handle
! areas on handle
asel,r,loc,x,w_flat/2,w_flat
! two areas on one side of handle...
nsla,,1
! ...and all corresponding nodes
nsel,r,loc,y,l_handle+tol,l_handle-(3.0*l_elem)-tol ! reselects
! nodes at back end of handle (3
! element lengths)
*get,minyval,node,,mnloc,y
! get minimum y value of selected
! nodes
*get,maxyval,node,,mxloc,y
! get maximum y value of selected
! nodes
ptorq=100/(w_hex*(maxyval-minyval)) ! pressure equivalent to 100 n
sf,all,pres,ptorq ! ptorq pressure on all selected
! nodes
allsel ! restores full set of all entities
/psf,pres,,2 ! pressure symbols turned on
/title,boundary conditions on wrench for load step 1
nplot
lswrite ! writes first load step
/title, allen wrench -- load step 2
! downward pressure on top of handle, representing 20-n (4.5 -lb)
! force
pdown=20/(w_flat*(maxyval-minyval))
asel,,loc,z,-(l_shank+(w_hex/2)) ! area on top flat of handle...
nsla,,1 ! ...and all corresponding nodes
nsel,r,loc,y,l_handle+tol,l_handle-(3.0*l_elem)-tol ! reselects
! nodes at back end of handle (3
! element lengths)
sf,all,pres,pdown ! pdown pressure at all selected
! nodes
allsel
/title,boundary conditions on wrench for load step 2
nplot
lswrite ! writes second load step
save ! save database before solution
lssolve,1,2 ! initiates solution for load step files 1
! and 2
finish
!review the results
/show,jpeg
/post1