Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We need to repeat the above step, creating a command for the spar, but this time the thickness will be constant at 0.20 m. We will also have to make minute changes to the code to refer to the correct section. For simplicity, the code is posted below. Copy and paste the code below into a the command snippit for the Spar.

/prep7 !Call the Preprocessor

et,matid,181 !Specify the element type, shell 181
keyopt,matid,3,2 !Use full integration
mpdel,all,matid !Delete all previously assigned material properties
tbdel,all,matid !Delete all previouly assigned tabular data

MP,EX,2,101E9 !Define Young's Modulus: X Direction
MP,EY,2,101E9 !Define Young's Moduls: Y Direction
MP,EZ,2,101E9 !Define Young's Modulus: Z Direction

MP,PRXY,2,0.3 !Define Major Poisson's ratio XY
MP,PRYZ,2,0.3 !Define Major Poisson's ratio YZ
Info

MP,PRXZ,2,0.3 !Define Majoy Poisson's ration XZ*DIM,sth,TABLE,6,5,12, !Dimension The Table for the Thickness Function

! Begin of equation: .020
sth(0,0,1)= 0.0, -999
sth(2,0,1)= 0.0
sth(3,0,1)= 0.0
sth(4,0,1)= 0.0
sth(5,0,1)= 0.0
sth(6,0,1)= 0.0
sth(0,1,1)= 1.0, 99, 0, .10, 0, 0, 0
sth(0,2,1)= 0
sth(0,3,1)= 0
! End of equation: .020
!-->

sect,2,shell !Specify the section type
secfunction,%sth% !Apply the Varying Thickness Function

...