-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_BEAM44.mac
81 lines (70 loc) · 1.71 KB
/
_BEAM44.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
!&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
!_BEAM44.mac
!B.Guest - [email protected]
!DESCRIPTION: This macro quickly defines a beam44
! element type and material property
!PRECONDITIONS:
! B44ShearY: Shear constant y direction (optional)
! B44ShearZ: " " Z " "
! kEshapeSection: how asthetic section size is calculated
! 0 -> Bending stiffness of rectangle (IYY,IZZ)
! 1 -> Torsional stiffness of circle (IXX)
! ARGUMENTS:
! ARG1: Resulting element property number
! ARG2: Area
! ARG3: IXX (X = Axis) (Optional)
! ARG4: IYY
! ARG5: IZZ
! ARG6: Material (See _MAT.mac)
!======================================================
MatNum = ARG1
*if,ARG2,EQ,0,then
AA = 1
*else
AA = ARG2
*endif
*if,ARG4,EQ,0,then
IYY = 1/12
*else
IYY = ARG4
*endif
*if,ARG5,EQ,0,then
IZZ = 1/12
*else
IZZ = ARG5
*endif
*if,ARG3,EQ,0,then
IXX = IYY+IZZ
*else
IXX = ARG3
*endif
*if,B44ShearZ,eq,0,then
B44ShearZ = 0
*endif
*if,B44ShearY,eq,0,then
B44ShearY = 0
*endif
!TKY, TKZ are calculated assuming section type
*if,kEshapeSection,eq,1,then
! Circular X-Section in Torsion
TKZ = (32*IXX/PI)**(1/4)
TKY = TKZ
*else
! Rectangular x-section in bending
TKZ = (144*Iyy**3/Izz)**(1/8)
TKY = (144*Izz**3/Iyy)**(1/8)
*endif
!------------------------------------------------------
ET,MatNum,BEAM44
R ,MatNum, AA, IZZ, IYY, TKZ/2, TKY/2, IXX,
RMORE, AA, IZZ, IYY, TKZ/2, TKY/2, IXX,
RMORE, , , , , , ,
RMORE,B44ShearZ,B44ShearY, TKZ/2, TKY/2, TKZ/2, TKY/2,
!Set material
*if,arg6,gt,0,then
_MAT2,arg6,MatNum
*endif
!Cleanup
B44ShearZ = $ B44ShearY =
!======THE--END========THE--END========THE--END========
!ITS THE END OF THE FILE AS WE KNOW IT, AND I FEEL FINE