OpenSeesPyAssistant 1.1
OpenSeesPy for everyone
SpringBasedElementSteelIShape Class Reference

Class that is the children of SpringBasedElement and combine the class SteelIShape (section) to retrieve the information needed. More...

Inheritance diagram for SpringBasedElementSteelIShape:
SpringBasedElement MemberModel

Public Member Functions

def __init__ (self, int iNode_ID, int jNode_ID, SteelIShape section, int geo_transf_ID, mat_ID_i=-1, mat_ID_j=-1, ele_ID=-1)
 Constructor of the class. More...
 
- Public Member Functions inherited from SpringBasedElement
def __init__ (self, int iNode_ID, int jNode_ID, A, E, Iy_mod, int geo_transf_ID, mat_ID_i=-1, mat_ID_j=-1, ele_ID=-1)
 Constructor of the class. More...
 
def CreateMember (self)
 Method that initialises the member by calling the OpenSeesPy commands through various functions. More...
 
def Record (self, str spring_or_element, str name_txt, str data_dir, force_rec=True, def_rec=True, time_rec=True)
 Implementation of the homonym abstract method. More...
 
def RecordNodeDef (self, str name_txt, str data_dir, time_rec=True)
 Implementation of the homonym abstract method. More...
 
def ReInit (self, ele_ID=-1)
 Implementation of the homonym abstract method. More...
 
def ShowInfo (self, plot=False, block=False)
 Implementation of the homonym abstract method. More...
 
def UpdateStoredData (self)
 Implementation of the homonym abstract method. More...
 
def Record (self, ele_ID, str name_txt, str data_dir, force_rec=True, def_rec=True, time_rec=True)
 Abstract method that records the forces, deformation and time of the member associated with the class. More...
 
def RecordNodeDef (self, int iNode_ID, int jNode_ID, str name_txt, str data_dir, time_rec=True)
 Abstract method that records the deformation and time of the member's nodes associated with the class. More...
 

Public Attributes

 section
 
 section_name_tag
 
- Public Attributes inherited from SpringBasedElement
 A
 
 data
 
 E
 
 ele_orientation
 
 element_array
 
 element_ID
 
 geo_transf_ID
 
 Initialized
 
 iNode_ID
 
 iNode_ID_spring
 
 iSpring_ID
 
 Iy_mod
 
 jNode_ID
 
 jNode_ID_spring
 
 jSpring_ID
 
 mat_ID_i
 
 mat_ID_j
 
 section_name_tag
 

Detailed Description

Class that is the children of SpringBasedElement and combine the class SteelIShape (section) to retrieve the information needed.


L_b is assumed the same for top and bottom springs.

Parameters
SpringBasedElementParent class.

Definition at line 854 of file MemberModel.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
int  iNode_ID,
int  jNode_ID,
SteelIShape  section,
int  geo_transf_ID,
  mat_ID_i = -1,
  mat_ID_j = -1,
  ele_ID = -1 
)

Constructor of the class.

Parameters
iNode_ID(int): ID of the first end node.
jNode_ID(int): ID of the second end node.
section(SteelIShape): SteelIShape section object.
geo_transf_ID(int): A geometric transformation (for more information, see OpenSeesPy documentation).
mat_ID_i(int, optional): ID of the material model for the spring in the node i (if present). Defaults to -1.
mat_ID_j(int, optional): ID of the material model for the spring in the node j (if present). Defaults to -1.
ele_ID(int, optional): Optional ID of the element. Defaults to -1, e.g. use IDConvention to define it.
Exceptions
NegativeValueID needs to be a positive integer.
NegativeValueID needs to be a positive integer.
NameErrorat least one spring needs to be defined.
NegativeValueID needs to be a positive integer.

Reimplemented from SpringBasedElement.

Definition at line 861 of file MemberModel.py.

861 def __init__(self, iNode_ID: int, jNode_ID: int, section: SteelIShape, geo_transf_ID: int, mat_ID_i=-1, mat_ID_j=-1, ele_ID = -1):
862 """
863 Constructor of the class.
864
865 @param iNode_ID (int): ID of the first end node.
866 @param jNode_ID (int): ID of the second end node.
867 @param section (SteelIShape): SteelIShape section object.
868 @param geo_transf_ID (int): A geometric transformation (for more information, see OpenSeesPy documentation).
869 @param mat_ID_i (int, optional): ID of the material model for the spring in the node i (if present). Defaults to -1.
870 @param mat_ID_j (int, optional): ID of the material model for the spring in the node j (if present). Defaults to -1.
871 @param ele_ID (int, optional): Optional ID of the element. Defaults to -1, e.g. use IDConvention to define it.
872
873 @exception NegativeValue: ID needs to be a positive integer.
874 @exception NegativeValue: ID needs to be a positive integer.
875 @exception NameError: at least one spring needs to be defined.
876 @exception NegativeValue: ID needs to be a positive integer.
877 """
878 self.section = deepcopy(section)
879 if mat_ID_i != -1 and mat_ID_i < 0: raise NegativeValue()
880 if mat_ID_j != -1 and mat_ID_j < 0: raise NegativeValue()
881 if mat_ID_i == -1 and mat_ID_j == -1: raise NameError("No springs defined for element ID = {}".format(IDConvention(iNode_ID, jNode_ID)))
882 if ele_ID != -1 and ele_ID < 0: raise NegativeValue()
883
884 super().__init__(iNode_ID, jNode_ID, section.A, section.E, section.Iy_mod, geo_transf_ID, mat_ID_i=mat_ID_i, mat_ID_j=mat_ID_j, ele_ID=ele_ID)
885 self.section_name_tag = section.name_tag
886 self.UpdateStoredData()
887 # Check length
888 self._CheckL()
889
890
def IDConvention(int prefix, int suffix, n_zeros_between=0)
Function used to construct IDs for elements and offgrid nodes.

Member Data Documentation

◆ section

section

Definition at line 878 of file MemberModel.py.

◆ section_name_tag

section_name_tag

Definition at line 885 of file MemberModel.py.


The documentation for this class was generated from the following file: