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 »

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: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Paraview recorder

Post by mhscott »

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 »

mhscott wrote: Tue Feb 28, 2023 6:56 am I'll attempt a minimal example using paraview.
Thank you very much!
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Paraview recorder

Post by mhscott »

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: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Paraview recorder

Post by mhscott »

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