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.
Paraview recorder
Moderators: silvia, selimgunay, Moderators
Re: Paraview recorder
I'll attempt a minimal example using paraview.
Re: Paraview recorder
This will record nodal displacements and element stresses to vtk files in the `soilcolumn/` subdirectory.
Load `soilcolumn.pvd` into paraview
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')
Re: Paraview recorder
The PVD recorder will slow down the analysis significantly, so comment out the recorder command if you're not going to use it.