OpenSeesPyAssistant 1.1
OpenSeesPy for everyone
FunctionalFeatures.py File Reference

Go to the source code of this file.

Classes

class  IDGenerator
 Class that manage the ID generation. More...
 

Namespaces

namespace  FunctionalFeatures
 Module with useful functions (discretise curves, ID conventions, etc)
Carmine Schipani, 2021.
 

Functions

def DiscretizeLinearly (np.ndarray LP, int discr, plot=False, block=False, show_original_LP=True)
 This function discretize the curve 'LP' given adding the number of point given by 'discr' between every point (linearly). More...
 
def DiscretizeLoadProtocol (np.ndarray SDR_LP, np.ndarray nr_cycles_LP, int discr_first_cycle, plot=False, block=False, show_original_peaks=True)
 Discretized a cyclic load protocol keeping a similar discretisation step throughout the different cycles and keeping in the output the extremes (peaks). More...
 
def GridIDConvention (int pier_axis, int floor_axis, max_pier=-1, max_floor=-1)
 Function used to construct the ID of the nodes in the grid (first nodes that define the geometry of the model). More...
 
def IDConvention (int prefix, int suffix, n_zeros_between=0)
 Function used to construct IDs for elements and offgrid nodes. More...
 
def NodesOrientation (int iNode_ID, int jNode_ID)
 Function that finds the orientation of the vector with direction 'jNode_ID''iNode_ID'. More...
 
def OffsetNodeIDConvention (int node_ID, str orientation, str position_i_or_j)
 Function used to add node on top of existing ones in the extremes of memebers with springs. More...
 
def plot_member (list element_array, member_name="Member name not defined", show_element_ID=True, show_node_ID=True)
 Function that plots a set of elements. More...
 
def plot_nodes (list nodes_array, name="Not defined", show_node_ID=True)
 Function that plots a set of nodes. More...
 
def ProgressingPercentage (max_iter, int i, int next_step, step=10)
 Function that shows the progressing percentage of an iterative process. More...