zhuminjie / OpenSeesPy

OpenSeesPy versions, doc, and pip
Other
167 stars 66 forks source link

EnvelopeElement recorder cannot omit to record time #112

Closed wuch992006 closed 1 year ago

wuch992006 commented 1 year ago

Hello,

I use the EnvelopeElement recorder in my script. I attempt to ask the recorder refrain from recording time by not putting the '-time' option. I expect the recorder could not record time, but it still does. The command I put is: recorder('EnvelopeElement', '-file', 'output.txt', '-ele', 1, 'force')

The whole script is: `from openseespy.opensees import *

import numpy as np import matplotlib.pyplot as plt

------------------------------

Start of model generation

-----------------------------

remove existing model

wipe()

set modelbuilder

model('basic', '-ndm', 2, '-ndf', 2)

create nodes

node(1, 0.0, 0.0) node(2, 144.0, 0.0) node(3, 168.0, 0.0) node(4, 72.0, 96.0)

set boundary condition

fix(1, 1, 1) fix(2, 1, 1) fix(3, 1, 1)

define materials

uniaxialMaterial("Elastic", 1, 3000.0)

define elements

element("Truss",1,1,4,10.0,1) element("Truss",2,2,4,5.0,1) element("Truss",3,3,4,5.0,1)

create TimeSeries

timeSeries("Linear", 1)

create a plain load pattern

pattern("Plain", 1, 1)

Create the nodal load - command: load nodeID xForce yForce

load(4, 100.0, -50.0)

Define Recorder

recorder('EnvelopeElement', '-file', 'output.txt', '-ele', 1, 'force')

------------------------------

Start of analysis generation

------------------------------

create SOE

system("BandSPD")

create DOF number

numberer("RCM")

create constraint handler

constraints("Plain")

create integrator

integrator("LoadControl", 1.0)

create algorithm

algorithm("Linear")

create analysis object

analysis("Static")

perform the analysis

analyze(1)`

mhscott commented 1 year ago

Thanks, this is due to a bug. Fixed now and should available in the next pip version. https://github.com/OpenSees/OpenSees/commit/5dd66b70909f64428256a1bcb19bef4b1e685d6c