Stress Strain Not Working with OpenseesPy3.3.0

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

Moderators: silvia, selimgunay, Moderators

Post Reply
vacalderon
Posts: 5
Joined: Mon Aug 28, 2017 2:09 pm
Location: North Carolina State University

Stress Strain Not Working with OpenseesPy3.3.0

Post by vacalderon » Wed Jun 16, 2021 6:39 am

Hello I am having trouble with the new version of OpenseesPy. I am trying to obtain stress strain data from a fiber section. My command looks like this:

recorder('Element', '-file', datadir + '/StressStrain.out', '-time', '-ele', 2, 'section', '1', 'fiber', str(Rbl), '0.0', 'mat', '3', 'stressStrain')

Let me know if the syntax changed or if I have a typo somewhere. All I get in my file is the time but no data on stress strain of the material. This used to work with the previous versions of OpenseesPy. If there's a way to go back to the previous version also let me know.

Best
Victor

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

Re: Stress Strain Not Working with OpenseesPy3.3.0

Post by mhscott » Wed Jun 16, 2021 7:26 pm

It should work. Can you send me a minimum working example in which the problem occurs?

Thanks!

vacalderon
Posts: 5
Joined: Mon Aug 28, 2017 2:09 pm
Location: North Carolina State University

Re: Stress Strain Not Working with OpenseesPy3.3.0

Post by vacalderon » Thu Jun 17, 2021 5:40 am

Hello Dr. Scott,

Yes it used to work, which is why I was surprised to see it not working. I sent you an email with the python scripts of a calibration file.

Thank you for any help. I appreciate it very much.

Best
Victor

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

Re: Stress Strain Not Working with OpenseesPy3.3.0

Post by mhscott » Fri Jun 18, 2021 3:02 pm

Can you remove 'mat' and see if it works?

'section',1,'fiber',Rbl,0.0,3,'stressStrain'

Also, you shouldn't need the quotres or str() around the numbers anymore with the new version of openseespy

vacalderon
Posts: 5
Joined: Mon Aug 28, 2017 2:09 pm
Location: North Carolina State University

Re: Stress Strain Not Working with OpenseesPy3.3.0

Post by vacalderon » Wed Jun 30, 2021 10:47 am

Hello Dr. Scott,

I tried without the quotes and removed '-mat', it still doesn't work with the new version. I am using the previous version that seems to be working well for now. I'll be on the look if the next update works with the stressStrain command.

Thank you for your help.

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

Re: Stress Strain Not Working with OpenseesPy3.3.0

Post by mhscott » Thu Jul 01, 2021 6:19 pm

What element and section are you using? I didn't look at your scripts, I stay away from zip files.

vacalderon
Posts: 5
Joined: Mon Aug 28, 2017 2:09 pm
Location: North Carolina State University

Re: Stress Strain Not Working with OpenseesPy3.3.0

Post by vacalderon » Fri Jul 02, 2021 1:22 pm

Hello Dr. Scott,

I sent you an email with the code without compressing it in a zip file. I am trying to obtain the stress strain in element 2, section1. The element is a ForceBeamColumn and the section is a Fiber section.

Thank you for your help.

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

Re: Stress Strain Not Working with OpenseesPy3.3.0

Post by mhscott » Sun Jul 04, 2021 6:16 am

Hello Victor,

It should be fixed now: https://github.com/OpenSees/OpenSees/pull/615

You can use eleResponse until the update.

Michael

vacalderon
Posts: 5
Joined: Mon Aug 28, 2017 2:09 pm
Location: North Carolina State University

Re: Stress Strain Not Working with OpenseesPy3.3.0

Post by vacalderon » Tue Jul 06, 2021 6:02 am

Excellent Dr. Scott,

Thank you for your help. I will use eleResponse :) .

Un saludo!

isabasu
Posts: 1
Joined: Wed Jul 14, 2021 10:52 pm
Contact:

Re: Stress Strain Not Working with OpenseesPy3.3.0

Post by isabasu » Wed Jul 14, 2021 11:03 pm

Hi, so I've encountered a problem with OpenseesPy3.3.0 when using the 3D differential view (strain). Has anyone experienced this before or have any suggestions on how to fix it? Thanks in advance, sorry if this is not a question for.
https://www.isabasu.com

Post Reply