[Solved] animate_deformedshape "Error"

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

Moderators: silvia, selimgunay, Moderators

Post Reply
Gaetanocmr
Posts: 6
Joined: Sat Nov 14, 2020 8:20 am
Location: University of Palermo
Contact:

[Solved] animate_deformedshape "Error"

Post by Gaetanocmr »

Hi everyone,
I'm trying to plot the animation of the deformed shape of my 2D structure, but I always got this error:

Code: Select all

  File "D:\Anaconda3\lib\site-packages\openseespy\postprocessing\Get_Rendering.py", line 819, in animate_deformedshape
    time, Disp = idbf._readNodeDispData(Model,LoadCase)

  File "D:\Anaconda3\lib\site-packages\openseespy\postprocessing\internal_database_functions.py", line 280, in _readNodeDispData
    Disp = np.transpose(np.loadtxt(NodeDispFile, dtype=float, delimiter=None, converters=None, unpack=True))

  File "D:\Anaconda3\lib\site-packages\numpy\lib\npyio.py", line 1139, in loadtxt
    for x in read_data(_loadtxt_chunksize):

  File "D:\Anaconda3\lib\site-packages\numpy\lib\npyio.py", line 1063, in read_data
    raise ValueError("Wrong number of columns at line %d"

ValueError: Wrong number of columns at line 405
I create the database with createODB before the main analysis with this command:

Code: Select all

opsplt.createODB('GA_modeling', 'push')
and after the analisys I use this one:

Code: Select all

ani = opsplt.animate_deformedshape(Model="GA_modeling", LoadCase="push", dt=0.01)
where the problem could be?
Last edited by Gaetanocmr on Wed Nov 18, 2020 7:30 am, edited 1 time in total.
👨🏽‍💻 Ph.D. Student in Structural Engineer
🇮🇹 University of Palermo
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: animate_deformedshape "Error"

Post by mhscott »

You may have to ops.wipe() your model before doing the animate??
Gaetanocmr
Posts: 6
Joined: Sat Nov 14, 2020 8:20 am
Location: University of Palermo
Contact:

Re: animate_deformedshape "Error"

Post by Gaetanocmr »

Thanks, that did the magic :D
👨🏽‍💻 Ph.D. Student in Structural Engineer
🇮🇹 University of Palermo
Post Reply