pyOMA.core.PreProcessingTools.GeometryProcessor#

class pyOMA.core.PreProcessingTools.GeometryProcessor(nodes={}, lines=[], parent_childs=[])[source]#

Bases: object

conventions:

  • chan_dofs=[(chan, node, (x_amplif,y_amplif,z_amplif)),…]

  • channels = 0 … #, starting at channel 0, should be a complete sequence

  • nodes = 1 … #, starting at node 1, can be a sequence with missing entries

  • lines = [(node_start, node_end),…], unordered

  • parent_childs = [(node_parent, x_parent, y_parent, z_parent,

    node_child, x_child, y_child, z_child),…], unordered

Todo

  • change parent_child assignment to skewed coordinate

  • change parent_childs to az, elev

__init__(nodes={}, lines=[], parent_childs=[])[source]#

Methods

__init__([nodes, lines, parent_childs])

add_line(line)

add_lines(lines)

add_node(node_name, coordinate_list)

add_nodes(nodes)

add_parent_child(ms)

add_parent_childs(parent_childs)

lines_loader(filename)

lines file uses one header line tab-separated file nodenames are treated as strings

load_geometry(nodes_file[, lines_file, ...])

inititalizes a geometry object, to be passed along in the preprocessed data object

nodes_loader(filename)

nodes file uses one header line tab-separated file node is treated as a string x,y,z are treated as floats (in scientific format)

parent_childs_loader(filename)

lines file uses one header line tab-separated file nodenames are treated as strings amplification factors are treated as floats

rescale_geometry(factor)

take_line([line, line_ind])

take_node(node_name)

take_parent_child([ms, ms_ind])

static lines_loader(filename)[source]#

lines file uses one header line tab-separated file nodenames are treated as strings

classmethod load_geometry(nodes_file, lines_file=None, parent_childs_file=None)[source]#

inititalizes a geometry object, to be passed along in the preprocessed data object

static nodes_loader(filename)[source]#

nodes file uses one header line tab-separated file node is treated as a string x,y,z are treated as floats (in scientific format)

static parent_childs_loader(filename)[source]#

lines file uses one header line tab-separated file nodenames are treated as strings amplification factors are treated as floats