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.CoordinateArray

Signature

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

Coordinate information specifying Degrees of Freedom (e.g. 101X+).

Use the coordinate_array helper function to create the array.

Attributes

NameSummary
data_dtypeBuilt-in mutable sequence.

data_dtype

Methods

NameSummary
absReturns a coordinate array with direction signs flipped positive
direction_string_arrayReturns a string array representation of the direction
find_indicesFinds the indices and signs of the specified coordinates
from_matlab_cellstrCreates a CoordinateArray from a matlab cellstring object loaded from scipy.io.loadmat
from_nodelistReturns a coordinate array with a set of nodes with a set of directions
local_directionReturns a local direction array
offset_node_idsReturns a copy of the CoordinateArray with the node IDs offset
signReturns the sign on the directions of the CoordinateArray
string_arrayReturns a string array representation of the coordinate array

abs

def sdynpy.CoordinateArray.abs(self)

Returns a coordinate array with direction signs flipped positive

direction_string_array

def sdynpy.CoordinateArray.direction_string_array(self)

Returns a string array representation of the direction

Returns

find_indices

def sdynpy.CoordinateArray.find_indices(self, coordinate)

Finds the indices and signs of the specified coordinates

Parameters

Returns

Raises

from_matlab_cellstr

def sdynpy.CoordinateArray.from_matlab_cellstr(cls, cellstr_data)

Creates a CoordinateArray from a matlab cellstring object loaded from scipy.io.loadmat

Parameters

Returns

from_nodelist

def sdynpy.CoordinateArray.from_nodelist(cls, nodes, directions=[1, 2, 3], flatten=True)

Returns a coordinate array with a set of nodes with a set of directions

Parameters

Returns

local_direction

def sdynpy.CoordinateArray.local_direction(self)

Returns a local direction array

Returns

offset_node_ids

def sdynpy.CoordinateArray.offset_node_ids(self, offset_value)

Returns a copy of the CoordinateArray with the node IDs offset

Parameters

Returns

sign

def sdynpy.CoordinateArray.sign(self)

Returns the sign on the directions of the CoordinateArray

string_array

def sdynpy.CoordinateArray.string_array(self)

Returns a string array representation of the coordinate array

Returns