User login

Navigation

You are here

How do I count Keyword Blocks in the Abaqus input file?

ebarbero's picture

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; forexample, 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 attached and input file (please change the extension to .inp). 

I need to find the number of the *Buckle BLOCK (line 173). Thank you!

ebarbero's picture

I tried counting the lines that start with a single *. Not high enough. 

I counted all the lines except nodals coordinates, elements, and comments. Too many. 

I counted all the lines except actual nodals coordinates (counted *nodes), element conectivities (counted*element), comments, and *end part, *end assembly, etc. Too many. 

What could it be? 

Subscribe to Comments for "How do I count Keyword Blocks in the Abaqus input file? "

Recent comments

More comments

Syndicate

Subscribe to Syndicate