The Abaqus documentation, available here:
https://abaqus-docs.mit.edu/2017/English/SIMACAEMODRefMap/simamod-c-inpu...
states the following:
Certain keywords must be used in conjunction with other keywords; for example, the *ELASTIC and *DENSITY keywords must be used in conjunction with the *MATERIAL keyword. These related keywords must be grouped in a block in the input file; unrelated keywords cannot be specified within this block.
But, on an existing .inp file, how do I recognize the blocks?
I need to count them to use that number as input to the KeywordBlock object in CAE so that CAE will insert a KeywordBlock into the .inp file at the appropriate place (the appropriate place I know, but not its number).
Information about the KeywordBlock object is found here:
https://classes.engineering.wustl.edu/2009/spring/mase5513/abaqus/docs/v...
where they state:
Required Arguments. Position. An "Int" specifying the "position" of the keyword block after which the new block should be inserted.
So you see, I need to provide that number (the position), but just looking at the .inp file, I do not know how to recognize the blocks and thus I am unable to "count" them.
I have included and input file below, where I inserted the lines by trial and error (very time consuming).
I need to find the number of the *Buckle BLOCK to insert these lines:
*IMPERFECTION, FILE=2BarFrame, STEP=1
1,-0.10
Thank you!
*Heading
** Job name: 2BarFrame_Riks Model name: Model-1
** Generated by: Abaqus/CAE 2017
*Preprint, echo=NO, model=NO, history=NO, contact=NO
**
** PARTS
**
*Part, name=Part-1
*Node
1, -23., 23.
2, -23., 0.
3, -23.0300007, 23.
4, -22.9699993, 23.
5, 0., 23.
6, -23., 21.7894745
7, -23., 20.5789471
8, -23., 19.3684216
9, -23., 18.1578941
10, -23., 16.9473686
11, -23., 15.7368422
12, -23., 14.5263157
13, -23., 13.3157892
14, -23., 12.1052628
15, -23., 10.8947372
16, -23., 9.68421078
17, -23., 8.47368431
18, -23., 7.26315784
19, -23., 6.05263138
20, -23., 4.84210539
21, -23., 3.63157892
22, -23., 2.42105269
23, -23., 1.21052635
24, -1.20894742, 23.
25, -2.41789484, 23.
26, -3.62684202, 23.
27, -4.83578968, 23.
28, -6.04473686, 23.
29, -7.25368404, 23.
30, -8.46263123, 23.
31, -9.67157936, 23.
32, -10.8805265, 23.
33, -12.0894737, 23.
34, -13.2984209, 23.
35, -14.5073681, 23.
36, -15.7163162, 23.
37, -16.9252625, 23.
38, -18.1342106, 23.
39, -19.3431587, 23.
40, -20.5521049, 23.
41, -21.7610531, 23.
42, -23., 22.3947372
43, -23., 21.1842117
44, -23., 19.9736843
45, -23., 18.7631569
46, -23., 17.5526314
47, -23., 16.3421059
48, -23., 15.1315784
49, -23., 13.9210529
50, -23., 12.7105255
51, -23., 11.5
52, -23., 10.2894745
53, -23., 9.07894707
54, -23., 7.86842108
55, -23., 6.65789461
56, -23., 5.44736862
57, -23., 4.23684216
58, -23., 3.02631569
59, -23., 1.81578946
60, -23., 0.605263174
61, -23.0149994, 23.
62, -22.9850006, 23.
63, -0.60447371, 23.
64, -1.81342113, 23.
65, -3.02236843, 23.
66, -4.23131561, 23.
67, -5.44026327, 23.
68, -6.64921045, 23.
69, -7.85815763, 23.
70, -9.06710529, 23.
71, -10.2760525, 23.
72, -11.4850006, 23.
73, -12.6939468, 23.
74, -13.902895, 23.
75, -15.1118422, 23.
76, -16.3207893, 23.
77, -17.5297356, 23.
78, -18.7386856, 23.
79, -19.9476318, 23.
80, -21.1565781, 23.
81, -22.3655262, 23.
*Element, type=B22
1, 1, 42, 6
2, 6, 43, 7
3, 7, 44, 8
4, 8, 45, 9
5, 9, 46, 10
6, 10, 47, 11
7, 11, 48, 12
8, 12, 49, 13
9, 13, 50, 14
10, 14, 51, 15
11, 15, 52, 16
12, 16, 53, 17
13, 17, 54, 18
14, 18, 55, 19
15, 19, 56, 20
16, 20, 57, 21
17, 21, 58, 22
18, 22, 59, 23
19, 23, 60, 2
20, 1, 61, 3
21, 4, 62, 1
22, 5, 63, 24
23, 24, 64, 25
24, 25, 65, 26
25, 26, 66, 27
26, 27, 67, 28
27, 28, 68, 29
28, 29, 69, 30
29, 30, 70, 31
30, 31, 71, 32
31, 32, 72, 33
32, 33, 73, 34
33, 34, 74, 35
34, 35, 75, 36
35, 36, 76, 37
36, 37, 77, 38
37, 38, 78, 39
38, 39, 79, 40
39, 40, 80, 41
40, 41, 81, 4
*Nset, nset=Set-1, generate
1, 81, 1
*Elset, elset=Set-1, generate
1, 40, 1
** Section: Section-1 Profile: Profile-1
*Beam Section, elset=Set-1, material=Steel, poisson = 0.29, temperature=GRADIENTS, section=RECT
1., 0.0625
0.,0.,1.
*End Part
**
**
** ASSEMBLY
**
*Assembly, name=Assembly
**
*Instance, name=Part-1-1, part=Part-1
*End Instance
**
*Nset, nset=Set-1, instance=Part-1-1
2, 5
*Nset, nset=Set-2, instance=Part-1-1
4,
*End Assembly
**
** MATERIALS
**
*Material, name=Steel
*Elastic
3e+07, 0.29
**
** BOUNDARY CONDITIONS
**
** Name: BC-1 Type: Displacement/Rotation
*Boundary
Set-1, 1, 1
Set-1, 2, 2
** ----------------------------------------------------------------
**
** STEP: Step-2
**
*IMPERFECTION, FILE=2BarFrame, STEP=1
1,-0.10
*Step, name=Step-2, nlgeom=YES
*Static, riks
12., 12., 0.00012, , , Set-2, 2, 23.
**
** LOADS
**
** Name: Load-1 Type: Concentrated force
*Cload
Set-2, 2, -16.03
**
** OUTPUT REQUESTS
**
*Restart, write, frequency=0
**
** FIELD OUTPUT: F-Output-1
**
*Output, field, variable=PRESELECT
**
** HISTORY OUTPUT: H-Output-1
**
*Output, history
*Node Output, nset=Set-2
CF2, U1, U2, U3, UR1, UR2, UR3
*End Step