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 of Setting that 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 in DeckSettings (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: object

One include file: keyword is Elset, Nset or Surface; 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 with 03), node sets in the Assembly (04).

file: str
keyword: str
header: str
family: str
entries: list
property scope
class upxo.meshing.gbconformant.fm_steel_abaqus.extra_sets.ExtraSets(files: list = <factory>, skipped: list = <factory>, summary: dict = <factory>)[source]

Bases: object

What a provider returns: files (SetFile), skipped ({'name', 'family', 'reason'} for each set asked for and not written) and a summary dictionary stored with the deck.

files: list
skipped: list
summary: dict
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: object

What a provider is given: the deck’s mesh (compacted node numbering), the feature of every element, the hierarchy and the DeckSettings. mesh_voxel_length is the length of one raw voxel in mesh units, face_nodes the nodes on each box face and families the families wanted (None: all). identity is the IdentityMap of the meshed grains (None when not at hand). cache is free for the provider’s use during one request.

points: ndarray
elements: ndarray
assigned: ndarray
hierarchy: object
settings: object
mesh_voxel_length: float = 1.0
face_nodes: dict
families: object = None
cache: dict
identity: object = None
upxo.meshing.gbconformant.fm_steel_abaqus.extra_sets.load_provider(name)[source]

The provider module named name (a dotted module path), checked for extra_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).

upxo.meshing.gbconformant.fm_steel_abaqus.extra_sets.provider_problems(settings)[source]

What the provider finds wrong with the options in settings (empty when there is no provider).

upxo.meshing.gbconformant.fm_steel_abaqus.extra_sets.check_files(provider_name, result)[source]

Raise ValueError unless result is an ExtraSets whose files the writer can write.