![]() |
OpenSeesPyAssistant 1.1
OpenSeesPy for everyone
|
Module with geometry templates (nodes and/or elements with associated fibers, material models, etc). More...
Functions | |
def | DefineFrameNodes (int n_hor_axis, int n_vert_axis, storey_width, storey_height, half_pz_height=np.array([]), origin=[0, 0], first_hor_axis=1, first_vert_axis=1, show_plot=True) |
Function that declares and initialises the grid nodes of a frame. More... | |
def | DefineFrameNodesAndElementsSteelIShape (int n_hor_axis, int n_vert_axis, storey_width, storey_height, list list_col, list list_beam, int geo_trans_ID, N_G=np.array([]), t_dp=np.array([]), L_b_col=np.array([]), L_b_beam=np.array([]), fix_support=True, show_plot=True, panel_zone=True) |
WIP (Work In Progress). More... | |
def | DefineSubassemblageNodes (beam_left_L_cl, beam_right_L_cl, col_top_L_cl, col_bottom_L_cl, depth_col, depth_beam, boundary_condition=True, show_plot=True) |
Function that declares and initialises the grid nodes of an interior subassemblage. More... | |
def | Initialize2DModel (data_dir="Results") |
Function that initialise the project creating the 2D model with 3 DOF per node and set up a directory for the results. More... | |
Module with geometry templates (nodes and/or elements with associated fibers, material models, etc).
Carmine Schipani, 2021
def GeometryTemplate.DefineFrameNodes | ( | int | n_hor_axis, |
int | n_vert_axis, | ||
storey_width, | |||
storey_height, | |||
half_pz_height = np.array([]) , |
|||
origin = [0, 0] , |
|||
first_hor_axis = 1 , |
|||
first_vert_axis = 1 , |
|||
show_plot = True |
|||
) |
Function that declares and initialises the grid nodes of a frame.
Option to offset the grid node of the panel zones with the master node of the panel zone being the grid one (top center one). The function can be used multiple times to create more complex geometries.
n_hor_axis | (int): Number of horizontal axis (or piers) for the grid of the frame. |
n_vert_axis | (int): Number of vertical axis (or floors) for the grid of the frame. |
storey_width | (float): Width of the bays. |
storey_height | (float): Height of the storeys. |
half_pz_height | (np.ndarray, optional): Array of 1 dimension with half the height of the panel zone for each floor. The first floor should be 0 (no panel zone in the support). Defaults to np.array([]), e.g. no panel zone. |
origin | (list, optional): List of two entry with the origin position. Defaults to [0, 0]. |
first_hor_axis | (int, optional): Number of the first pier. Defaults to 1. |
first_vert_axis | (int, optional): Number of the first floor. Defaults to 1. |
show_plot | (bool, optional): Option to show the plot of the nodes declared and initialised. Defaults to True. |
NegativeValue | n_hor_axis needs to be a positive integer. |
NegativeValue | n_vert_axis needs to be a positive integer. |
NegativeValue | storey_width needs to be positive. |
NegativeValue | storey_height needs to be positive. |
WrongDimension | origin has a dimension of 2. |
NegativeValue | first_hor_axis needs to be a positive integer. |
NegativeValue | first_vert_axis needs to be a positive integer. |
WrongDimension | size of half_pz_height needs to be equal to n_vert_axis, if different from 0. |
Definition at line 44 of file GeometryTemplate.py.
def GeometryTemplate.DefineFrameNodesAndElementsSteelIShape | ( | int | n_hor_axis, |
int | n_vert_axis, | ||
storey_width, | |||
storey_height, | |||
list | list_col, | ||
list | list_beam, | ||
int | geo_trans_ID, | ||
N_G = np.array([]) , |
|||
t_dp = np.array([]) , |
|||
L_b_col = np.array([]) , |
|||
L_b_beam = np.array([]) , |
|||
fix_support = True , |
|||
show_plot = True , |
|||
panel_zone = True |
|||
) |
WIP (Work In Progress).
Function that declares and initialises the grid nodes of a frame and the members using steel I shape SpringBasedElements. WARNING: Current limit of the geometry: n_hor_axis and n_vert_axis < 10; if exceeded, there are problems with the IDs (ID limit is exceeded, ~2.2e9). WARNING: if the section of the columns change, the function does not account for the splacing. Each colum section is defined from floor to floor; if there is a change in the column section, it happens right after the panel zone (not realistic but good enough for predesign). WIP: Solve ID limit for large building need implementations (for example the use of a different ID convention or the use of the class IDGenerator).
n_hor_axis | (int): Number of horizontal axis (or piers) for the grid of the frame. |
n_vert_axis | (int): Number of vertical axis (or floors) for the grid of the frame. |
storey_width | (float): Width of the bays. |
storey_height | (float): Height of the storeys. |
list_col | (list(SteelIShape)): List with the sections of the columns for every floor. |
list_beam | (list(SteelIShape)): List with the sections of the beams for every bay. |
geo_trans_ID | (int): The geometric transformation (for more information, see OpenSeesPy documentation). |
N_G | (np.ndarray, optional): Array of dimension 1 with the axial load for each column (starting at floor 2). Defaults to np.array([]), e.g. 0. |
t_dp | (np.ndarray, optional): Array of dimension 1 with the doubler plate thickness for each bay's beam. Defaults to np.array([]), e.g. 0. |
L_b_col | (np.ndarray, optional): Array of dimension 1 with the maxiaml unbraced lateral buckling length for each column. Defaults to np.array([]), e.g. -1. |
L_b_beam | (np.ndarray, optional): Array of dimension 1 with the maxiaml unbraced lateral buckling length for each beam. Defaults to np.array([]), e.g. -1. |
fix_support | (bool, optional): Option to fix the support of the frame. Defaults to True. |
show_plot | (bool, optional): Option to show the plot of the nodes declared and initialised. Defaults to True. |
panel_zone | (bool, optional): Option to add the panel zones in the model. Defaults to True. |
WrongDimension | N_G dimension needs to be equal to n_vert_axis-1, if different from 0. |
WrongDimension | t_dp dimension needs to be equal to n_vert_axis-1, if different from 0. |
WrongDimension | L_b_col dimension needs to be equal to n_vert_axis-1, if different from 0. |
WrongDimension | L_b_beam dimension needs to be equal to n_hor_axis-1, if different from 0. |
WrongDimension | list_col dimension needs to be equal to n_vert_axis-1. |
WrongDimension | list_beam dimension needs to be equal to n_vert_axis-1. |
NegativeValue | geo_trans_ID needs to be a positive integer. |
Definition at line 102 of file GeometryTemplate.py.
def GeometryTemplate.DefineSubassemblageNodes | ( | beam_left_L_cl, | |
beam_right_L_cl, | |||
col_top_L_cl, | |||
col_bottom_L_cl, | |||
depth_col, | |||
depth_beam, | |||
boundary_condition = True , |
|||
show_plot = True |
|||
) |
Function that declares and initialises the grid nodes of an interior subassemblage.
The panel zone geometry is defined by the two arguments depth_col and depth_beam.
beam_left_L_cl | (float): Centerline length of the left beam (excluding the panel zone). |
beam_right_L_cl | (float): Centerline length of the right beam (excluding the panle zone). |
col_top_L_cl | (float): Centerline length of the top column (excluding the panel zone). |
col_bottom_L_cl | (float): Centerline length of the bottom column (excluding the panel zone). |
depth_col | (float): Depth of the columns for the panel zone. |
depth_beam | (float): Depth of the beams for the panel zone. |
boundary_condition | (bool, optional): Option to set already the boundary condition (bottom column pinned, beams fix only y movement). Defaults to True. |
show_plot | (bool, optional): Option to show the plot of the nodes declared and initialised. Defaults to True. |
NegativeValue | beam_left_L_cl needs to be positive. |
NegativeValue | beam_right_L_cl needs to be positive. |
NegativeValue | col_top_L_cl needs to be positive. |
NegativeValue | col_bottom_L_cl needs to be positive. |
NegativeValue | depth_col needs to be positive. |
NegativeValue | depth_beam needs to be positive. |
Definition at line 207 of file GeometryTemplate.py.
def GeometryTemplate.Initialize2DModel | ( | data_dir = "Results" | ) |
Function that initialise the project creating the 2D model with 3 DOF per node and set up a directory for the results.
data_dir | (str, optional): Directory where the data will be stored. The function forces the user to define it just for good practice and consistency between projects. Defaults to "Results". |
Definition at line 25 of file GeometryTemplate.py.