Windows fatal exception: access violation
Moderators: silvia, selimgunay, Moderators
Windows fatal exception: access violation
Hi everyone, I've been doing some static pushover analysis and I'm getting this error:
Windows fatal exception: access violation
Main thread:
Current thread 0x00003a08 (most recent call first):
File "D:\Oscar\Maestr\xeda Estructuras Sismorresistentes\Tesis STMF\OpenSees\Pushover\RunPushover.py", line 147 in <module>
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 465 in exec_code
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 585 in runfile
File "C:\Users\Oscar\AppData\Local\Temp\ipykernel_3388\149753308.py", line 1 in <module>
Restarting kernel...
If anyone is familiar with it please let me know. I beliebe it has something to do with Python.
Thank you.
Windows fatal exception: access violation
Main thread:
Current thread 0x00003a08 (most recent call first):
File "D:\Oscar\Maestr\xeda Estructuras Sismorresistentes\Tesis STMF\OpenSees\Pushover\RunPushover.py", line 147 in <module>
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 465 in exec_code
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 585 in runfile
File "C:\Users\Oscar\AppData\Local\Temp\ipykernel_3388\149753308.py", line 1 in <module>
Restarting kernel...
If anyone is familiar with it please let me know. I beliebe it has something to do with Python.
Thank you.
Re: Windows fatal exception: access violation
Track down the line of code that causes the error
Re: Windows fatal exception: access violation
Can you make a minimal example that replicates the issue?
-
- Posts: 11
- Joined: Fri Jul 02, 2021 7:34 pm
Re: Windows fatal exception: access violation
This error can be due to so many things. Make a minimal example that replicates the issue.
-
- Posts: 11
- Joined: Fri Jul 02, 2021 7:34 pm
Re: Windows fatal exception: access violation
import openseespy.opensees as ops
import math
import matplotlib.pyplot as plt
import numpy as np
A = 1.0
E = 2.*10**11
Fy = 3.*10**10
Nsteps = 1000
Px = 0.0
Py = 0.0
mass = 1266514796.0*4
# set modelbuilder
ops.wipe()
ops.model('basic', '-ndm', 2, '-ndf', 2)
# create nodes
ops.node(1, 0.0, 0.0)
ops.node(2, 1.0, 0.0)
# set boundary condition
ops.fix(1, 1, 1)
ops.fix(2, 0, 1)
ops.mass(2, mass, 0.0)
ops.uniaxialMaterial('FlagShape', 1, E , Fy, 0.0, 0.25)
ops.element("Truss",1,1,2,A,1)
ops.timeSeries("Linear", 1)
# create a plain load pattern
ops.pattern("Plain", 1, 1)
ops.load(2, Px, Py)
ops.system("ProfileSPD")
ops.numberer("Plain")
ops.constraints("Plain")
ops.integrator("LoadControl", 1.0/Nsteps)
ops.algorithm("Newton")
ops.test('NormUnbalance',1e-8, 10)
ops.analysis("Static")
ops.loadConst('-time', 0.0)
ops.timeSeries('Path', 2, '-dt', 0.01, '-filePath', 'Northridge Beverly.dat', '-factor', 9.81)
ops.pattern('UniformExcitation', 2, 2,'-accel', 2)
freq = ops.eigen('-fullGenLapack', 1)[0]**0.5
dampRatio = 0.05
Kcomm = (2*dampRatio)/freq
ops.rayleigh(0., 0., 0. , Kcomm)
period = (2*(math.pi))/freq
ops.wipeAnalysis()
ops.constraints('Plain')
ops.numberer('Plain')
ops.system('SparseSYM')
#ops.test('NormUnbalance',1e-8, 10)
ops.test('NormDispIncr', 1e-5, 1000)
ops.algorithm('KrylovNewton')
ops.integrator('Newmark', 0.5, 0.25)
ops.analysis('Transient')
ops.analyze(2999, 0.01)
ops.wipe()
running this example is popping up this error. When I try to fix the node two in Y direction it appears. I am not sure whether the applied earthquake load is in Y direction that's why or what. But running the same with static analysis and having load at Y direction doesn't cause this error.
Re: Windows fatal exception: access violation
When you fix all DOFs, there are no equations to solve. Most of the solvers will give an error. Try switching to UmfPack.
http://portwooddigital.com/2020/08/27/m ... -marplots/
http://portwooddigital.com/2020/08/27/m ... -marplots/