Hello.
I commented because I do not know how to use the recorder command(envelope node,envelope element) and I can not output the data well.
I'll try to code it like this:
ops.recorder('EnvelopeNode','-file','Node_disp_max.csv','-timeSeries', 1 ,'-node',0,1,2,3,4,5,6,7,8,'-dof',1,'disp')
Then, a file named "Node_disp_max.csv" will be output.But it's empty inside.
Then edit as follows and run(Remove the - from '-file'.):
ops.recorder('EnvelopeNode','file','Node_disp_max.csv','-timeSeries', 1 ,'-node',0,1,2,3,4,5,6,7,8,'-dof',1,'disp')
Then the result is output to the csv file created in the first sentence.
Why doesn't the first statement print any results?
Please tell me how to output the analysis result at once using EnvelopeNode.
About recorder comands (EnvelopeNode)
Moderators: silvia, selimgunay, Moderators
Re: About recorder comands (EnvelopeNode)
Please post a minimal working example that demonstrates the issue.
https://portwooddigital.com/2021/07/01/ ... g-example/
https://portwooddigital.com/2021/07/01/ ... g-example/
Re: About recorder comands (EnvelopeNode)
import openseespy.opensees as ops
ops.wipe()
ops.model('basic','-ndm',3,'-ndf',6)
ops.node(0,0,0,0)
ops.node(1,0,0,0)
ops.node(2,0,3.0,0)
ops.node(3,0,6.0,0)
ops.node(4,0,9.0,0)
ops.node(5,0,12.0,0)
ops.node(6,0,15.0,0)
ops.node(7,0,18.0,0)
ops.node(8,0,21.0,0)
ops.fix(0,1,1,1,1,1,1)
ops.fix(1,0,1,1,1,1,1)
ops.fix(2,0,1,1,1,1,1)
ops.fix(3,0,1,1,1,1,1)
ops.fix(4,0,1,1,1,1,1)
ops.fix(5,0,1,1,1,1,1)
ops.fix(6,0,1,1,1,1,1)
ops.fix(7,0,1,1,1,1,1)
ops.fix(8,0,1,1,1,1,1)
ops.mass(2,8.43E+05)
ops.mass(3,8.43E+05)
ops.mass(4,8.43E+05)
ops.mass(5,8.33E+05)
ops.mass(6,8.33E+05)
ops.mass(7,8.33E+05)
ops.mass(8,8.82E+05)
ops.uniaxialMaterial('Elastic', 12 ,3.68E+09)
ops.uniaxialMaterial('Elastic', 23 ,2.61E+09)
ops.uniaxialMaterial('Elastic', 34 ,2.25E+09)
ops.uniaxialMaterial('Elastic', 45 ,2.07E+09)
ops.uniaxialMaterial('Elastic', 56 ,2.00E+09)
ops.uniaxialMaterial('Elastic', 67 ,1.82E+09)
ops.uniaxialMaterial('Elastic', 78 ,1.52E+09)
ops.element('YamamotoBiaxialHDR' , 0 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 1 , 0 , 1 , 1, 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 2 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 3 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 4 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 5 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 6 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 7 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 8 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 9 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 10 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 11 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 12 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 13 , 0 , 1 ,1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 14 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 15 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 16 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 17 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 18 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 19 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('twoNodeLink' , 20 , 1 , 2 , '-mat', 12 ,12 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 21 , 2 , 3 , '-mat', 23 ,23 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 22 , 3 , 4 , '-mat', 34 ,34 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 23 , 4 , 5 , '-mat', 45 ,45 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 24 , 5 , 6 , '-mat', 56 ,56 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 25 , 6 , 7 , '-mat', 67 ,67 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 26 , 7 , 8 , '-mat', 78 ,78 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.timeSeries ('Path', 1 ,'-filePath','elcentro.acc','-dt',0.02,'-factor',1)
ops.pattern ('UniformExcitation' ,1 ,1,'-accel',1)
ops.recorder('EnvelopeNode','file','Node_disp_max.csv','-time','-node',1,2,3,4,5,6,7,8,'-dof',1,'disp')
ops.wipeAnalysis()
ops.constraints("Transformation")
ops.numberer("Plain")
ops.system("BandGeneral")
ops.test('EnergyIncr',1.0e-8,10,0)
ops.algorithm("ModifiedNewton")
ops.integrator("Newmark",0.5,0.25)
ops.analysis("Transient")
ops.analyze(1000,0.02)
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
↑
I have entered the above information.
ops.wipe()
ops.model('basic','-ndm',3,'-ndf',6)
ops.node(0,0,0,0)
ops.node(1,0,0,0)
ops.node(2,0,3.0,0)
ops.node(3,0,6.0,0)
ops.node(4,0,9.0,0)
ops.node(5,0,12.0,0)
ops.node(6,0,15.0,0)
ops.node(7,0,18.0,0)
ops.node(8,0,21.0,0)
ops.fix(0,1,1,1,1,1,1)
ops.fix(1,0,1,1,1,1,1)
ops.fix(2,0,1,1,1,1,1)
ops.fix(3,0,1,1,1,1,1)
ops.fix(4,0,1,1,1,1,1)
ops.fix(5,0,1,1,1,1,1)
ops.fix(6,0,1,1,1,1,1)
ops.fix(7,0,1,1,1,1,1)
ops.fix(8,0,1,1,1,1,1)
ops.mass(2,8.43E+05)
ops.mass(3,8.43E+05)
ops.mass(4,8.43E+05)
ops.mass(5,8.33E+05)
ops.mass(6,8.33E+05)
ops.mass(7,8.33E+05)
ops.mass(8,8.82E+05)
ops.uniaxialMaterial('Elastic', 12 ,3.68E+09)
ops.uniaxialMaterial('Elastic', 23 ,2.61E+09)
ops.uniaxialMaterial('Elastic', 34 ,2.25E+09)
ops.uniaxialMaterial('Elastic', 45 ,2.07E+09)
ops.uniaxialMaterial('Elastic', 56 ,2.00E+09)
ops.uniaxialMaterial('Elastic', 67 ,1.82E+09)
ops.uniaxialMaterial('Elastic', 78 ,1.52E+09)
ops.element('YamamotoBiaxialHDR' , 0 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 1 , 0 , 1 , 1, 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 2 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 3 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 4 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 5 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 6 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 7 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 8 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 9 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 10 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 11 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 12 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 13 , 0 , 1 ,1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 14 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 15 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 16 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 17 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 18 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('YamamotoBiaxialHDR' , 19 , 0 , 1 , 1 , 0.8 , 0.015 , 0.141 ,'-coRS', 1.0 , 1.0 ,'-orient',0 ,0 ,1 ,1 ,0 ,0)
ops.element('twoNodeLink' , 20 , 1 , 2 , '-mat', 12 ,12 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 21 , 2 , 3 , '-mat', 23 ,23 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 22 , 3 , 4 , '-mat', 34 ,34 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 23 , 4 , 5 , '-mat', 45 ,45 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 24 , 5 , 6 , '-mat', 56 ,56 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 25 , 6 , 7 , '-mat', 67 ,67 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.element('twoNodeLink' , 26 , 7 , 8 , '-mat', 78 ,78 , '-dir', 2, 3 ,' -orient', 0, 0, 1)
ops.timeSeries ('Path', 1 ,'-filePath','elcentro.acc','-dt',0.02,'-factor',1)
ops.pattern ('UniformExcitation' ,1 ,1,'-accel',1)
ops.recorder('EnvelopeNode','file','Node_disp_max.csv','-time','-node',1,2,3,4,5,6,7,8,'-dof',1,'disp')
ops.wipeAnalysis()
ops.constraints("Transformation")
ops.numberer("Plain")
ops.system("BandGeneral")
ops.test('EnergyIncr',1.0e-8,10,0)
ops.algorithm("ModifiedNewton")
ops.integrator("Newmark",0.5,0.25)
ops.analysis("Transient")
ops.analyze(1000,0.02)
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
↑
I have entered the above information.