I am using node recorder as
"ops.recorder('Node','-file','disp.txt','-node',2,'-dof',1,'-disp')"
If I comment out this line code runs properly, but if I include this the message shows up - "kernel dead...."___"Restarting kernel"..
Did anyone face this issue..? Can you help me out..?
Thank you.
Kernel dead with node recorder
Moderators: silvia, selimgunay, Moderators
Re: Kernel dead with node recorder
Can you provide a minimum working example script that replicates the issue?
Re: Kernel dead with node recorder
Dear Prof.Scott,
This is just the python version of the uniaxial material test
https://opensees.berkeley.edu/OpenSees/ ... 3Q8uvDfkvo
The pattern cab be found in the same link (first line of the code).
This is the code
This is just the python version of the uniaxial material test
https://opensees.berkeley.edu/OpenSees/ ... 3Q8uvDfkvo
The pattern cab be found in the same link (first line of the code).
This is the code
Code: Select all
import openseespy.opensees as ops
import numpy as np
import matplotlib.pyplot as plt
ops.wipe()
ops.model('BasicBuilder','-ndm',1,'-ndf',1)
ops.node(1,0.0)
ops.node(2,1.0)
ops.fix(1,1)
ops.uniaxialMaterial('Concrete01',1,-5.0,-0.002,1.0,-0.004)
ops.element('Truss',1,1,2,1.0,1)
dt = 1
filename = 'pattern1.txt'
factor = 1
ops.timeSeries('Path',1,'-dt',1.0,'-filePath','pattern.txt','-factor',1.0)
print('reached')
ops.pattern('Plain',1,1)
ops.sp(2,1,1.0)
ops.recorder('Node','-file','disp.txt','-node',2,'-dof',1,'-disp')
ops.recorder('Element','-file','force.txt','-ele',1,'force')
ops.system('UmfPack')
ops.constraints('Penalty',1.0e12,1.0e12)
dl = dt
ops.integrator('LoadControl',dl,1,dl,dl)
ops.test('NormDispIncr',1.0e-6,10)
ops.algorithm('Newton')
ops.numberer('RCM')
ops.analysis('Static')
ops.analyze(10000)
disp = np.genfromtxt('disp.txt')
force = np.genfromtxt('force.txt')
plt.plot(disp,force)
plt.show()
Re: Kernel dead with node recorder
Sorry sir,
Problem solved. The "-" before the "-disp" caused the kernel to be dead. Now its working.
The correct command is:
ops.recorder('Node','-file','disp.txt','-node',2,'-dof',1,'disp')
Problem solved. The "-" before the "-disp" caused the kernel to be dead. Now its working.
The correct command is:
ops.recorder('Node','-file','disp.txt','-node',2,'-dof',1,'disp')