sdynpy.core.sdynpy_geometry

Objects and procedures to handle operations on test or model geometries

This module defines a Geometry object as well as all of the subcomponents of a geometry object: nodes, elements, tracelines and coordinate system. Geometry plotting is also handled in this module.

Copyright 2022 National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Functions

coordinate_system_array([id, name, color, ...])

Creates an array that specifies coordinate systems in the geometry

element_array([id, type, color, ...])

Creates an array that specifies elements in the geometry

from_exodus(exo[, blocks, local, ...])

Generate a geometry from exodus file data

from_imat_struct(imat_fem_struct)

Constructs a Geometry from an imat_fem class saved to a Matlab structure

from_uff(unv_dict)

Create a geometry from universal file format data from readunv

from_unv(unv_dict)

Create a geometry from universal file format data from readunv

global_coord(coordinate_system, local_coord)

Compute global coordinates from local coordinates

global_deflection(coordinate_system, ...[, ...])

Compute deflections in the global coordinate system

load(filename)

Loads a geometry from a numpy .npz or .unv file

local_coord(coordinate_system, global_coord)

Compute local coordinates from global coordinates

node_array([id, coordinate, color, def_cs, ...])

Creates an array that specifies nodes in the geometry

split_list(seq, value)

Splits a list by a value that exists in the list

traceline_array([id, description, color, ...])

Creates an array that specifies tracelines in the geometry

Classes

CoordinateSystemArray(shape[, buffer, ...])

Coordinate System Information specifying position and directions.

DeflectionShapePlotter(geometry, ...[, ...])

Class used to plot animated deflection shapes from spectra

ElementArray(shape[, buffer, offset, ...])

Element information array

Geometry([node, coordinate_system, ...])

Container for nodes, coordinate systems, tracelines, and elements

GeometryPlotter([show, app, window_size, ...])

Class used to plot geometry

NodeArray(shape[, buffer, offset, strides, ...])

Node information array

ShapePlotter(geometry, shapes, plot_kwargs)

Class used to plot animated shapes

TracelineArray(shape[, buffer, offset, ...])

Traceline information array

TransientPlotter(geometry, displacement_data)

Class used to plot transient deformations

id_map(from_ids, to_ids)

Class defining mapping between two sets of id numbers