upxo.meshing.gbconformant.fm_steel_abaqus.setnames module

Rules for the names of element sets, node sets and surfaces in a deck.

Abaqus reads names without regard to case, so es_pag_1 and ES_PAG_1 are the same set. A name here starts with a letter, holds only letters, digits, _ and -, and is at most 80 characters long. Element sets and surfaces live in the Part, node sets in the Assembly; within each of these a name may be used once.

exception upxo.meshing.gbconformant.fm_steel_abaqus.setnames.SetNameError(problems)[source]

Bases: ValueError

One or more set names break the naming rules or are used twice.

upxo.meshing.gbconformant.fm_steel_abaqus.setnames.name_problem(name, what='name') → str | None[source]

Why name cannot name a set, or None when it can.

upxo.meshing.gbconformant.fm_steel_abaqus.setnames.prefix_problem(prefix, longest_key=12, what='prefix') → str | None[source]

Why prefix cannot start set names, or None; longest_key is the longest text appended to it.

class upxo.meshing.gbconformant.fm_steel_abaqus.setnames.SetRegistry[source]

Bases: object

Collects every name a deck defines and the problems found; raise_problems() stops the export.

SCOPES = {'Elset': 'Part', 'Nset': 'Assembly', 'Surface': 'Part'}
add(keyword, name, origin)[source]
names(keyword)[source]
raise_problems()[source]
upxo.meshing.gbconformant.fm_steel_abaqus.setnames.settings_problems(settings) → list[str][source]

Problems with the names and prefixes typed into settings (export.DeckSettings), and with those a set provider checks.

Checks every typed name and prefix against the rules, and the typed full names against each other and against the fixed names of the deck. Names built from a prefix and a key are checked when the deck is written (they depend on the structure).