upxo.meshing.gbconformant.fm_steel_abaqus.extra_sets module
An optional provider of further element sets, node sets and surfaces for a deck.
A deck always gets the sets of element_sets. A provider is a module, named by
DeckSettings.set_provider (empty: none), that can add more. The deck writer checks the names and the
shape of what a provider returns, writes the sets in the deck’s include files, and records the provider’s name
and options in deck_info.json, so a deck says how it was made.
A provider module has
extra_sets(request) -> ExtraSets(required),SETTINGS: a tuple ofSettingthat it adds to the settings table (optional),options_from_config(config) -> dict: its options, read from a settings dictionary (optional),settings_problems(settings) -> list[str]: what is wrong with the options inDeckSettings(optional).
Element and node indices a provider returns are 0-based; a surface is (element indices, Abaqus face numbers).
- class upxo.meshing.gbconformant.fm_steel_abaqus.extra_sets.SetFile(file: str, keyword: str, header: str, family: str, entries: list = <factory>)[source]
Bases:
objectOne include file:
keywordisElset,NsetorSurface;entries[(name, ids)].For a surface the ids are
(element indices, Abaqus face numbers). Element sets and surfaces live in the Part (file names start with03), node sets in the Assembly (04).- property scope
- class upxo.meshing.gbconformant.fm_steel_abaqus.extra_sets.ExtraSets(files: list = <factory>, skipped: list = <factory>, summary: dict = <factory>)[source]
Bases:
objectWhat a provider returns:
files(SetFile),skipped({'name', 'family', 'reason'}for each set asked for and not written) and asummarydictionary stored with the deck.
- class upxo.meshing.gbconformant.fm_steel_abaqus.extra_sets.SetRequest(points: ndarray, elements: ndarray, assigned: ndarray, hierarchy: object, settings: object, mesh_voxel_length: float = 1.0, face_nodes: dict = <factory>, families: object = None, cache: dict = <factory>, identity: object = None)[source]
Bases:
objectWhat a provider is given: the deck’s mesh (compacted node numbering), the feature of every element, the hierarchy and the
DeckSettings.mesh_voxel_lengthis the length of one raw voxel in mesh units,face_nodesthe nodes on each box face andfamiliesthe families wanted (None: all).identityis theIdentityMapof the meshed grains (Nonewhen not at hand).cacheis free for the provider’s use during one request.
- upxo.meshing.gbconformant.fm_steel_abaqus.extra_sets.load_provider(name)[source]
The provider module named
name(a dotted module path), checked forextra_sets.
- upxo.meshing.gbconformant.fm_steel_abaqus.extra_sets.provider_options(name, config)[source]
The options the provider reads from
config({}when it has none).