sewkokot / opsvis

OpenSeesPy postprocessing and plotting module
GNU General Public License v3.0
35 stars 21 forks source link

Fix display of fixed supports for 2D models #18

Closed firai closed 2 years ago

firai commented 2 years ago

plot_supports_and_loads_2d() used the number of dimensions (ndim), which is 2 for 2D models by definition, to determine whether rotationally-restrained supports are possible, which led to all supports being displayed as triangles (pins). See https://github.com/sewkokot/opsvis/issues/17.

Revised to use the number of DOFs per node (ndofs) to determine whether rotationally-restrained supports are possible, so that fixed supports are displayed appropriately.

sewkokot commented 2 years ago

The algorithm for displaying supports has been improved in the current opsvis and will be further simplified as soon as the following PR https://github.com/OpenSees/OpenSees/pull/729 is merged. Let me know if it works now?