Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

sdynpy.NodeArray

Signature

class sdynpy.NodeArray(shape, buffer=None, offset=0, strides=None, order=None)

Node information array

Use the node_array helper function to create the array.

Attributes

NameSummary
data_dtypeBuilt-in mutable sequence.

data_dtype

Methods

NameSummary
by_gridSelects nodes in a grid
by_positionSelect node by closest position
from_unvLoad NodeArrays from universal file data from read_unv
global_coordinateGet the global coordinate of each node
project_to_minimum_planeProjects coordinates to a single best-fit plane
reduceKeep only nodes that are contained in node_list
triangulateCreates elements for a node set using Delaunay Triangulation

by_grid

def sdynpy.NodeArray.by_grid(self, grid_spacing, x_min=None, y_min=None, z_min=None, x_max=None, y_max=None, z_max=None)

Selects nodes in a grid

Parameters

Returns

by_position

def sdynpy.NodeArray.by_position(self, position_array)

Select node by closest position

Parameters

Returns

from_unv

def sdynpy.NodeArray.from_unv(unv_data_dict, combine=True)

Load NodeArrays from universal file data from read_unv

Parameters

Returns

global_coordinate

def sdynpy.NodeArray.global_coordinate(self, cs_array)

Get the global coordinate of each node

Parameters

Returns

project_to_minimum_plane

def sdynpy.NodeArray.project_to_minimum_plane(coordinates, return_3D=True)

Projects coordinates to a single best-fit plane

Parameters

Returns

reduce

def sdynpy.NodeArray.reduce(self, node_list)

Keep only nodes that are contained in node_list

Parameters

Returns

triangulate

def sdynpy.NodeArray.triangulate(self, cs_array, projection_function=None, return_element_array=True, element_color=1, condition_threshold=None)

Creates elements for a node set using Delaunay Triangulation

Parameters

Returns