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: 6
Joined: Mon Aug 28, 2017 2:09 pm
Location: North Carolina State University

Stress Strain Not Working with OpenseesPy3.3.0

Post by vacalderon »

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: 880
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 »

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

Thanks!
vacalderon
Posts: 6
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 »

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: 880
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 »

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: 6
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 »

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: 880
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 »

What element and section are you using? I didn't look at your scripts, I stay away from zip files.
vacalderon
Posts: 6
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 »

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: 880
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 »

Hello Victor,

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

You can use eleResponse until the update.

Michael
vacalderon
Posts: 6
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 »

Excellent Dr. Scott,

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

Un saludo!
Post Reply