OpenSeesPyAssistant 1.1
OpenSeesPy for everyone
MemberModel Class Reference

Parent abstract class for the storage and manipulation of a member's information (mechanical and geometrical parameters, etc) and the initialisation in the model. More...

Inheritance diagram for MemberModel:
ElasticElement ForceBasedElement GIFBElement PanelZone SpringBasedElement ElasticElementSteelIShape ForceBasedElementFibersCircRCCircShape ForceBasedElementFibersIShapeSteelIShape ForceBasedElementFibersRectRCRectShape GIFBElementFibersCircRCCircShape GIFBElementFibersRectRCRectShape GIFBElementRCCircShape GIFBElementRCRectShape PanelZoneRCS PanelZoneSteelIShape SpringBasedElementModifiedIMKSteelIShape SpringBasedElementSteelIShape

Public Member Functions

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

Detailed Description

Parent abstract class for the storage and manipulation of a member's information (mechanical and geometrical parameters, etc) and the initialisation in the model.

Parameters
DataManagementParent abstract class.

Definition at line 22 of file MemberModel.py.

Member Function Documentation

◆ Record()

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.

Parameters
ele_ID(int): The ID of the element that will be recorded.
name_txt(str): Name of the recorded data (no .txt).
data_dir(str): Directory for the storage of data.
force_rec(bool, optional): Option to record the forces (Fx, Fy, Mz). Defaults to True.
def_rec(bool, optional): Option to record the deformation (theta) for ZeroLength element. Defaults to True.
time_rec(bool, optional): Option to record time. Defaults to True.

Reimplemented in PanelZone, ElasticElement, ForceBasedElement, GIFBElement, and SpringBasedElement.

Definition at line 29 of file MemberModel.py.

29 def Record(self, ele_ID, name_txt: str, data_dir: str, force_rec = True, def_rec = True, time_rec = True):
30 """
31 Abstract method that records the forces, deformation and time of the member associated with the class.
32
33 @param ele_ID (int): The ID of the element that will be recorded.
34 @param name_txt (str): Name of the recorded data (no .txt).
35 @param data_dir (str): Directory for the storage of data.
36 @param force_rec (bool, optional): Option to record the forces (Fx, Fy, Mz). Defaults to True.
37 @param def_rec (bool, optional): Option to record the deformation (theta) for ZeroLength element. Defaults to True.
38 @param time_rec (bool, optional): Option to record time. Defaults to True.
39 """
40 if self.Initialized:
41 if not os.path.exists(data_dir):
42 print("Folder {} not found in this directory; creating one".format(data_dir))
43 os.makedirs(data_dir)
44
45 if time_rec:
46 if force_rec:
47 recorder("Element", "-file", '{}/{}.txt'.format(data_dir, name_txt), "-time", "-ele", ele_ID, "force")
48 if def_rec:
49 recorder("Element", "-file", '{}/{}.txt'.format(data_dir, name_txt), "-time", "-ele", ele_ID, "deformation")
50 else:
51 if force_rec:
52 recorder("Element", "-file", '{}/{}.txt'.format(data_dir, name_txt), "-ele", ele_ID, "force")
53 if def_rec:
54 recorder("Element", "-file", '{}/{}.txt'.format(data_dir, name_txt), "-ele", ele_ID, "deformation")
55 else:
56 print("The element is not initialized (node and/or elements not created), ID = {}".format(ele_ID))
57

◆ RecordNodeDef()

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.

Parameters
iNode_ID(int): ID of the node i.
jNode_ID(int): ID of the node j.
name_txt(str): Name of the recorded data (no .txt).
data_dir(str): Directory for the storage of data.
time_rec(bool, optional): Option to record time. Defaults to True.

Reimplemented in PanelZone, ElasticElement, SpringBasedElement, ForceBasedElement, and GIFBElement.

Definition at line 59 of file MemberModel.py.

59 def RecordNodeDef(self, iNode_ID: int, jNode_ID: int, name_txt: str, data_dir: str, time_rec = True):
60 """
61 Abstract method that records the deformation and time of the member's nodes associated with the class.
62
63 @param iNode_ID (int): ID of the node i.
64 @param jNode_ID (int): ID of the node j.
65 @param name_txt (str): Name of the recorded data (no .txt).
66 @param data_dir (str): Directory for the storage of data.
67 @param time_rec (bool, optional): Option to record time. Defaults to True.
68 """
69 if self.Initialized:
70 if not os.path.exists(data_dir):
71 print("Folder {} not found in this directory; creating one".format(data_dir))
72 os.makedirs(data_dir)
73
74 if time_rec:
75 recorder("Node", "-file", '{}/{}.txt'.format(data_dir, name_txt), "-time", "-node", iNode_ID, jNode_ID, "-dof", 1, 2, 3, "disp")
76 else:
77 recorder("Node", "-file", '{}/{}.txt'.format(data_dir, name_txt), "-node", iNode_ID, jNode_ID, "-dof", 1, 2, 3, "disp")
78 else:
79 print("The element is not initialized (node and/or elements not created), iNode ID = {}, jNode ID = {}".format(iNode_ID, jNode_ID))
80
81

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