![]() |
OpenSeesPyAssistant 1.1
OpenSeesPy for everyone
|
Module for the fibers (rectangular, circular and I shape). More...
Classes | |
class | Fibers |
Parent abstract class for the storage and manipulation of a fiber's information (mechanical and geometrical parameters, etc) and initialisation in the model. More... | |
class | FibersCirc |
Class that stores funcions, material properties, geometric and mechanical parameters for a circular RC fiber section. More... | |
class | FibersCircRCCircShape |
Class that is the children of FibersCirc and combine the class RCCircShape (section) to retrieve the information needed. More... | |
class | FibersIShape |
Class that stores funcions, material properties, geometric and mechanical parameters for a steel I shape (non double symmetric) fiber section. More... | |
class | FibersIShapeSteelIShape |
Class that is the children of FibersIShape and combine the class SteelIShape (section) to retrieve the information needed. More... | |
class | FibersRect |
Class that stores funcions, material properties, geometric and mechanical parameters for a rectangular RC fiber section. More... | |
class | FibersRectRCRectShape |
Class that is the children of FibersRect and combine the class RCRectShape (section) to retrieve the information needed. More... | |
Functions | |
def | create_fiber_section (fiber_info) |
Initialise fiber cross-section with OpenSeesPy commands. More... | |
def | plot_fiber_section (fiber_info, fill_shapes=True, matcolor=['#808080', '#D3D3D3', 'r', 'b', 'g', 'y']) |
Plot fiber cross-section. More... | |
Module for the fibers (rectangular, circular and I shape).
Carmine Schipani, 2021
def Fibers.create_fiber_section | ( | fiber_info | ) |
Initialise fiber cross-section with OpenSeesPy commands.
For examples, see plot_fiber_section. Inspired by fib_sec_list_to_cmds from ops_vis written by Seweryn Kokot
fiber_info | (list): List of lists (be careful with the local coordinate system!). The first list defines the fiber section: ['section', 'Fiber', ID, '-GJ', GJ] The other lists have one of the following format (coordinate input: (y, z)!): ['layer', 'bar', mat_ID, A, y, z] # one bar ['layer', 'straight', mat_ID, n_bars, A, yI, zI, yJ, zJ] # line range of bars (with I = first bar, J = last bar) ['layer', 'circ', mat_ID, n_bars, A, yC, zC, r, (a0_deg), (a1_deg)] # circular range of bars (with C = center, r = radius) ['patch', 'rect', mat_ID, *discr, -yI, zI, yK, -zK] # rectangle (with yI = yK = d/2; zI = zK = b/2) ['patch', 'quad', mat_ID, *discr, yI, zI, yJ, zJ, yK, zK, yL, zL] # quadrilateral shaped (starting from bottom left, counterclockwise: I, J, K, L) ['patch', 'circ', mat_ID, *discr, yC, zC, ri, re, (a0), (a1)] # (with C = center, ri = internal radius, re = external radius) |
Definition at line 857 of file Fibers.py.
def Fibers.plot_fiber_section | ( | fiber_info, | |
fill_shapes = True , |
|||
matcolor = ['#808080', '#D3D3D3', 'r', 'b', 'g', 'y'] |
|||
) |
Plot fiber cross-section.
Coordinate system used: plotting coordinte = (x, y), fiber section coordinate (z, y) = (-x, y)
Inspired by plot_fiber_section from ops_vis written by Seweryn Kokot.
fiber_info | (list): List of lists (be careful with the local coordinate system!). The first list defines the fiber section: ['section', 'Fiber', ID, '-GJ', GJ] The other lists have one of the following format (coordinate input: (y, z)!): ['layer', 'bar', mat_ID, A, y, z] # one bar ['layer', 'straight', mat_ID, n_bars, A, yI, zI, yJ, zJ] # line range of bars (with I = first bar, J = last bar) ['layer', 'circ', mat_ID, n_bars, A, yC, zC, r, (a0_deg), (a1_deg)] # circular range of bars (with C = center, r = radius) ['patch', 'rect', mat_ID, *discr, -yI, zI, yK, -zK] # rectangle (with yI = yK = d/2; zI = zK = b/2) ['patch', 'quad', mat_ID, *discr, yI, zI, yJ, zJ, yK, zK, yL, zL] # quadrilateral shaped (starting from bottom left, counterclockwise: I, J, K, L) ['patch', 'circ', mat_ID, *discr, yC, zC, ri, re, (a0), (a1)] # (with C = center, ri = internal radius, re = external radius) |
fill_shapes | (bool, optional): Option to fill fibers with color specified in matcolor. Defaults to True. |
matcolor | (list, optional): List of colors for various material IDs. Defaults to ['#808080', '#D3D3D3', 'r', 'b', 'g', 'y']. |
Example 1: Simple rectangle with 2 rebars (D = diameter) on top (e distance from the top and from the lateral borders). Rectangle with first corner = I (bottom right) and second corner = K (top left); number of fibers = discr (list of 2) fib_sec = [['section', 'Fiber', ID, '-GJ', GJ], ['patch', 'rect', concrete_mat_ID, *discr, yI, zI, yK, zK], ['layer', 'bar', bars_mat_ID, Ay, yI-e-D/2, zI-e-D/2], # left rebar ['layer', 'bar', bars_mat_ID, Ay, yI-e-D/2, -(zI-e-D/2)]] # right rebar
Example 2: double symmetric I shape. Each rectangle (2 flanges and 1 web): first corner = I (bottom right) and second corner = K (top left); number of fibers = discr (list of 2) fib_sec = [['section', 'Fiber', ID, '-GJ', GJ], ['patch', 'rect', mat_ID, *discr, yI_tf, zI_tf, yK_tf, zK_tf], # top flange ['patch', 'rect', mat_ID, *discr, yI_bf, zI_bf, yK_bf, zK_bf], # bottom flange ['patch', 'rect', mat_ID, *discr, yI_w, zI_w, yK_w, zK_w]] # web
Definition at line 673 of file Fibers.py.