...
Because the thickness of the blade varies, we need to set the material via commands. First, we will create a command that governs the material properties of the outer surface of the blade. To create a command, right click on the Outer Surface surface body, and select Insert > Commands. In the command prompt, insert the following:
Panelinfo |
---|
/prep7 !Call the Preprocessor et,matid,181 !Specify the element type, shell 181 MP,EX,1,33E9 !Define Young's Modulus: X Direction MP,PRXY,1,0.3 !Define Major Poisson's ratio XY |
...
Create a command for the spar, and insert the following
Panelinfo |
---|
/prep7 !Call the Preprocessor et,matid,181 !Specify the element type, shell 181 MP,EX,2,101E9 !Define Young's Modulus: X Direction MP,PRXY,2,0.3 !Define Major Poisson's ratio XY |
...
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 add the line
Panelinfo |
---|
sect,1,shell !Specify the section type |
to the end of the code. For simplicity, I have posted the entire code here:
Panelinfo |
---|
/prep7 !Call the Preprocessor et,matid,181 !Specify the element type, shell 181 MP,EX,1,33E9 !Define Young's Modulus: X Direction MP,PRXY,1,0.3 !Define Major Poisson's ratio XY *DIM,vth,TABLE,6,5,1, !Dimension The Table for the Thickness Function ! Begin of equation: .030-{X}*.00048485 sect,1,shell !Specify the section type |
...
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.
Panelinfo |
---|
/prep7 !Call the Preprocessor et,matid,181 !Specify the element type, shell 181 MP,EX,2,101E9 !Define Young's Modulus: X Direction MP,PRXY,2,0.3 !Define Major Poisson's ratio XY *DIM,sth,TABLE,6,5,1, !Dimension The Table for the Thickness Function ! Begin of equation: .020 sect,2,shell !Specify the section type |
...
We need to create one more command in order to ensure that ANSYS uses the varying thickness. In the Outline window, right click Static Structural (B5) and select Insert > Commands. Copy and paste the code below into the command window
Panelinfo |
---|
fini !Exit current Module |
...