Skip to content

Commit

Permalink
ad input generating scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKryslUCSD committed Dec 16, 2024
1 parent b16a30a commit d5d41b5
Show file tree
Hide file tree
Showing 3 changed files with 740 additions and 6 deletions.
312 changes: 312 additions & 0 deletions examples/shells/dynamics/composite/free_vibration/make_reddy_chao_Q.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,312 @@
element_type = "S4R5"
n = 8
aspect = 10
thickness = 0.3 / aspect
definition =
"""
*Heading
** Job name: reddy_chao-Q-n=8 Model name: Model-Q
** Generated by: Abaqus/CAE 2023
*Preprint, echo=NO, model=NO, history=NO, contact=NO
**
** PARTS
**
*Part, name=Part-1
*Node
1, -281.25, 24.7000008, 0.
2, -281.220001, 24.7000008, 0.
3, -281.190002, 24.7000008, 0.
4, -281.160004, 24.7000008, 0.
5, -281.130005, 24.7000008, 0.
6, -281.100006, 24.7000008, 0.
7, -281.070007, 24.7000008, 0.
8, -281.040009, 24.7000008, 0.
9, -281.01001, 24.7000008, 0.
10, -280.980011, 24.7000008, 0.
11, -280.950012, 24.7000008, 0.
12, -281.25, 24.7299995, 0.
13, -281.220001, 24.7299995, 0.
14, -281.190002, 24.7299995, 0.
15, -281.160004, 24.7299995, 0.
16, -281.130005, 24.7299995, 0.
17, -281.100006, 24.7299995, 0.
18, -281.070007, 24.7299995, 0.
19, -281.040009, 24.7299995, 0.
20, -281.01001, 24.7299995, 0.
21, -280.980011, 24.7299995, 0.
22, -280.950012, 24.7299995, 0.
23, -281.25, 24.7600002, 0.
24, -281.220001, 24.7600002, 0.
25, -281.190002, 24.7600002, 0.
26, -281.160004, 24.7600002, 0.
27, -281.130005, 24.7600002, 0.
28, -281.100006, 24.7600002, 0.
29, -281.070007, 24.7600002, 0.
30, -281.040009, 24.7600002, 0.
31, -281.01001, 24.7600002, 0.
32, -280.980011, 24.7600002, 0.
33, -280.950012, 24.7600002, 0.
34, -281.25, 24.7900009, 0.
35, -281.220001, 24.7900009, 0.
36, -281.190002, 24.7900009, 0.
37, -281.160004, 24.7900009, 0.
38, -281.130005, 24.7900009, 0.
39, -281.100006, 24.7900009, 0.
40, -281.070007, 24.7900009, 0.
41, -281.040009, 24.7900009, 0.
42, -281.01001, 24.7900009, 0.
43, -280.980011, 24.7900009, 0.
44, -280.950012, 24.7900009, 0.
45, -281.25, 24.8199997, 0.
46, -281.220001, 24.8199997, 0.
47, -281.190002, 24.8199997, 0.
48, -281.160004, 24.8199997, 0.
49, -281.130005, 24.8199997, 0.
50, -281.100006, 24.8199997, 0.
51, -281.070007, 24.8199997, 0.
52, -281.040009, 24.8199997, 0.
53, -281.01001, 24.8199997, 0.
54, -280.980011, 24.8199997, 0.
55, -280.950012, 24.8199997, 0.
56, -281.25, 24.8500004, 0.
57, -281.220001, 24.8500004, 0.
58, -281.190002, 24.8500004, 0.
59, -281.160004, 24.8500004, 0.
60, -281.130005, 24.8500004, 0.
61, -281.100006, 24.8500004, 0.
62, -281.070007, 24.8500004, 0.
63, -281.040009, 24.8500004, 0.
64, -281.01001, 24.8500004, 0.
65, -280.980011, 24.8500004, 0.
66, -280.950012, 24.8500004, 0.
67, -281.25, 24.8799992, 0.
68, -281.220001, 24.8799992, 0.
69, -281.190002, 24.8799992, 0.
70, -281.160004, 24.8799992, 0.
71, -281.130005, 24.8799992, 0.
72, -281.100006, 24.8799992, 0.
73, -281.070007, 24.8799992, 0.
74, -281.040009, 24.8799992, 0.
75, -281.01001, 24.8799992, 0.
76, -280.980011, 24.8799992, 0.
77, -280.950012, 24.8799992, 0.
78, -281.25, 24.9099998, 0.
79, -281.220001, 24.9099998, 0.
80, -281.190002, 24.9099998, 0.
81, -281.160004, 24.9099998, 0.
82, -281.130005, 24.9099998, 0.
83, -281.100006, 24.9099998, 0.
84, -281.070007, 24.9099998, 0.
85, -281.040009, 24.9099998, 0.
86, -281.01001, 24.9099998, 0.
87, -280.980011, 24.9099998, 0.
88, -280.950012, 24.9099998, 0.
89, -281.25, 24.9400005, 0.
90, -281.220001, 24.9400005, 0.
91, -281.190002, 24.9400005, 0.
92, -281.160004, 24.9400005, 0.
93, -281.130005, 24.9400005, 0.
94, -281.100006, 24.9400005, 0.
95, -281.070007, 24.9400005, 0.
96, -281.040009, 24.9400005, 0.
97, -281.01001, 24.9400005, 0.
98, -280.980011, 24.9400005, 0.
99, -280.950012, 24.9400005, 0.
100, -281.25, 24.9699993, 0.
101, -281.220001, 24.9699993, 0.
102, -281.190002, 24.9699993, 0.
103, -281.160004, 24.9699993, 0.
104, -281.130005, 24.9699993, 0.
105, -281.100006, 24.9699993, 0.
106, -281.070007, 24.9699993, 0.
107, -281.040009, 24.9699993, 0.
108, -281.01001, 24.9699993, 0.
109, -280.980011, 24.9699993, 0.
110, -280.950012, 24.9699993, 0.
111, -281.25, 25., 0.
112, -281.220001, 25., 0.
113, -281.190002, 25., 0.
114, -281.160004, 25., 0.
115, -281.130005, 25., 0.
116, -281.100006, 25., 0.
117, -281.070007, 25., 0.
118, -281.040009, 25., 0.
119, -281.01001, 25., 0.
120, -280.980011, 25., 0.
121, -280.950012, 25., 0.
*Element, type=$(element_type)
1, 1, 2, 13, 12
2, 2, 3, 14, 13
3, 3, 4, 15, 14
4, 4, 5, 16, 15
5, 5, 6, 17, 16
6, 6, 7, 18, 17
7, 7, 8, 19, 18
8, 8, 9, 20, 19
9, 9, 10, 21, 20
10, 10, 11, 22, 21
11, 12, 13, 24, 23
12, 13, 14, 25, 24
13, 14, 15, 26, 25
14, 15, 16, 27, 26
15, 16, 17, 28, 27
16, 17, 18, 29, 28
17, 18, 19, 30, 29
18, 19, 20, 31, 30
19, 20, 21, 32, 31
20, 21, 22, 33, 32
21, 23, 24, 35, 34
22, 24, 25, 36, 35
23, 25, 26, 37, 36
24, 26, 27, 38, 37
25, 27, 28, 39, 38
26, 28, 29, 40, 39
27, 29, 30, 41, 40
28, 30, 31, 42, 41
29, 31, 32, 43, 42
30, 32, 33, 44, 43
31, 34, 35, 46, 45
32, 35, 36, 47, 46
33, 36, 37, 48, 47
34, 37, 38, 49, 48
35, 38, 39, 50, 49
36, 39, 40, 51, 50
37, 40, 41, 52, 51
38, 41, 42, 53, 52
39, 42, 43, 54, 53
40, 43, 44, 55, 54
41, 45, 46, 57, 56
42, 46, 47, 58, 57
43, 47, 48, 59, 58
44, 48, 49, 60, 59
45, 49, 50, 61, 60
46, 50, 51, 62, 61
47, 51, 52, 63, 62
48, 52, 53, 64, 63
49, 53, 54, 65, 64
50, 54, 55, 66, 65
51, 56, 57, 68, 67
52, 57, 58, 69, 68
53, 58, 59, 70, 69
54, 59, 60, 71, 70
55, 60, 61, 72, 71
56, 61, 62, 73, 72
57, 62, 63, 74, 73
58, 63, 64, 75, 74
59, 64, 65, 76, 75
60, 65, 66, 77, 76
61, 67, 68, 79, 78
62, 68, 69, 80, 79
63, 69, 70, 81, 80
64, 70, 71, 82, 81
65, 71, 72, 83, 82
66, 72, 73, 84, 83
67, 73, 74, 85, 84
68, 74, 75, 86, 85
69, 75, 76, 87, 86
70, 76, 77, 88, 87
71, 78, 79, 90, 89
72, 79, 80, 91, 90
73, 80, 81, 92, 91
74, 81, 82, 93, 92
75, 82, 83, 94, 93
76, 83, 84, 95, 94
77, 84, 85, 96, 95
78, 85, 86, 97, 96
79, 86, 87, 98, 97
80, 87, 88, 99, 98
81, 89, 90, 101, 100
82, 90, 91, 102, 101
83, 91, 92, 103, 102
84, 92, 93, 104, 103
85, 93, 94, 105, 104
86, 94, 95, 106, 105
87, 95, 96, 107, 106
88, 96, 97, 108, 107
89, 97, 98, 109, 108
90, 98, 99, 110, 109
91, 100, 101, 112, 111
92, 101, 102, 113, 112
93, 102, 103, 114, 113
94, 103, 104, 115, 114
95, 104, 105, 116, 115
96, 105, 106, 117, 116
97, 106, 107, 118, 117
98, 107, 108, 119, 118
99, 108, 109, 120, 119
100, 109, 110, 121, 120
*Orientation, name=Ori-1
1., 0., 0., 0., 1., 0.
3, 0.
** Region: (CompositeLayup-1-1: Generated From Layup)
*Elset, elset=CompositeLayup-1-1, generate
1, 100, 1
** Section: CompositeLayup-1-1
*Shell Section, elset=CompositeLayup-1-1, composite, orientation=Ori-1, layup=CompositeLayup-1
$(thickness/4), 3, Material-1, 0., Ply-1
$(thickness/2), 3, Material-1, 90., Ply-2
$(thickness/4), 3, Material-1, 0., Ply-3
*End Part
**
**
** ASSEMBLY
**
*Assembly, name=Assembly
**
*Instance, name=Part-1-1, part=Part-1
281.25, -25., 0.
*End Instance
**
*Nset, nset=Set-1, instance=Part-1-1
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 22, 23, 33, 34
44, 45, 55, 56, 66, 67, 77, 78, 88, 89, 99, 100, 110, 111, 112, 113
114, 115, 116, 117, 118, 119, 120, 121
*Elset, elset=Set-1, instance=Part-1-1
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 20, 21, 30, 31, 40
41, 50, 51, 60, 61, 70, 71, 80, 81, 90, 91, 92, 93, 94, 95, 96
97, 98, 99, 100
*End Assembly
**
** MATERIALS
**
*Material, name=Material-1
*Density
2250.,
*Elastic, type=LAMINA
1.2e+11, 3e+09, 0.25, 1.8e+09, 1.8e+09, 1.5e+09
** ----------------------------------------------------------------
**
** STEP: Step-1
**
*Step, name=Step-1, nlgeom=NO, perturbation
*Frequency, eigensolver=Lanczos, sim, acoustic coupling=on, normalization=mass
4, , , , ,
**
** BOUNDARY CONDITIONS
**
** Name: BC-1 Type: Displacement/Rotation
*Boundary
Set-1, 1, 1
Set-1, 2, 2
Set-1, 3, 3
**
** OUTPUT REQUESTS
**
*Restart, write, frequency=0
**
** FIELD OUTPUT: F-Output-1
**
*Output, field
*Node Output
U,
**
** HISTORY OUTPUT: H-Output-1
**
*Output, history
*Energy Output
ALLKE, ALLSE
*End Step
"""
open("reddy_chao_Q-aspect=$(aspect)-element_type=$(element_type)-n=$(n).inp", "w") do file
println(file, definition)
end
Loading

0 comments on commit d5d41b5

Please sign in to comment.