Different Section.

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
Ziad
Posts: 12
Joined: Fri Sep 22, 2023 6:38 am

Different Section.

Post by Ziad » Thu Nov 09, 2023 6:36 am

I am trying to model a 2D concreate wall with different thickness and an arc with a different thickness.
I wanted to know if I inputted my section in this way below is the correct way:

# Concrete Wall
LWallsecTag = 3
SWallsecTag = 4
ArcsecTag = 5

# Dimensions of wall that will be made as a column
# large width
LcolWidth = 1.1*m
# smaller width
ScolWidth = 0.9*m
# Arc Width
ArcWidth = 0.55*m
colDepth = 2*m
cover = 4*cm

# Area of steel for bar phi 18 mm
As = math.pi*(18*mm)**2/4

# some variables derived from the parameters for column partitioning
y1 = colDepth / 2.0
z1 = LcolWidth / 2.0

op.section('Fiber', LWallsecTag)

# Create the concrete core fibers
# patch('quad', matTag, numSubdivIJ, numSubdivJK, *crdsI, *crdsJ, *crdsK, *crdsL)
op.patch('rect', CoreConcmatTag, 14, 1, cover - y1, cover - z1, y1 - cover, z1 - cover)

# patch('quad', matTag, numSubdivIJ, numSubdivJK, *crdsI, *crdsJ, *crdsK, *crdsL)
# Create the concrete cover fibers (top, bottom, left, right)
op.patch('rect', CoverConcmatTag, 14, 1, -y1, z1 - cover, y1, z1)
op.patch('rect', CoverConcmatTag, 14, 1, -y1, -z1, y1, cover - z1)
op.patch('rect', CoverConcmatTag, 2, 1, -y1, cover - z1, cover - y1, z1 - cover)
op.patch('rect', CoverConcmatTag, 2, 1, y1 - cover, cover - z1, y1, z1 - cover)

# Create the reinforcing fibers (left, middle, right)
# layer('straight', matTag, numFiber, areaFiber, *start, *end)
op.layer('straight', SteelReinmatTag, 14, As, y1 - cover, z1 - cover, y1 - cover, cover - z1)
op.layer('straight', SteelReinmatTag, 2, As, 0.0, z1 - cover, 0.0, cover - z1)
op.layer('straight', SteelReinmatTag, 14, As, cover - y1, z1 - cover, cover - y1, cover - z1)

# some variables derived from the parameters for column partitioning smaller wall
y1 = colDepth / 2.0
z1 = ScolWidth / 2.0

op.section('Fiber', SWallsecTag)

# Create the concrete core fibers
# patch('quad', matTag, numSubdivIJ, numSubdivJK, *crdsI, *crdsJ, *crdsK, *crdsL)
op.patch('rect', CoreConcmatTag, 14, 1, cover - y1, cover - z1, y1 - cover, z1 - cover)

# patch('quad', matTag, numSubdivIJ, numSubdivJK, *crdsI, *crdsJ, *crdsK, *crdsL)
# Create the concrete cover fibers (top, bottom, left, right)
op.patch('rect', CoverConcmatTag, 14, 1, -y1, z1 - cover, y1, z1)
op.patch('rect', CoverConcmatTag, 14, 1, -y1, -z1, y1, cover - z1)
op.patch('rect', CoverConcmatTag, 2, 1, -y1, cover - z1, cover - y1, z1 - cover)
op.patch('rect', CoverConcmatTag, 2, 1, y1 - cover, cover - z1, y1, z1 - cover)

# Create the reinforcing fibers (left, middle, right)
# layer('straight', matTag, numFiber, areaFiber, *start, *end)
op.layer('straight', SteelReinmatTag, 14, As, y1 - cover, z1 - cover, y1 - cover, cover - z1)
op.layer('straight', SteelReinmatTag, 2, As, 0.0, z1 - cover, 0.0, cover - z1)
op.layer('straight', SteelReinmatTag, 14, As, cover - y1, z1 - cover, cover - y1, cover - z1)

# some variables derived from the parameters for Arc
y1 = colDepth / 2.0
z1 = ArcWidth / 2.0

op.section('Fiber', ArcsecTag)

# Create the concrete core fibers
# patch('quad', matTag, numSubdivIJ, numSubdivJK, *crdsI, *crdsJ, *crdsK, *crdsL)
op.patch('rect', CoreConcmatTag, 14, 1, cover - y1, cover - z1, y1 - cover, z1 - cover)

# patch('quad', matTag, numSubdivIJ, numSubdivJK, *crdsI, *crdsJ, *crdsK, *crdsL)
# Create the concrete cover fibers (top, bottom, left, right)
op.patch('rect', CoverConcmatTag, 14, 1, -y1, z1 - cover, y1, z1)
op.patch('rect', CoverConcmatTag, 14, 1, -y1, -z1, y1, cover - z1)
op.patch('rect', CoverConcmatTag, 2, 1, -y1, cover - z1, cover - y1, z1 - cover)
op.patch('rect', CoverConcmatTag, 2, 1, y1 - cover, cover - z1, y1, z1 - cover)

# Create the reinforcing fibers (left, middle, right)
# layer('straight', matTag, numFiber, areaFiber, *start, *end)
op.layer('straight', SteelReinmatTag, 14, As, y1 - cover, z1 - cover, y1 - cover, cover - z1)
op.layer('straight', SteelReinmatTag, 2, As, 0.0, z1 - cover, 0.0, cover - z1)
op.layer('straight', SteelReinmatTag, 14, As, cover - y1, z1 - cover, cover - y1, cover - z1)

Post Reply