FieldOutputReader

class FieldOutputReader(logger=None)[source]

Reads field outputs and prepares data for the latter computation

Methods

__init__([logger])

Reads field outputs and prepares data for the latter computation

create_node_label_to_bulk_data_mapping(...)

Create a dictionary mapping node labels to data

extract_integration_points_values(...)

Read integration point values and put them into:

map_nodes_to_element_nodal(...)

Map data given at nodes to element nodes.

set_element_type(element_type)

Define the element type

set_fo_S(fo_S)

Set the stress field output

set_fo_U(fo_U)

Set the displacement field output

set_fo_e(fo_e)

Set the energy density field output

set_odb_inst(odb_inst)

Set the odb instance

Attributes

S_at_int_points

Array of shape (num_elem, ips, 2/3, 2/3) containing the stress tensors at ips integration point for the defined element type.

S_el_labels

Array of shape (num_elem,) containing the element labels of the defined element type.

S_mask

Mask for S_el_labels and S_at_int_points such that the masked data correspond to el_labels

U_at_nodes

Array of shape (num_elem, n, 3/2) containing the displacements of the defined element type.

U_at_nodes_for_type

Dictionary mapping the element type to an array of shape (num_elem, n, 3/2) containing the displacements.

U_el_labels

Array of shape (num_elem,) containing the element labels of the defined element type.

U_el_labels_for_type

Array of shape (num_elem,) containing the element labels of the defined element type.

U_mask

Mask for U_el_labels and U_at_nodes such that the masked data correspond to el_labels

X_at_nodes

Array of shape (num_elem, n, 3/2) containing the coordinates of the defined element type.

X_at_nodes_for_type

Dictionary mapping the element type to an array of shape (num_elem, n, 3/2) containing the coordinates.

X_el_labels

Array of shape (num_elem,) containing the element labels of the defined element type Element labels are in the same order as in X_at_nodes.

X_el_labels_for_type

Dictionary mapping the element type to an array of shape (num_elem,) containing the element labels.

X_mask

Mask for X_el_labels and X_at_nodes such that the masked data correspond to el_labels

e_at_int_points

Array of shape (num_elem, ips) containing the energy densities at ips integration point for the defined element type.

e_el_labels

Array of shape (num_elem,) containing the element labels of the defined element type.

e_mask

Mask for e_el_labels and e_at_int_points such that the masked data correspond to el_labels

el_labels

Labels of elements for which all data are present

element_labels_to_node_labels

Dictionary that maps element labels to the node labels of the element.

element_labels_to_node_labels_for_type

Dictionary mapping the element type to a dictionary that maps element labels to the node labels of the element

element_type

Get the defined element type

fo_S

Get the stress field output at integration points of the defined instance and element type

fo_U

Get the displacement field output at nodes of the defined instance

fo_e

Get the energy density field output at integration points of the defined instance and element type

node_label_to_coordinates_mapping

Dictionary mapping node labels to coordinates of the nodes

odb_inst

Get the odb instance