Search found 6 matches

by vacalderon
Mon Nov 08, 2021 10:49 am
Forum: OpenSeesPy
Topic: Error log and breaking the analysis
Replies: 0
Views: 11282

Error log and breaking the analysis

Hello All,

I have been running a series of analysis using OpenSeesPy. Basically I transformed my model into a function so I can change the geometry and materials as I wish. I use this function inside a loop that iterates through geometrical variables and ground motion records. Every now and then I find an error and I would like to know if there is a way to for opensees to give me the type of error and print it out or store it as a string, and also which analysis had the error, to debug the code a bit more.

Something like:

If anyerror:
print(errortype)
print(analysisfilename)
print(groundmotionfilename)
break

I know the error prints to the console but I would like to obtain it from OpenSees and store any message within the code to build a database as opposed to having a big log print out.
by vacalderon
Tue Jul 06, 2021 6:02 am
Forum: OpenSeesPy
Topic: Stress Strain Not Working with OpenseesPy3.3.0
Replies: 8
Views: 10586

Re: Stress Strain Not Working with OpenseesPy3.3.0

Excellent Dr. Scott,

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

Un saludo!
by vacalderon
Fri Jul 02, 2021 1:22 pm
Forum: OpenSeesPy
Topic: Stress Strain Not Working with OpenseesPy3.3.0
Replies: 8
Views: 10586

Re: Stress Strain Not Working with OpenseesPy3.3.0

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.
by vacalderon
Wed Jun 30, 2021 10:47 am
Forum: OpenSeesPy
Topic: Stress Strain Not Working with OpenseesPy3.3.0
Replies: 8
Views: 10586

Re: Stress Strain Not Working with OpenseesPy3.3.0

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.
by vacalderon
Thu Jun 17, 2021 5:40 am
Forum: OpenSeesPy
Topic: Stress Strain Not Working with OpenseesPy3.3.0
Replies: 8
Views: 10586

Re: Stress Strain Not Working with OpenseesPy3.3.0

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
by vacalderon
Wed Jun 16, 2021 6:39 am
Forum: OpenSeesPy
Topic: Stress Strain Not Working with OpenseesPy3.3.0
Replies: 8
Views: 10586

Stress Strain Not Working with OpenseesPy3.3.0

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