libmesh icon indicating copy to clipboard operation
libmesh copied to clipboard

Abaqus mesh reader does not support combining element/node sets by name

Open jessecarterMOOSE opened this issue 3 years ago • 1 comments

In an Abaqus input mesh file, one can create a new nodeset by combining existing nodesets by just specifying the nodeset names. For example, if I have NodesetA and NodesetB, I can create a new nodeset (and similarly an element set) with the following:

*NSET, NSET=NodesetC
NodesetA, NodesetB

After a quick test, it doesn't appear that the Abaqus input reader currently supports this. What would it take? It seems the pertinent code is here for nodesets. My thinking is that, after the string_to_num function is called (which probably fails in this case because it can't convert NodesetA to an integer) the code should then look up if that nodeset is already defined, and if so, add those node ids to the new nodeset. Does this seem reasonable? If so how does one go about looking up available nodesets and getting node ids in this case? I could attempt a PR if I can get it figured out.

jessecarterMOOSE avatar Jul 25 '22 19:07 jessecarterMOOSE

Also tagging @roystgnr for this in case he's in there digging around for #3351

jessecarterMOOSE avatar Jul 27 '22 20:07 jessecarterMOOSE