SubDyn: add nodal rotations to mode-shape JSON output for viz3Danim#3374
Open
RBergua wants to merge 4 commits into
Open
SubDyn: add nodal rotations to mode-shape JSON output for viz3Danim#3374RBergua wants to merge 4 commits into
RBergua wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is ready to be merged.
Feature or improvement description
Till now, SubDyn was writing down the nodal displacements for the mode shapes into the output JSON file if
OutCBModes = 1orOutFEMModes = 1.The code has now been modified to write down nodal rotations as well. This will allow in the future to rotate the beam cross-sections to visualize torsional modes in viz3Danim (https://github.com/ebranlard/viz3Danim).
For reference, the rotations use the same scaling factor as the translations.
Previous JSON file:

Updated JSON file:

This new format is compatible with the parser used in viz3Danim.
Related issue, if one exists
ebranlard/viz3Danim#7
Impacted areas of the software
SubDyn
Test results, if applicable
A verification was performed to ensure the proper behavior.
The mode shapes including displacements and rotations are shown for the first two bending modes of the cantilever beam described here: #2646 (comment)
The results from SubDyn are compared against an in-house FEM model labeled as “reference”.
In the below plots, all modal coordinates are normalized by the maximum translational displacement.
First vertical bending mode:

As expected, the mode shape corresponds to displacements in the vertical (z) direction and rotations around the y axis (pitch).
First horizontal bending mode:

As expected, the mode shape corresponds to displacements in the horizontal (y) direction, the corresponding rotations around the z axis (yaw) and rotations around the x axis (roll). The rotations around the x axis denote torsion around the beam longitudinal axis due to the mass eccentricity corresponding to the outer column (see system description for reference).