Download presentation
Presentation is loading. Please wait.
Published byKevin Sparks Modified over 8 years ago
1
Input Files for Workshop Exercises Workshop Supplement Appendix A
2
Workshop Supplement January 30, 2001 Inventory #001444 A-2 Appendix A Input Files for Workshop Exercises Workshop 1 ! ANSYS 5.7 Intro Part 2 - Workshop 1 ! Axisymmetric Wheel Example (using Array Parameters) finish /clear /filn,axiwheel resume,axiwheel,db1 WTIME=3 /PREP7 EPLOT /WAIT,WTIME ! Loading LSEL,S,LOC,Y,0 DL,ALL,,UY ! Fix UY at bottom LSEL,ALL RPM=7500 PI=3.1416 W=2*PI*RPM/60 ! W in rad/sec OMEGA,,W ! Rotational velocity ! Solve SAVE /SOLU SOLVE ! Results /POST1 /VIEW,1,1,2,3 PLNSOL,S,EQV /WAIT,WTIME /EXPAND,27,AXIS,,,10 /GLINE,1,-1 /REPLOT /WAIT,WTIME ETABLE,ESEQV,S,EQV /EXPAND /VIEW,1,0,0,1 /GLINE,1,-1 /AUTO,1 PLETAB,ESEQV,AVG /WAIT,WTIME PRETAB *GET,NELEM,ELEM,,COUNT ! nelem = no. of elements *DIM,SARRAY,,NELEM ! Array named sarray, dimension nelem x 1 *VGET,SARRAY(1),ELEM,1,ETAB,ESEQV ! Fill sarray with element equiv. stresses *STATUS,SARRAY *VSCFUN,SDEV,STDV,SARRAY(1) ! sdev = standard deviation *STATUS,SDEV SAVE
3
Workshop Supplement January 30, 2001 Inventory #001444 A-3 Appendix A Input Files for Workshop Exercises Workshop 2a ! ANSYS 5.7 Intro Part 2 - Workshop 2a finish /clear,start resume,cp-blade,db1 /filn,cp-blade,1 ! /VIEW,1,0.3758,0.747,0.5485 (set in cp-blade.db1 database) WTIME = 3 /TITLE, Nodal coupling (CPCYC) for rotational symmetry /PREP7 ET,1,SOLID95 ET,2,MESH200 KEYOPT,2,1,5 ! Material Properties (already defined in cp-blade.db1 database) ! MP,EX,1,14794080 ! MP,NUXY,1,0.3 ! MP,DENS,1,0.00045388 ! MP,ALPX,1,5.2E-6 ! ESIZE,0.05 (set in cp-blade.db1 database) ! VSWEEP Volume 2 (blade) VSWEEP,2 SMRT,4 AMESH,1 ! Copy mesh on area 1 to area 11 in coord. system CSYS,1 MSHCOPY,AREA,1,11,1,0,30,0,0.0001 ! Mesh volume VMESH,1 ! Convert SOLID95 tets into SOLID92 tets TCHG,95,92,3 ! Couple dof on the low boundary (nodes on area 1) to the ! corresponding dof on the high boundary (nodes on area 11) ! in CSYS,1 CPCYC,ALL,0.0001,1,0,30 ! Constrain UX and UY dofs on nodes at x=0 (r=0) NSEL,S,LOC,X,0 D,ALL,UX,,,,,UY ! Constrain UZ dof on node 3 at z=0 NSEL,R,LOC,Z,0 D,ALL,UZ NSEL,ALL ! Rotate all nodal coord. systems to align with global cyl. coord. CSYS,1 NROT,ALL ! Turn off symbols for CPs /PBC,CP,,0 CHECK,ESEL,WARN EPLOT /WAIT,WTIME ESEL,ALL EPLOT SAVE FINISH
4
Workshop Supplement January 30, 2001 Inventory #001444 A-4 Appendix A Input Files for Workshop Exercises Workshop 2a (cont’d) /SOLU ! OMEGA,0,0,1000 (set in cp-blade.db1 database) SOLVE SAVE FINISH /POST1 PLNSOL,S,EQV ! Plot SEQV for blade VSEL,S,,,2 ALLSEL,BELOW,VOLU /REPLOT ! Plot SEQV for base VSEL,S,,,1 ALLSEL,BELOW,VOLU /REPLOT ALLSEL,ALL /EXPAND,12,POLAR,FULL,,30 /VIEW,1,1,1,1 /AUTO,1 /REPLOT
5
Workshop Supplement January 30, 2001 Inventory #001444 A-5 Appendix A Input Files for Workshop Exercises Workshop 2b ! ANSYS 5.7 Intro Part 2 - Workshop 2b ! Turbine Blade (Constraint Equations) finish /clear,start resume,ce-blade,db1 WTIME=3 /filn,ce-blade,1 ! /VIEW,1,0.8557,-0.4372,0.2768 (set in ce-blade.db1 database) /TITLE, Blade and Base tied together with CEs (CEINTF) EPLOT /WAIT,WTIME ESEL,S,MAT,,2 EPLOT /WAIT,WTIME NSEL,S,LOC,Z,0 NPLOT /WAIT,WTIME NSLE,U NPLOT /WAIT,WTIME /PREP7 ! ET,1,SOLID45 (already defined in ce-blade.db1 database) ! Material Properties (already defined in ce-blade.db1 database) ! MP,EX,1,14794080 ! MP,NUXY,1,0.3 ! MP,DENS,1,0.00045388 ! MP,ALPX,1,5.2E-6 ! ! MP,EX,2,32053840 ! MP,NUXY,2,0.3 ! MP,DENS,2,0.00083289 ! MP,ALPX,2,7.2E-6 CEINTF,0.25 EPLOT /WAIT,WTIME ALLSEL,ALL /PNUM,AREA,1 /NUMBER,0 APLOT DA,25,ALL EPLOT /WAIT,WTIME SAVE FINISH /SOLU SOLVE FINISH /POST1 PLNSOL,S,EQV
6
Workshop Supplement January 30, 2001 Inventory #001444 A-6 Appendix A Input Files for Workshop Exercises Workshop 2c ! ANSYS 5.7 Intro Part 2 - Workshop 2c ! Swaybar (Rigid Regions) finish /clear,start /INP,swaybar1,inp N,8000,33 TYPE,2 EN,6100,8000 F,8000,FY,-500 ! unit: kgf NSEL,S,LOC,X,10 NSEL,A,,,8000 ! Generate Rigid Region CERIG,8000,ALL,UX,UY NSEL,ALL /PBC,F,,1 /PBC,CE,,1 EPLOT FINISH /SOLU EQSLV,PCG SAVE SOLVE FINISH /POST1 ESEL,U,,,6100 PLNSOL,S,EQV PLNSOL,U,SUM swaybar1.inp ! ANSYS 5.7 Intro Part 2 - Workshop 2c (insert file: swaybar1.inp) /filn,swaybar-cerig resume,swaybar,db1 /TITLE, Swaybar with Rigid Region (units: cm) - SOLID45s, Force= 500 kgf WTIME=3 /PREP7 VPLOT /UIS,MSGPOP,3 ! Divide Volumes WPSTYLE,,,,,,,,1 WPRO,,,90.0 WPOFFS,,,1.35 VSBW,1 WPAVE,2.43 VSBW,4 WPAVE,10.0 VSBW,6 VDEL,7,,,1 WPSTYLE,,,,,,,,0 /UIS,MSGPOP,2 ET,1,SOLID45 ET,2,MASS21 R,1,1,1,1 MP,EX,1,2.11e6 ! units: kgf/cm^2 (1 kgf/cm^2 = 98066.5 Pa)
7
Workshop Supplement January 30, 2001 Inventory #001444 A-7 Appendix A Input Files for Workshop Exercises swaybar1.inp (cont’d) ! Define line divisions LESIZE,17,,,8,,,,,0 LESIZE,22,,,8,,,,,0 LESIZE,45,,,8,,,,,0 LESIZE,93,,,8,,,,,0 LESIZE,101,,,8,,,,,0 LESIZE,109,,,8,,,,,0 LESIZE,112,,,8,,,,,0 LESIZE,121,,,8,,,,,0 LESIZE,35,,,8,,,,,0 LESIZE,97,,,8,,,,,0 LESIZE,105,,,8,,,,,0 LESIZE,117,,,8,,,,,0 ! Mesh Volume 3 AESIZE,41,0.2 AESIZE,42,0.2 VSWEEP,3 ! Mesh Volume 2 AESIZE,36,0.2 AESIZE,37,0.2 VSWEEP,2 ! Mesh Volume 1 AESIZE,16,0.15 AESIZE,21,0.15 VSWEEP,1 ! Mesh Volume 5 AESIZE,51,0.15 AESIZE,52,0.15 VSWEEP,5 ! Mesh Volume 4 AESIZE,46,0.2 AESIZE,47,0.2 VSWEEP,4 ! Constrain all DOFs on areas 17 and 19 DA,17,ALL DA,19,ALL DTRAN /PBC,U,,1 EPLOT
8
Workshop Supplement January 30, 2001 Inventory #001444 A-8 Appendix A Input Files for Workshop Exercises swaybar2.inp ! ANSYS 5.7 Intro Part 2 - Workshop 2c Step 12. ! Swaybar Full Model Analysis finish /clear,start /filn,swaybar resume,swaybar,db1 WTIME=3 /TITLE, Swaybar (units: cm) - SOLID45s, Force= 500 kgf /PREP7 VPLOT /UIS,MSGPOP,3 WPSTYLE,,,,,,,,1 WPRO,,,90.0 WPOFFS,,,1.35 VSBW,1 WPAVE,2.43 VSBW,4 WPAVE,10.0 VSBW,6 WPAVE,27.0 VSBW,7 WPAVE,28.25 VSBW,8 WPSTYLE,,,,,,,,0 /UIS,MSGPOP,2 ET,1,SOLID45 MP,EX,1,2.11e6 ! units: kgf/cm^2 (1 kgf/cm^2 = 98066.5 Pa) !* LESIZE,17,,,8,,,,,0 LESIZE,22,,,8,,,,,0 LESIZE,45,,,8,,,,,0 LESIZE,93,,,8,,,,,0 LESIZE,101,,,8,,,,,0 LESIZE,109,,,8,,,,,0 LESIZE,112,,,8,,,,,0 LESIZE,121,,,8,,,,,0 LESIZE,129,,,8,,,,,0 LESIZE,136,,,8,,,,,0 LESIZE,35,,,8,,,,,0 LESIZE,97,,,8,,,,,0 LESIZE,105,,,8,,,,,0 LESIZE,117,,,8,,,,,0 ! Mesh Volume 3 AESIZE,41,0.2 AESIZE,42,0.2 VSWEEP,3 ! Mesh Volume 2 AESIZE,36,0.2 AESIZE,37,0.2 VSWEEP,2 ! Mesh Volume 1 AESIZE,16,0.15 AESIZE,21,0.15 VSWEEP,1 ! Mesh Volume 5 AESIZE,51,0.15 AESIZE,52,0.15 VSWEEP,5 ! Mesh Volume 4 AESIZE,46,0.2 AESIZE,47,0.2 VSWEEP,4
9
Workshop Supplement January 30, 2001 Inventory #001444 A-9 Appendix A Input Files for Workshop Exercises swaybar2.inp (cont’d) ! Mesh Volume 6 AESIZE,57,0.4 AESIZE,58,0.4 VSWEEP,6 ! Mesh Volume 7 AESIZE,69,0.15 AESIZE,70,0.15 VSWEEP,7 ! Mesh Volume 9 AESIZE,73,0.2 AESIZE,74,0.2 VSWEEP,9 ! Mesh Volume 10 AESIZE,77,0.2 AESIZE,78,0.2 VSWEEP,10 DA,17,ALL DA,19,ALL ! Distribute total force load (500 kgf) over four keypoints FK,41,FY,-125 FK,51,FY,-125 FK,56,FY,-125 FK,59,FY,-125 FINISH /SOLU EQSLV,PCG SAVE SOLVE FINISH !/POST1 !VSEL,S,,,1,5,1 !ESLV !NSLE !PLNSOL,S,EQV !PLNSOL,U,SUM
10
Workshop Supplement January 30, 2001 Inventory #001444 A-10 Appendix A Input Files for Workshop Exercises Workshop 3 ! ANSYS 5.7 Intro Part 2 - Workshop 3 ! Bolt Torque (Surface Effect Elements) finish /clear,start /filn,bolt-torque resume,bolt-torque,db1 WTIME=3 /PREP7 EPLOT /WAIT,WTIME ASEL,S,,,7,8 NSLA,,1 NPLOT /WAIT,WTIME TYPE,2 ESURF ESEL,S,TYPE,,2 /PSYMB,ESYS,1 EPLOT /WAIT,WTIME LOCAL,11,1,0,0,0 EMODIF,ALL,ESYS,11 EPLOT /WAIT,WTIME CM,E_SURF,ELEM /PSYMB,ESYS,0 EPLOT /WAIT,WTIME /PSF,PRES,TANX,2 SFE,E_SURF,2,PRES,,10000 EPLOT /WAIT,WTIME NSEL,ALL ESEL,ALL ASEL,ALL CSYS,0 /AUTO,1 EPLOT DA,1,ALL FINISH /SOLU EQSLV,PCG SAVE SOLVE FINISH /POST1 RSYS,1 /EDGE,1,1,45 /GLINE,1,0 PLNSOL,U,Y
11
Workshop Supplement January 30, 2001 Inventory #001444 A-11 Appendix A Input Files for Workshop Exercises bolt-torque.inp ! ANSYS 5.7 Intro Part 2 - Workshop 3 ! This file generates the bolt-torque.db1 database ! file for Workshop 3 ARG1=0! Use ARG1=1 to complete the exercise finish /clear,start /filn,bolt-torque WTIME=3 /UIS,MSGPOP,3 /TITLE, Bolt Torque Load /PREP7 /VIEW,1,1,0,0 /ANGLE,1,-90,XM,1 /ANGLE,1,30,YM,1 CYL4,,,.25,,,,2 WPAVE,0,0,2 CYL4,,,3/8,,,,0.25 WPSTYLE,,,,,,,,0 VPLOT VGLUE,ALL FLST,2,4,4,ORDE,2 FITEM,2,5 FITEM,2,-8 ADRAG,5,6,7,8,,,19 FLST,3,4,5,ORDE,3 FITEM,3,5 FITEM,3,10 FITEM,3,-12 VSBA,3,P51X VPLOT ! Mesh the model ET,1,SOLID45 ET,2,SURF154 KEYOPT,2,4,1 MP,EX,1,30e6 VSWEEP,ALL EPLOT SAVE,bolt-torque,db1 *IF,ARG1,EQ,1,THEN ASEL,S,,,7,8 NSLA,,1 NPLOT /WAIT,WTIME TYPE,2 ESURF ESEL,S,TYPE,,2 /PSYMB,ESYS,1 EPLOT /WAIT,WTIME LOCAL,11,1,0,0,0 EMODIF,ALL,ESYS,11 EPLOT /WAIT,WTIME CM,E_SURF,ELEM /PSYMB,ESYS,0 EPLOT /WAIT,WTIME
12
Workshop Supplement January 30, 2001 Inventory #001444 A-12 Appendix A Input Files for Workshop Exercises bolt-torque.inp (cont’d) /PSF,PRES,TANX,2 SFE,E_SURF,2,PRES,,10000 EPLOT /WAIT,WTIME NSEL,ALL ESEL,ALL ASEL,ALL CSYS,0 /AUTO,1 EPLOT DA,1,ALL FINISH /SOLU EQSLV,PCG SAVE SOLVE FINISH /POST1 RSYS,1 /EDGE,1,1,45 /GLINE,1,0 PLNSOL,U,Y *ENDIF FINISH
13
Workshop Supplement January 30, 2001 Inventory #001444 A-13 Appendix A Input Files for Workshop Exercises Workshop 4 ! ANSYS 5.7 Intro Part 2 - Workshop 4 ARG1=1! Use ARG1=1 to complete the exercise ! Building Frame Example ! GEOMETRY ! Roof areas /PREP7 K,1,0,0,120, K,2,120,0,120, K,3,120,240,120, K,4,0,240,120, a,1,2,3,4 agen,4,all,,,120,0,0 agen,2,all,,,0,240,0 kmodif,kp(480,0,120),,120 nummrg,kp numcmp,all cm,aflat,area cm,lflat,line /VIEW,1,1,-3,1 /ANG,1,-48 /dist,,250 /focus,,260,190,80 /pnum,kp,1 APLOT ! "Lobby" areas kwpave,7 wprot,45 cswp,11 lgen,2,11,,,0,-120,0,20 l,7,27 l,9,29 kwpave,7,9,27,29 csys,4 k,30,0,0,45 ! Peak keypoint csys,0 a,30,9,7 a,30,7,27 a,30,27,29 a,30,29,9 asel,,,,9,12 cm,aslope,area asel,all ! Lines representing columns csys,0 k,50 numstr,line,51 l,1,50 ldrag,4,12,7,9,10,15,51 ldrag,27,29,,,,,51 lplot csys,11 lsel,,loc,y,0,-120 cm,lobby,line lsel,all ! Orientation KPs csys,0 K,101,240,240,240000 K,102,240000,240,60 csys,11 K,103,0,0,100 lplot ! BEAM PROPERTIES ET,1,BEAM189 ! Beam with midside node mpread,Stl_AISI-304,BIN_MPL,,lib ! Steel ! Roof Properties et,2,93! shell elements for roof r,1,.5!.5 thick roof
14
Workshop Supplement January 30, 2001 Inventory #001444 A-14 Appendix A Input Files for Workshop Exercises Workshop 4 (cont’d) ! Loading Elements et,3,154 ! 3-D surface effect element with midside nodes keyopt,3,11,2 ! Pressure on full area (not projected area) save,bldg-geom,db1 *if,ARG1,eq,1,then SECTYPE,1,BEAM,I,Column ! Section data for columns SECDATA,12,12,12.12,.605,.605,.390 SECTYPE,2,BEAM,I,Girder ! Section data for girders SECDATA,10.425,10.425,16.97,.985,.985,.585 SECTYPE,3,BEAM,I,Beam ! Section data for beams (normal to girders) SECDATA,6.535,6.535,8.06,.465,.465,.285 SECTYPE,4,BEAM,HREC,Peak ! Section data for beams in lobby SECDATA,6,6,.25,.25,.25,.25 ! MESHING ! Mesh "column"s csys,0 LSEL,S,loc,z,0,119 latt,1,,1,,102,,1 lesize,all,,,4 lmesh,all /ESHAPE,1 EPLOT ! Mesh "girder"s lsel,s,loc,y,480 lsel,a,loc,y,240 lsel,a,loc,y,0 lsel,u,loc,z,0,119 latt,1,,1,,101,,2 lesize,all,,,6 lmesh,all ! Mesh "peak"s lsel,s,loc,z,121,165 latt,1,,1,,103,,4 lesize,all,,,4 lmesh,all ! Mesh "beam"s lsel,s,sec,,1,4 lsel,inve latt,1,,1,,101,,3 lesize,all,,,6 lmesh,all ! Mesh "roof" type,2 real,1 secnum,0 amesh,all ! Surface effect elements type,3 secnum,0 esel,s,type,,2 nsle,s esurf,all eplot
15
Workshop Supplement January 30, 2001 Inventory #001444 A-15 Appendix A Input Files for Workshop Exercises Workshop 4 (cont’d) ! LOADING & SOLUTION /solu nsel,,loc,z,0 d,all,all ! Fix bottom nodes in all DOF acel,,,386 ! Gravity in Z direction allsel save solve ! Load step 1 esel,,type,,3 sfe,all,5,pres,,0.25,0,0,-1 ! Pressure of 0.25 psi in - Z direction /psf,pres,,2 eplot allsel save solve ! Load step 2 finish ! RESULTS /post1 set,1 ! Results from load step 1 esel,u,type,,2 ! Unselect surface effect elements pldisp set,2 ! Results from load step 2 /replot esel,s,sec,,1 /gline,,-1 ! No element outlines plnsol,s,x ! Stresses in columns esel,,sec,,2 /replot ! Stresses in girders esel,,sec,,3 /replot ! Stresses in beams esel,,sec,,4 /replot ! Stresses in peaks finish *endif !/exit,nosave
16
Workshop Supplement January 30, 2001 Inventory #001444 A-16 Appendix A Input Files for Workshop Exercises Workshop 5 ! ANSYS 5.7 Intro Part 2 - Workshop 5 ! Submodeling finish /clear,start /filn,crank-coarse resume,crank-coarse,db1 WTIME=3 !/POST1 !PLNSOL,S,EQV !/WAIT,WTIME !FINISH /filn,crank-fine /PREP7 VCLEAR,ALL VPLOT /WAIT,WTIME VINP,1,5,6 /WAIT,WTIME VDELE,2,4,1,1 ADELE,35,36,1,1 LESIZE,ALL,,,-1,,1 VPLOT AESIZE,41,1 AESIZE,42,1 AESIZE,45,1 AESIZE,46,1 VSWEEP,ALL LOCAL,11,1,0,0,17.5,,,90 NSEL,S,LOC,X,9 NPLOT /WAIT,WTIME NWRITE,crank-fine,node SAVE FINISH RESUME,crank-coarse,db1 /POST1 CBDOF RESUME,crank-fine,db ALLSEL VPLOT /WAIT,WTIME /SOLU DA,41,SYMM DA,42,SYMM DA,45,SYMM DA,46,SYMM /INPUT,crank-fine,cbdo EPLOT /WAIT,WTIME SAVE SOLVE FINISH /POST1 /PBC,ALL,,0 /PSYMB,CS,0 PLNSOL,S,EQV
17
Workshop Supplement January 30, 2001 Inventory #001444 A-17 Appendix A Input Files for Workshop Exercises Workshop 6 ! ANSYS 5.7 Intro Part 2 - Workshop 6 ! Modal Analysis (Block Lanczos) finish /clear,start /filn,u-bracket resume,u-bracket,db1 ! Element Type ! ET,1,SOLID45 !(already defined in the database) ! Material Properties !(already defined in the database) ! MP,EX,1,30023280 ! MP,NUXY,1,0.29 ! MP,ALPX,1, 8.38888e-6 ! MP,DENS,1,0.0007346344 /SOLU DA,17,ALL ANTYPE,MODAL MODOPT,LANB,10,0,1000000 EQSLV,SPAR MXPAND,10,,,1 SAVE SOLVE FINISH /POST1 SET,LIST SET,1,1 PLNSOL,S,EQV /WAIT,WTIME PLNSOL,U,SUM,2,1 /eof PLDISP ANMODE,10,0.5
18
Workshop Supplement January 30, 2001 Inventory #001444 A-18 Appendix A Input Files for Workshop Exercises Workshop 7 ! ANSYS 5.7 Intro PArt 2 - Workshop 7 ! Nonlinear Analysis (Large Deflection) finish /clear,start /filn,beamarch /PREP7 CSYS,1 K,1,1270,75 K,2,1270,90 K,3,1270,105 *AFUN,DEG K,4,(1270*SIN(45)),90 L,1,2 L,2,3 DK,1,UX,0,,,UY,UZ DK,2,UZ,0 DK,3,UX,0,,,UY,UZ FK,2,FY,-20000 MP,EX,1,210E3 MP,PRXY,1,0.3 /PBC,ALL,,1 /view,,0,0,1 /PNUM,KP,1 GPLOT ET,1,BEAM189 SECTYPE,1, BEAM, RECT SECOFFSET, CENT SECDATA,25,12.5 LATT,1,,1,, 4,,1 LESIZE,ALL,,,10 LMESH,ALL /UI,MESH,OFF /SHRINK,0 /ESHAPE,1 /EFACET,2 /RATIO,1,1,1 EPLOT FINISH /SOLU /STAT,SOLU SAVE SOLVE FINISH /POST1 NSEL,S,,,2 PRDISP /WAIT,10 ALLSEL FINISH /SOLU ANTYPE,0 NLGEOM,1 NSUBST,10,0,0 OUTRES,ALL,LAST SOLVE FINISH /POST1 NSEL,S,,,2 PRDISP /WAIT,10 ALLSEL PLNSOL,U,Y ANCNTR,10,0.5
19
Workshop Supplement January 30, 2001 Inventory #001444 A-19 Appendix A Input Files for Workshop Exercises Workshop 8 ! ANSYS 5.7 Intro Part 2 - Workshop 8 ! Bonded Contact of Swaybar Assembly (Bar and Shaft) finish /clear,start /filn,bonded-contact,1 /INP,bonded-contact,inp WTIME=3 /PREP7 !* /COM, CONTACT PAIR CREATION - START CM,_NODECM,NODE CM,_ELEMCM,ELEM CM,_LINECM,LINE CM,_AREACM,AREA /GSAV,cwz,gsav,,temp MP,MU,1,0 MAT,1 R,3 REAL,3 ET,5,170 ET,6,174 RMODIF,3,1,,,100,0.1,, RMODIF,3,7,,,1.0e20,0.0,1.0 KEYOPT,6,2,0 KEYOPT,6,6,0 KEYOPT,6,7,0 KEYOPT,6,8, KEYOPT,6,9,1 KEYOPT,6,11, KEYOPT,6,12,5 ! Generate the target surface ASEL,S,,,48 CM,_TARGET,AREA TYPE,5 NSLA,S,1 ESLN,R,0 ESURF,ALL CMSEL,S,_ELEMCM ! Generate the contact surface ASEL,S,,,22 CM,_CONTACT,AREA TYPE,6 NSLA,S,1 ESLN,R,0 ESURF,ALL ALLSEL ESEL,ALL ESEL,S,TYPE,,5 ESEL,A,TYPE,,6 ESEL,R,REAL,,3 /PSYMB,ESYS,1 /PNUM,TYPE,1 /NUM,1 EPLOT ESEL,ALL ESEL,S,TYPE,,5 ESEL,A,TYPE,,6 ESEL,R,REAL,,3 CMSEL,A,_NODECM CMDEL,_NODECM CMSEL,A,_ELEMCM CMDEL,_ELEMCM CMSEL,S,_LINECM
20
Workshop Supplement January 30, 2001 Inventory #001444 A-20 Appendix A Input Files for Workshop Exercises Workshop 8 (cont’d) CMDEL,_LINECM CMSEL,S,_AREACM CMDEL,_AREACM /GRES,cwz,gsav CMDEL,_TARGET CMDEL,_CONTACT /COM, CONTACT PAIR CREATION - END ALLSEL /PBC,CE,,1 /AUTO,1 EPLOT FINISH /SOLU EQSLV,PCG SOLCONTROL,OFF NEQIT,1 SAVE SOLVE FINISH /POST1 CMSEL,S,v_bar ALLSEL,BELOW,VOLU PLNSOL,S,EQV CMSEL,S,v_shaft ALLSEL,BELOW,VOLU PLNSOL,S,EQV bonded-contact.inp ! ANSYS 5.7 Intro Part 2 - Workshop 8 (insert file: bonded- contact.inp) ! Bonded Contact of Swaybar Assembly (Bar and Shaft) finish /clear,start resume,swaybar-assm-cm,db1 /TITLE, Swaybar and Shaft Assembly with Bonded Contact (units: cm) WTIME=3 /PREP7 VPLOT /WAIT,WTIME CMSEL,S,v_bar ALLSEL,BELOW,VOLU VPLOT /UIS,MSGPOP,3 ! Divide Volumes WPSTYLE,,,,,,,,1 WPRO,,,90.0 WPOFFS,,,1.35 VSBW,3 WPAVE,2.43 VSBW,7 WPAVE,10.0 VSBW,9 VDEL,10,,,1 WPSTYLE,,,,,,,,0 VSEL,A,,,2,4,2 ALLSEL,BELOW,VOLU
21
Workshop Supplement January 30, 2001 Inventory #001444 A-21 Appendix A Input Files for Workshop Exercises bonded-contact.inp (cont’d) VGLUE,2,7 KWPLAN,-1,85,87,18 wpro,,-90.0 ASEL,s,,,24,25 ASEL,A,,,14 ASBW,ALL WPSTYLE,,,,,,,,0 ALLSEL,BELOW,VOLU /AUTO,1 VPLOT CM,v_bar-sh,VOLU VSEL,U,,,4,9,5 ALLSEL,BELOW,VOLU CM,v_bar,VOLU VSEL,S,,,9 ALLSEL,BELOW,VOLU CM,v_shaft1,VOLU VSEL,A,,,4 ALLSEL,BELOW,VOLU CM,v_shaft,VOLU CMSEL,S,v_bar ALLSEL,BELOW,VOLU /AUTO,1 VPLOT ET,1,SOLID45 ET,2,SOLID95 ET,3,SOLID92 ET,4,MASS21 R,1,1,1,1 MP,EX,1,2.11e6 ! units: kgf/cm^2 (1 kgf/cm^2 = 98066.5 Pa) ! Define line divisions for swaybar LESIZE,57,,,8,,,,,0 LESIZE,143,,,8,,,,,0 LESIZE,79,,,8,,,,,0 LESIZE,151,,,8,,,,,0 LESIZE,154,,,8,,,,,0 LESIZE,163,,,8,,,,,0 LESIZE,135,,,8,,,,,0 LESIZE,52,,,8,,,,,0 LESIZE,70,,,8,,,,,0 LESIZE,76,,,8,,,,,0 LESIZE,139,,,8,,,,,0 LESIZE,140,,,8,,,,,0 LESIZE,147,,,8,,,,,0 LESIZE,148,,,8,,,,,0 LESIZE,159,,,8,,,,,0 LESIZE,162,,,8,,,,,0 LESIZE,95,,,6,,,,,0 LESIZE,96,,,6,,,,,0 LESIZE,97,,,6,,,,,0 LESIZE,98,,,6,,,,,0 LESIZE,99,,,6,,,,,0 LESIZE,100,,,6,,,,,0 LESIZE,101,,,6,,,,,0 LESIZE,102,,,6,,,,,0 LESIZE,65,,,4,,,,,0 LESIZE,67,,,4,,,,,0 LESIZE,72,,,4,,,,,0 LESIZE,75,,,4,,,,,0 LESIZE,157,,,4,,,,,0 LESIZE,158,,,4,,,,,0 LESIZE,160,,,4,,,,,0 LESIZE,161,,,4,,,,,0
22
Workshop Supplement January 30, 2001 Inventory #001444 A-22 Appendix A Input Files for Workshop Exercises bonded-contact.inp (cont’d) LESIZE,21,,,20,,,,,0 LESIZE,131,,,20,,,,,0 LESIZE,40,,,8,,,,,0 LESIZE,41,,,8,,,,,0 LESIZE,60,,,8,,,,,0 LESIZE,61,,,8,,,,,0 LESIZE,44,,,3,,,,,0 LESIZE,46,,,3,,,,,0 LESIZE,47,,,3,,,,,0 LESIZE,45,,,3,,,,,0 SMRT,6 ESIZE,0.3 ! Mesh Volume 6 (upper left end of swaybar) VSWEEP,6 ! Mesh Volume 5 (lower left end of swaybar) VSWEEP,5 ! Mesh Volume 3 (upper middle of swaybar) VSWEEP,3 ! Mesh Volume 8 (lower middle of swaybar) VSWEEP,8 ! Mesh Volume 10 (right end of swaybar) VSWEEP,10 CMSEL,S,v_shaft ALLSEL,BELOW,VOLU /AUTO,1 VPLOT ! Mesh Volume 9 (inner shaft) ! Define line divisions for inner shaft LESIZE,31,,,20,,,,,0 LESIZE,22,,,8,,,,,0 LESIZE,48,,,8,,,,,0 LESIZE,23,,,3,,,,,0 LESIZE,24,,,3,,,,,0 LESIZE,28,,,3,,,,,0 LESIZE,30,,,3,,,,,0 LESIZE,51,,,3,,,,,0 LESIZE,66,,,3,,,,,0 LESIZE,26,,,4,,,,,0 LESIZE,29,,,4,,,,,0 LESIZE,49,,,4,,,,,0 VSWEEP,9 ! Mesh Volume 4 (outer shaft) TYPE,2 MSHAPE,1,3D MSHKEY,0 VMESH,4 TCHG,95,92,3 CHECK CMSEL,S,v_bar-sh ALLSEL,BELOW,VOLU EPLOT /UIS,MSGPOP,2 *GET,high_nod,NODE,,NUM,MAX,,,, node_ld=high_nod+1 N,node_ld,33 TYPE,4 EN,8000,node_ld NSEL,S,LOC,X,10 NSEL,A,,,node_ld NPLOT
23
Workshop Supplement January 30, 2001 Inventory #001444 A-23 Appendix A Input Files for Workshop Exercises bonded-contact.inp (cont’d) ! Generate Rigid Region CERIG,node_ld,ALL,UX,UY NSEL,ALL /PBC,CE,,1 EPLOT ! Copy shaft volume in place to create identical mesh ! for gluing comparison. /nopr immed,0 CMSEL,S,V_SHAFT ALLSEL,BELOW,VOLU VGEN,2,all,,,,,,,0 CM,v_shaft2,VOLU CMSEL,S,V_SHAFT VCLEAR,all VDELE,all,,,1 CMSEL,S,V_SHAFT2 CM,v_shaft,VOLU CMDELE,V_SHAFT2 immed,1 allsel F,node_ld,FY,-500 ! unit: kgf /PBC,F,,1 /PBC,U,,1 DA,44,ALL save VSEL,NONE CMSEL,S,V_SHAFT CMSEL,A,V_BAR CM,V_BAR-SH,VOLU ALLS,BELOW,VOLU VPLOT FINISH /eof! Student applies contact elements through Wizard. /SOLU EQSLV,PCG SAVE SOLVE FINISH /POST1 CMSEL,S,v_shaft ALLSEL,BELOW,VOLU PLNSOL,S,EQV /WAIT,WTIME CMSEL,S,v_bar ALLSEL,BELOW,VOLU PLNSOL,S,EQV
24
Workshop Supplement January 30, 2001 Inventory #001444 A-24 Appendix A Input Files for Workshop Exercises swaybar-shaft-glued.inp ! ANSYS 5.7 Intro Part 2 - Workshop 8 Step 9. ! File: swaybar-shaft-glued.inp ! Swaybar and Shaft Volumes Glued Together finish /clear,start /filn,swaybar-shaft-glued,1 resume,swaybar-assm-cm,db1 /TITLE, Swaybar and Shaft Assembly (glued) (units: cm) WTIME=3 /PREP7 VPLOT /WAIT,WTIME CMSEL,S,v_bar ALLSEL,BELOW,VOLU VPLOT /UIS,MSGPOP,3 ! Divide Volumes WPSTYLE,,,,,,,,1 WPRO,,,90.0 WPOFFS,,,1.35 VSBW,3 WPAVE,2.43 VSBW,7 WPAVE,10.0 VSBW,9 VDEL,10,,,1 WPSTYLE,,,,,,,,0 VSEL,A,,,2,4,2 ALLSEL,BELOW,VOLU VGLUE,2,7 KWPLAN,-1,85,87,18 wpro,,-90.0 ASEL,s,,,24,25 ASEL,A,,,14 ASBW,ALL WPSTYLE,,,,,,,,0 ALLSEL,BELOW,VOLU /AUTO,1 VPLOT CM,v_bar-sh,VOLU VSEL,U,,,4,9,5 ALLSEL,BELOW,VOLU CM,v_bar,VOLU VSEL,S,,,9 ALLSEL,BELOW,VOLU CM,v_shaft1,VOLU VSEL,A,,,4 ALLSEL,BELOW,VOLU CM,v_shaft,VOLU CMSEL,S,v_bar ALLSEL,BELOW,VOLU /AUTO,1 VPLOT
25
Workshop Supplement January 30, 2001 Inventory #001444 A-25 Appendix A Input Files for Workshop Exercises swaybar-shaft-glued.inp (cont’d) ET,1,SOLID45 ET,2,SOLID95 ET,3,SOLID92 ET,4,MASS21 R,1,1,1,1 MP,EX,1,2.11e6 ! units: kgf/cm^2 (1 kgf/cm^2 = 98066.5 Pa) ! Define line divisions for swaybar LESIZE,57,,,8,,,,,0 LESIZE,143,,,8,,,,,0 LESIZE,79,,,8,,,,,0 LESIZE,151,,,8,,,,,0 LESIZE,154,,,8,,,,,0 LESIZE,163,,,8,,,,,0 LESIZE,135,,,8,,,,,0 LESIZE,52,,,8,,,,,0 LESIZE,70,,,8,,,,,0 LESIZE,76,,,8,,,,,0 LESIZE,139,,,8,,,,,0 LESIZE,140,,,8,,,,,0 LESIZE,147,,,8,,,,,0 LESIZE,148,,,8,,,,,0 LESIZE,159,,,8,,,,,0 LESIZE,162,,,8,,,,,0 LESIZE,95,,,6,,,,,0 LESIZE,96,,,6,,,,,0 LESIZE,97,,,6,,,,,0 LESIZE,98,,,6,,,,,0 LESIZE,99,,,6,,,,,0 LESIZE,100,,,6,,,,,0 LESIZE,101,,,6,,,,,0 LESIZE,102,,,6,,,,,0 LESIZE,65,,,4,,,,,0 LESIZE,67,,,4,,,,,0 LESIZE,72,,,4,,,,,0 LESIZE,75,,,4,,,,,0 LESIZE,157,,,4,,,,,0 LESIZE,158,,,4,,,,,0 LESIZE,160,,,4,,,,,0 LESIZE,161,,,4,,,,,0 LESIZE,21,,,20,,,,,0 LESIZE,131,,,20,,,,,0 LESIZE,40,,,8,,,,,0 LESIZE,41,,,8,,,,,0 LESIZE,60,,,8,,,,,0 LESIZE,61,,,8,,,,,0 LESIZE,44,,,3,,,,,0 LESIZE,46,,,3,,,,,0 LESIZE,47,,,3,,,,,0 LESIZE,45,,,3,,,,,0 SMRT,6 ESIZE,0.3 ! Mesh Volume 6 (upper left end of swaybar) VSWEEP,6 ! Mesh Volume 5 (lower left end of swaybar) VSWEEP,5 ! Mesh Volume 3 (upper middle of swaybar) VSWEEP,3 ! Mesh Volume 8 (lower middle of swaybar) VSWEEP,8 ! Mesh Volume 10 (right end of swaybar) VSWEEP,10 CMSEL,S,v_shaft ALLSEL,BELOW,VOLU /AUTO,1 VPLOT
26
Workshop Supplement January 30, 2001 Inventory #001444 A-26 Appendix A Input Files for Workshop Exercises swaybar-shaft-glued.inp (cont’d) ! Mesh Volume 9 (inner shaft) ! Define line divisions for inner shaft LESIZE,31,,,20,,,,,0 LESIZE,22,,,8,,,,,0 LESIZE,48,,,8,,,,,0 LESIZE,23,,,3,,,,,0 LESIZE,24,,,3,,,,,0 LESIZE,28,,,3,,,,,0 LESIZE,30,,,3,,,,,0 LESIZE,51,,,3,,,,,0 LESIZE,66,,,3,,,,,0 LESIZE,26,,,4,,,,,0 LESIZE,29,,,4,,,,,0 LESIZE,49,,,4,,,,,0 VSWEEP,9 ! Mesh Volume 4 (outer shaft) TYPE,2 MSHAPE,1,3D MSHKEY,0 VMESH,4 TCHG,95,92,3 CHECK CMSEL,S,v_bar-sh ALLSEL,BELOW,VOLU EPLOT /UIS,MSGPOP,2 N,11000,33 TYPE,4 EN,8000,11000 NSEL,S,LOC,X,10 NSEL,A,,,11000 NPLOT ! Generate Rigid Region CERIG,11000,ALL,UX,UY NSEL,ALL /PBC,CE,,1 EPLOT F,11000,FY,-500 ! unit: kgf /PBC,F,,1 /PBC,U,,1 DA,19,ALL FINISH /SOLU EQSLV,PCG SAVE SOLVE FINISH /POST1 CMSEL,S,v_shaft ALLSEL,BELOW,VOLU PLNSOL,S,EQV /WAIT,WTIME CMSEL,S,v_bar ALLSEL,BELOW,VOLU PLNSOL,S,EQV
27
Workshop Supplement January 30, 2001 Inventory #001444 A-27 Appendix A Input Files for Workshop Exercises Workshop 9 ! ANSYS 5.7 Intro PArt 2 - Workshop 7 ! Bolt load example ARG1=1! Use ARG1=1 to complete the exercise ! Geometry /prep7 block,-5,5,-5,5,,1 cylinder,,1,-1,1 vsbv,1,2 numcmp,volu ! Meshing et,2,45 type,2 mpread,Al_a2024-T3,BIN_MPL,,lib vsweep,1 /color,outl,black /shrink,0.1 /view,,1,2,3 /psf,pres,,2 eplot ! Constraints nsel,,loc,y,5 d,all,all nsel,all eqslv,pcg,1e-5 save,boltload,db ! Surface loads et,1,154 type,1 asel,s,loc,y,-1 nsla,s,1 esurf esln,,1 ! Select all surface elements sfe,all,5,pres,,1000,0,-1,0 allsel save,bpressure,db1 *if,arg1,eq,1,then ! Solve /solu solve ! Postprocess /post1 plnsol,s,y ! Start Macro Creation *create,sfeplot,mac ! Macro to plot effective pressure on surface elem's esel,s,type,,arg1 ! Select elements of type ARG1 nsle ! Select all nodes attached to them etable,peff,smisc,arg2+12 ! Item PEFF is SMISC item ARG2+12 pletab,peff ! Plot PEFF nsel,all esel,all *end ! End Macro Creation sfeplot,1,5 ! Plot effective pressure for type 1, face 5 *endif finish
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.