Paraview recorder

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

Moderators: silvia, selimgunay, Moderators

Post Reply
MUz
Posts: 8
Joined: Fri Dec 30, 2022 2:55 am

Paraview recorder

Post by MUz » Mon Feb 27, 2023 2:41 pm

Hello,

I would like to visualize an OpenSeesPy geotechnical model (i.e., with UCSD quad materials plus constraints) in Paraview and have tried to implement the PVD recorder as indicated in the OpenSeesPy online documentation, but this does not go through as I receive a warning that "the PVD recorder cannot be read".

Would anyone be able to contribute a functioning example of OpenSeesPy code implementing the recorder?

Thanks.

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

Re: Paraview recorder

Post by mhscott » Tue Feb 28, 2023 6:56 am

I'll attempt a minimal example using paraview.

MUz
Posts: 8
Joined: Fri Dec 30, 2022 2:55 am

Re: Paraview recorder

Post by MUz » Wed Mar 01, 2023 11:59 pm

mhscott wrote:
Tue Feb 28, 2023 6:56 am
I'll attempt a minimal example using paraview.
Thank you very much!

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

Re: Paraview recorder

Post by mhscott » Sun Mar 12, 2023 1:35 pm

This will record nodal displacements and element stresses to vtk files in the `soilcolumn/` subdirectory.

Load `soilcolumn.pvd` into paraview

Code: Select all

import os
import openseespy.opensees as ops

#
# Define your model
#

# Create an output directory
filename = 'soilcolumn'
if not os.path.exists(filename):
    os.makedirs(filename)
ops.recorder('PVD', filename, 'disp', 'eleResponse','stresses')

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

Re: Paraview recorder

Post by mhscott » Sun Mar 12, 2023 2:03 pm

The PVD recorder will slow down the analysis significantly, so comment out the recorder command if you're not going to use it.

Post Reply