How to Get Section Geometry

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

Moderators: silvia, selimgunay, Moderators

Post Reply
cslotboom
Posts: 10
Joined: Sun Sep 09, 2018 8:09 pm
Location: UBC

How to Get Section Geometry

Post by cslotboom »

I'm wondering if anyone knows of a convenient way to get the section geometry for an element already in a OpenSeesPy model.

I'm working on a few post-processing scripts for OpenSeesPy.
If I knew of a way to get section info about an element, it would be possible to plot thickened elements and do a whole host of other things.
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: How to Get Section Geometry

Post by mhscott »

There's not an easy way to get the section geometry from a fiber section. You can get the fiber locations and areas and make your best guess from there.
cslotboom
Posts: 10
Joined: Sun Sep 09, 2018 8:09 pm
Location: UBC

Re: How to Get Section Geometry

Post by cslotboom »

Hey Michael
Thanks for your response.

That makes sense - would that output would be through a recorder command, or is there any output command for fibre locations?
i.e. sectionFiber(eleTag, secNum) = [fibre_x, fibre_y, fibre_z]

What about non-fibre sections/elements?
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: How to Get Section Geometry

Post by mhscott »

There isn't a recorder option for the fiber locations and areas, but there could be. Can you create an "issue" at the OpenSees GitHub page?

https://github.com/OpenSees/OpenSees/issues
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: How to Get Section Geometry

Post by mhscott »

Christian,

I see that there's a "fiberData" option for the FiberSection2d and 3d recorders. That should do the trick, except you probably want to get the number of fibers too. I'll add that as a recorder option.

Michael
cslotboom
Posts: 10
Joined: Sun Sep 09, 2018 8:09 pm
Location: UBC

Re: How to Get Section Geometry

Post by cslotboom »

Hey Michael,

Thanks for your response on github and here. This works perfectly. I forgot you could use the eleResponse command with additional arguments.
For anyone else reading, the following command will do what I want.

out = op.eleResponse(1, 'section', '1', "fiberData" )

For most non-fiber elements we don't even input section dimensions, so manual input will be required either way to thicken elements.

C.
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: How to Get Section Geometry

Post by mhscott »

Do you divide the length of the returned vector by 5 in order to get the number of fibers? Seems dangerous :D
Post Reply