Kernel dead with node recorder

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
Ashok
Posts: 46
Joined: Tue Feb 19, 2019 8:59 pm
Location: IITM

Kernel dead with node recorder

Post by Ashok » Fri Mar 05, 2021 1:16 am

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.

mhscott
Posts: 569
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Kernel dead with node recorder

Post by mhscott » Fri Mar 05, 2021 7:11 am

Can you provide a minimum working example script that replicates the issue?

Ashok
Posts: 46
Joined: Tue Feb 19, 2019 8:59 pm
Location: IITM

Re: Kernel dead with node recorder

Post by Ashok » Fri Mar 05, 2021 10:27 pm

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

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()


Ashok
Posts: 46
Joined: Tue Feb 19, 2019 8:59 pm
Location: IITM

Re: Kernel dead with node recorder

Post by Ashok » Sat Mar 06, 2021 1:33 am

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')

Post Reply