FEA D6: Dynamic analysis of a weightlifting bar

Initial setup

! White canvas
/RGB/RGB, Kywrd, PRED, PGRN, PBLU, N1, N2, NINC, NCNTR Specifies the RGB color values for indices and contours.,INDEX,100,100,100,0
/RGB/RGB, Kywrd, PRED, PGRN, PBLU, N1, N2, NINC, NCNTR Specifies the RGB color values for indices and contours.,INDEX,0,0,0,15
! Define constant parameters
! Units: [N],[Nmm],[N/mm^2=MPa],[N/mm]
ELAST=210E9
NU=0.3
RHO=7800
G=9.81
R=0.014
T=0.410826
D=0.4
L1=0.1
L2=0.4
L3=1.6

SETUP: element types, real constants, materials

KEYWKEYW, Keyword, KEY Sets a keyword used by the GUI for context filtering (GUI).,PR_STRUC,1! Preferences / Structural
/PREP7/PREP7 Enters the model creation preprocessor.

! Element type 1
ETET, ITYPE, Ename, KOP1, KOP2, KOP3, KOP4, KOP5, KOP6, INOPR Defines a local element type from the element library.,1,BEAM188
!
SECTYPESECTYPE, SECID, Type, Subtype, Name, REFINEKEY Associates section type information with a section ID number.,1,BEAM,CSOLID,,0
SECOFFSETSECOFFSET, Location, OFFSET1, OFFSET2, CG-Y, CG-Z, SH-Y, SH-Z Defines the section offset for cross sections.,CENT
SECDATASECDATA, VAL1, VAL2, VAL3, VAL4, VAL5, VAL6, VAL7, VAL8, VAL9, VAL10, VAL11, VAL12 Describes the geometry of a section.,RR = 0.014
! Element type 2
ETET, ITYPE, Ename, KOP1, KOP2, KOP3, KOP4, KOP5, KOP6, INOPR Defines a local element type from the element library.,2,PLANE182
KEYOPTKEYOPT, ITYPE, KNUM, VALUE Sets element key options.,2,3,3
RR, NSET, R1, R2, R3, R4, R5, R6 Defines the element real constants.,1,TT = 0.410826
MPTEMPMPTEMP, SLOC, T1, T2, T3, T4, T5, T6 Defines a temperature table for material properties.,1,0
MPDATAMPDATA, Lab, MAT, SLOC, C1, C2, C3, C4, C5, C6 Defines property data to be associated with the temperature table.,EX,1,,ELASTELAST = 210E9
MPDATAMPDATA, Lab, MAT, SLOC, C1, C2, C3, C4, C5, C6 Defines property data to be associated with the temperature table.,PRXY,1,,NUNU = 0.3
MPTEMPMPTEMP, SLOC, T1, T2, T3, T4, T5, T6 Defines a temperature table for material properties.,1,0
MPDATAMPDATA, Lab, MAT, SLOC, C1, C2, C3, C4, C5, C6 Defines property data to be associated with the temperature table.,DENS,1,,RHORHO = 7800

Modeling

BLC4BLC4, XCORNER, YCORNER, WIDTH, HEIGHT, DEPTH Creates a rectangular area or block volume by corner points.,0,0,L1L1 = 0.1,DD = 0.4
BLC4BLC4, XCORNER, YCORNER, WIDTH, HEIGHT, DEPTH Creates a rectangular area or block volume by corner points.,L1L1 = 0.1+L3,0,L1L1 = 0.1,DD = 0.4

!
KK, NPT, X, Y, Z Defines a keypoint.,,0,DD = 0.4/2
KK, NPT, X, Y, Z Defines a keypoint.,,L1L1 = 0.1,DD = 0.4/2
KK, NPT, X, Y, Z Defines a keypoint.,,L1L1 = 0.1+L2,DD = 0.4/2
KK, NPT, X, Y, Z Defines a keypoint.,,L1L1 = 0.1+L3-L2,DD = 0.4/2
KK, NPT, X, Y, Z Defines a keypoint.,,L1L1 = 0.1+L3,DD = 0.4/2
KK, NPT, X, Y, Z Defines a keypoint.,,2*L1+L3,DD = 0.4/2
*DO*DO, Par, IVAL, FVAL, INC Defines the beginning of a do-loop.,III,9,13
  LL, P1, P2, NDIV, SPACE, XV1, YV1, ZV1, XV2, YV2, ZV2 Defines a line between two keypoints.,III,III+1
*ENDDO*ENDDO Ends a do-loop and starts the looping action.

Meshing

LESIZELESIZE, NL1, SIZE, ANGSIZ, NDIV, SPACE, KFORC, LAYER1, LAYER2, KYNDIV Specifies the divisions and spacing ratio on unmeshed lines.,ALL,0.0125
AESIZEAESIZE, ANUM, SIZE, Specifies the element size to be meshed onto areas.,ALL,0.0125
TYPETYPE, ITYPE Sets the element type attribute pointer.,1
LMESHLMESH, NL1, NL2, NINC Generates nodes and line elements along lines.,9,13
TYPETYPE, ITYPE Sets the element type attribute pointer.,2
AMESHAMESH, NA1, NA2, NINC Generates nodes and area elements within areas.,ALL

!
NUMMRGNUMMRG, Label, TOLER, GTOLER, Action, Switch Merges coincident or equivalently defined items.,NODE,0.001,,,LOW
!
/ESHAPE/ESHAPE, SCALE, KEY Displays elements with shapes determined from the real constants or section definition.,1

Definition of loads

! Loadstep 1
NSELNSEL, Type, Item, Comp, VMIN, VMAX, VINC, KABS Selects a subset of nodes.,S,LOC,Y,0
DD, Node, Lab, VALUE, VALUE2, NEND, NINC, Lab2, Lab3, Lab4, Lab5, Lab6 Defines degree-of-freedom constraints at nodes.,ALL,ALL,0
!
NSELNSEL, Type, Item, Comp, VMIN, VMAX, VINC, KABS Selects a subset of nodes.,S,LOC,X,L1L1 = 0.1+L3/2
DD, Node, Lab, VALUE, VALUE2, NEND, NINC, Lab2, Lab3, Lab4, Lab5, Lab6 Defines degree-of-freedom constraints at nodes.,ALL,UX,0
ALLSELALLSEL, LabT, Entity Selects all entities with a single command.,ALL
DD, Node, Lab, VALUE, VALUE2, NEND, NINC, Lab2, Lab3, Lab4, Lab5, Lab6 Defines degree-of-freedom constraints at nodes.,ALL,UZ,0
ACELACEL, ACEL_X, ACEL_Y, ACEL_Z Specifies the linear acceleration of the global Cartesian reference frame for the analysis.,0,GG = 9.81,0
FINISHFINISH Exits normally from a processor.

Transient analysis

/SOL/SOLU Enters the solution processor.

!
ANTYPEANTYPE, Antype, Status, LDSTEP, SUBSTEP, Action Specifies the analysis type and restart status.,4
TRNOPTTRNOPT, Method, MAXMODE, --, MINMODE, MCout, TINTOPT, VAout Specifies transient analysis options.,FULL
ANTYPEANTYPE, Antype, Status, LDSTEP, SUBSTEP, Action Specifies the analysis type and restart status.,4
NLGEOMNLGEOM, Key Includes large-deflection effects in a static or full transient analysis.,1
DELTIMDELTIM, DTIME, DTMIN, DTMAX, Carry Specifies the time step sizes to be used for the current load step.,0.01,0.001,0.1
OUTRESOUTRES, Item, Freq, Cname, -- , NSVAR, DSUBres Controls the solution data written to the database.,ALL,ALL
AUTOTSAUTOTS, Key Specifies whether to use automatic time stepping or load stepping.,1
ALPHADALPHAD, VALUE Defines the mass matrix multiplier for damping.,6
BETADBETAD, VALUE Defines the stiffness matrix multiplier for damping.,0.0002
TIMETIME, TIME Sets the time for a load step.,0.2
KBCKBC, KEY Specifies ramped or stepped loading within a load step.,0
SOLVESOLVE, Action Starts a solution.
DDELEDDELE, NODE, Lab, NEND, NINC, Rkey Deletes degree-of-freedom constraints.,ALL,UY
! Time step 1
TIMETIME, TIME Sets the time for a load step.,1.0
DELTIMDELTIM, DTIME, DTMIN, DTMAX, Carry Specifies the time step sizes to be used for the current load step.,0.002,0.0002,0.02
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,11,UY,1.2
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,12,UY,1.2
LSWRITELSWRITE, LSNUM Writes load and load step option data to a file.,1
! Time step 2
TIMETIME, TIME Sets the time for a load step.,1.3
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,11,UY,0.9
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,12,UY,0.9
LSWRITELSWRITE, LSNUM Writes load and load step option data to a file.,2
! Time step 3
TIMETIME, TIME Sets the time for a load step.,2.0
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,11,UY,0.9
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,12,UY,0.9
LSWRITELSWRITE, LSNUM Writes load and load step option data to a file.,3
! Time step 4
TIMETIME, TIME Sets the time for a load step.,3.0
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,11,UY,1.5
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,12,UY,1.5
LSWRITELSWRITE, LSNUM Writes load and load step option data to a file.,4
! Time step 5
TIMETIME, TIME Sets the time for a load step.,4.5
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,11,UY,1.5
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,12,UY,1.5
LSWRITELSWRITE, LSNUM Writes load and load step option data to a file.,5
! Time step 6
TIMETIME, TIME Sets the time for a load step.,5.0
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,11,UY,1.4
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,12,UY,1.4
LSWRITELSWRITE, LSNUM Writes load and load step option data to a file.,6
! Time step 7
TIMETIME, TIME Sets the time for a load step.,5.5
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,11,UY,1.95
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,12,UY,1.95
LSWRITELSWRITE, LSNUM Writes load and load step option data to a file.,7
! Time step 8
TIMETIME, TIME Sets the time for a load step.,6.5
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,11,UY,1.95
DKDK, KPOI, Lab, VALUE, VALUE2, KEXPND, Lab2, Lab3, Lab4, Lab5, Lab6 Defines DOF constraints at keypoints.,12,UY,1.95
LSWRITELSWRITE, LSNUM Writes load and load step option data to a file.,8
LSSOLVELSSOLVE, LSMIN, LSMAX, LSINC Reads and solves multiple load steps.,1,8,1,
FINISHFINISH Exits normally from a processor.

Post processing

/POST26/POST26 Enters the time-history results postprocessor.
NSOLNSOL, NVAR, NODE, Item, Comp, Name, SECTOR Specifies nodal data to be stored from the results file.,2,NODE(L1+L3/2,DD = 0.4/2,0),U,Y,UY_2
NSOLNSOL, NVAR, NODE, Item, Comp, Name, SECTOR Specifies nodal data to be stored from the results file.,3,NODE(L1+L3/2,DD = 0.4/2,0),V,Y,VY_3
NSOLNSOL, NVAR, NODE, Item, Comp, Name, SECTOR Specifies nodal data to be stored from the results file.,4,NODE(L1+L3/2,DD = 0.4/2,0),A,Y,AY_4
/XRANGE/XRANGE, XMIN, XMAX Specifies a linear abscissa (X) scale range.,0,6.5
/AXLAB/AXLAB, Axis, Lab Labels the X and Y axes on graph displays.,X,'t [s]'
/AXLAB/AXLAB, Axis, Lab Labels the X and Y axes on graph displays.,Y,'uY [m]'
PLVARPLVAR, NVAR1, NVAR2, NVAR3, NVAR4, NVAR5, NVAR6, NVAR7, NVAR8, NVAR9, NVAR10 Displays up to ten variables in the form of a graph.,2, ! Click here to view image
/AXLAB/AXLAB, Axis, Lab Labels the X and Y axes on graph displays.,Y,'vY [m/s]'
PLVARPLVAR, NVAR1, NVAR2, NVAR3, NVAR4, NVAR5, NVAR6, NVAR7, NVAR8, NVAR9, NVAR10 Displays up to ten variables in the form of a graph.,3, ! Click here to view image
/AXLAB/AXLAB, Axis, Lab Labels the X and Y axes on graph displays.,Y,'aY [m/s^2]'
PLVARPLVAR, NVAR1, NVAR2, NVAR3, NVAR4, NVAR5, NVAR6, NVAR7, NVAR8, NVAR9, NVAR10 Displays up to ten variables in the form of a graph.,4, ! Click here to view image