Search found 6 matches

by Gaetanocmr
Thu May 20, 2021 1:21 pm
Forum: OpenSeesPy
Topic: VTK recorder
Replies: 2
Views: 3876

Re: VTK recorder

Hello, I'm using the following command to create paraview file:

Code: Select all

ops.recorder('PVD', 'filename', '-precision', 10, '-dT', 0.0, *['disp', 'vel', 'accel', 'incrDisp', 'reaction', 'pressure', 'unbalancedLoad', 'mass', 'eigen', 3])
note that you have to create a blank file with the same filename and a folder with the same filename or you will get errors.
If you want to output the 'eigen' you need to do a modal analysis first.
By the way i'm also interested in creating a script that creates .vtk file, because I want to see in paraview stresses on elements.
For now I just saved the location of integration point of each element but i need the output of stresses and than create the file :cry:
by Gaetanocmr
Sat Feb 27, 2021 4:07 am
Forum: OpenSeesPy
Topic: Compile OpenSeespy for iOS
Replies: 0
Views: 6534

Compile OpenSeespy for iOS

Hello, I use openseespy for my research,
I use it on my laptop, on some Python web based platform and now I’m trying to run it on my iPad.
I use a Jupiter app for code on Python and I tried to install openseespy and openseespymac, but with no success, or at least they got installed but I got the error message that says something like “openseespy is not compiled for iOS”.
So I would like to ask how to compile OpenSeesPy and if it is possible to compile it for iOS.
Thanks
by Gaetanocmr
Wed Nov 18, 2020 7:30 am
Forum: OpenSeesPy
Topic: [Solved] animate_deformedshape "Error"
Replies: 2
Views: 3903

Re: animate_deformedshape "Error"

Thanks, that did the magic :D
by Gaetanocmr
Wed Nov 18, 2020 12:32 am
Forum: OpenSeesPy
Topic: [Solved] animate_deformedshape "Error"
Replies: 2
Views: 3903

[Solved] animate_deformedshape "Error"

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?
by Gaetanocmr
Mon Nov 16, 2020 3:07 am
Forum: OpenSeesPy
Topic: can't run
Replies: 4
Views: 6456

Re: can't run

mmmm, that's strange.
Are you using something like this for getting output?

Code: Select all

reactions('-dynamic', '-rayleight') 
nodeReaction(node, dof)
nodeDisp(node,dof)
if so, maybe you should check your model
by Gaetanocmr
Sat Nov 14, 2020 8:51 am
Forum: OpenSeesPy
Topic: can't run
Replies: 4
Views: 6456

Re: can't run

Did you set the recorder in your OpsPy model?