Versions Compared

Key

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

...

Press ENTER. Then in the Function Editor window, go to File > Save. Change the Save as type to All Files, and name the file vth.txt. Once you save, you may close ANSYS APDL. Now, open the text file you just created. We need to name the function. In the text file, use Replace to replace all instances of %_FNCNAME% with vth. Also, we need to alter the line {{add the line

Panel

sect,1,shell !Specify the section type
secfunction,%vth% !Apply the Varying Thickness Function

to the end of the code. For simplicity, I have posted the entire code here:

Panel
Wiki Markup

/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,1,33E9              !Define Young's Modulus: X Direction
MP,EY,1,33E9              !Define Young's Moduls: Y Direction
MP,EZ,1,33E9              !Define Young's Modulus: Z Direction

MP,PRXY,1,0.3            !Define Major Poisson's ratio XY
MP,PRYZ,1,0.3            !Define Major Poisson's ratio YZ
MP,PRXZ,1,0.3            !Define Majoy Poisson's ration XZ

*DIM,vth,TABLE,6,5,1, !Dimension The Table for the Thickness Function

! Begin of equation: .020
!constant thickness of 0.040 mm
!vth(0,0,1)= 0.0, -999
!vth(2,0,1)= 0.0
!vth(3,0,1)= 0.0
!vth(4,0,1)= 0.0
!vth(5,0,1)= 0.0
!vth(6,0,1)= 0.0
!vth(0,1,1)= 1.0, 99, 0, .040, 0, 0, 0
!vth(0,2,1)=   0
!vth(0,3,1)=   0
! End of equation: .020
!-->

! Begin of equation: .025-{X}*.00036364
!25mm at root, 10 mm at tip
!vth(0,0,1)= 0.0, -999
!vth(2,0,1)= 0.0
!vth(3,0,1)= 0.0
!vth(4,0,1)= 0.0
!vth(5,0,1)= 0.0
!vth(6,0,1)= 0.0
!vth(0,1,1)= 1.0, -1, 0, .00036364, 0, 0, 2
!vth(0,2,1)= 0.0, -2, 0, 1, 2, 3, -1
!vth(0,3,1)=   0, -1, 0, .025, 0, 0, -2
!vth(0,4,1)= 0.0, -3, 0, 1, -1, 2, -2
!vth(0,5,1)= 0.0, 99, 0, 1, -3, 0, 0
! End of equation: .025-{X}*.00036364
!-->

! Begin of equation: .030-{X}*.00048485
!30mm at root and 10mm at tip
vth(0,0,1)= 0.0, -999
vth(2,0,1)= 0.0
vth(3,0,1)= 0.0
vth(4,0,1)= 0.0
vth(5,0,1)= 0.0
vth(6,0,1)= 0.0
vth(0,1,1)= 1.0, -1, 0, .00048485, 0, 0, 2
vth(0,2,1)= 0.0, -2, 0, 1, 2, 3, -1
vth(0,3,1)=   0, -1, 0, .030, 0, 0, -2
vth(0,4,1)= 0.0, -3, 0, 1, -1, 2, -2
vth(0,5,1)= 0.0, 99, 0, 1, -3, 0, 0
! End of equation: .030-{X}*.00048485
!-->

!
! Begin of equation: .030-{X}*.00060606
!30 mm at root, 5mm at tip
!vth(0,0,1)= 0.0, -999
!vth(2,0,1)= 0.0
!vth(3,0,1)= 0.0
!vth(4,0,1)= 0.0
!vth(5,0,1)= 0.0
!vth(6,0,1)= 0.0
!vth(0,1,1)= 1.0, -1, 0, .00060606, 0, 0, 2
!vth(0,2,1)= 0.0, -2, 0, 1, 2, 3, -1
!vth(0,3,1)=   0, -1, 0, .030, 0, 0, -2
!vth(0,4,1)= 0.0, -3, 0, 1, -1, 2, -2
!vth(0,5,1)= 0.0, 99, 0, 1, -3, 0, 0
! End of equation: .030-{X}*.00060606
!-->

!
! Begin of equation: .035-{X}*.00060606
!35mm at root and 10mm at tip
!vth(0,0,1)= 0.0, -999
!vth(2,0,1)= 0.0
!vth(3,0,1)= 0.0
!vth(4,0,1)= 0.0
!vth(5,0,1)= 0.0
!vth(6,0,1)= 0.0
!vth(0,1,1)= 1.0, -1, 0, .00060606, 0, 0, 2
!vth(0,2,1)= 0.0, -2, 0, 1, 2, 3, -1
!vth(0,3,1)=   0, -1, 0, .035, 0, 0, -2
!vth(0,4,1)= 0.0, -3, 0, 1, -1, 2, -2
!vth(0,5,1)= 0.0, 99, 0, 1, -3, 0, 0
! End of equation: .035-{X}*.00060606
!-->

!
! Begin of equation: .040-{X}*.00072727
!40 mm at root and 10mm at tip
!vth(0,0,1)= 0.0, -999
!vth(2,0,1)= 0.0
!vth(3,0,1)= 0.0
!vth(4,0,1)= 0.0
!vth(5,0,1)= 0.0
!vth(6,0,1)= 0.0
!vth(0,1,1)= 1.0, -1, 0, .00072727, 0, 0, 2
!vth(0,2,1)= 0.0, -2, 0, 1, 2, 3, -1
!vth(0,3,1)=   0, -1, 0, .040, 0, 0, -2
!vth(0,4,1)= 0.0, -3, 0, 1, -1, 2, -2
!vth(0,5,1)= 0.0, 99, 0, 1, -3, 0, 0
! End of equation: .040-{X}*.00072727
!-->

sect,1,shell             !Specify the section type
secfunction,%vth%        !Apply the Varying Thickness Function

Spar

We need to repeat the above step, creating a command for the spar, but this time the thickness will be constant. We will also have to make minute changes to the code to refer to the correct section. For simplicity, the code is posted below.

Panel

/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
MP,PRXZ,2,0.3 !Define Majoy Poisson's ration XZ

*DIM,sth,TABLE,6,5,1, !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

Go to Step 5 - Solution
Go to all ANSYS Learning Modules