upxo.meshing.gbconformant.fm_steel_abaqus.parameters module
The quantities the before/after comparison can show, read from a Snapshot.
Each Parameter says what is plotted (one value per grain, per junction line or per boundary), which views
make sense and what a snapshot must hold. read() returns the values of one parameter in one snapshot as a
Series; matched_items() pairs two series by grain (or junction set) for the matched-change view.
Values stay in the snapshot’s output units; unit_factor() and choose_units() scale them for display.
Bases:
ValueErrorThe parameter cannot be read from this snapshot; the message says why.
- class upxo.meshing.gbconformant.fm_steel_abaqus.parameters.Parameter(key: 'str', label: 'str', group: 'str', dimension: 'str', noun: 'str', views: 'tuple' = ('distribution', 'matched'), needs_volume: 'bool' = False, description: 'str' = '')[source]
Bases:
object
- class upxo.meshing.gbconformant.fm_steel_abaqus.parameters.Series(values: ndarray, weights: ndarray | None = None, items: dict | None = None, noun: str = 'grains', dimension: str = 'length', y_kind: str = 'count', total: float | None = None, note: str = '', integer: bool = False)[source]
Bases:
objectThe values of one parameter in one snapshot.
- upxo.meshing.gbconformant.fm_steel_abaqus.parameters.read(parameter_, snapshot: Snapshot, *, normalisation='fraction of the boundary area', grain_weight='number of grains') Series[source]
The values of
parameter_insnapshot; raisesUnavailablewhen it has none.
- upxo.meshing.gbconformant.fm_steel_abaqus.parameters.available(parameter_, snapshot: Snapshot) str | None[source]
Why
parameter_cannot be read fromsnapshot, orNonewhen it can.
- upxo.meshing.gbconformant.fm_steel_abaqus.parameters.matched_items(before: Series, after: Series)[source]
(keys, before values, after values)for the items present on both sides, in key order.
- upxo.meshing.gbconformant.fm_steel_abaqus.parameters.unit_power(dimension: str, y_kind: str = 'count') int[source]
The power of a length that
dimensionis (0 for a number, an angle or a ratio).
- upxo.meshing.gbconformant.fm_steel_abaqus.parameters.unit_factor(power: int, source: str, target: str) float[source]
Factor converting a quantity of dimension length**power from
sourcetotargetunits.
- upxo.meshing.gbconformant.fm_steel_abaqus.parameters.choose_units(power: int, source: str, arrays) str[source]
The unit (of microns, mm, m) that gives the numbers of
arraysthe fewest digits, around 10.