SubDyn: add rectangular beam properties to JSON output #3195
+7
−1
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
SubDyn allows to model rectangular beam elements. Unfortunately, it’s not possible to visualize them with the 3D visualization tool from Emmanuel Branlard (https://ebranlard.github.io/viz3Danim/)
Currently, when rectangular beams are modeled in SubDyn (see for example: https://github.com/OpenFAST/r-test/blob/main/modules/subdyn/SD_CantileverBeam_Rectangular/SD_CantileverBeam_Rectangular.dat), and the user requests the JSON output files (i.e.,

OutCBModes= 1 and/orOutFEMModes= 1), SubDyn does not recognize the rectangular element and writes:Example of current visualization:

To visualize rectangular elements, it is necessary to update the “shape” value and add new keys like “SideA”, “SideB”, and “SideA_dir” instead of “Diam”. For reference, the “SideA_dir” key corresponds to a vector used to orientate the SideA of the rectangle (local beam x_e axis). In this case, we work with the “SideA_dir” instead of the spin angle (
MSpin) for simplicity. This “SideA_dir” is useful for SubDyn and HydroDyn as both modules use the same convention.Example of new output (SD_CantileverBeam_Rectangular.SD.CBmodes.json):

The current modification writes the necessary outputs and it does not break the current parser of viz3Danim.
Another PR has been opened at the viz3Danim side (ebranlard/viz3Danim#1) to visualize the rectangular elements.
