Implement base transformation from local to global for stress and strain tensors (shell elements) #19
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.
Problem Description
Radioss ANIM files show stress and strain results for shell elements in the element-local coordinate system, whereas LS-Dyna d3plot files expect these values to be expressed in the global coordinate system.
Currently, the
anim_to_d3plot.pyconverter extracts stress and strain data from Radioss results and passes them directly to the D3PLOT format, treating values expressed in the local element coordinate system as if they were in the global system.Without a proper transformation, the converted data is interpreted incorrectly in the d3plot file, leading to inconsistencies in visualization and analysis.
Solution
This pull request introduces the logic to convert stress and strain tensors from the local Radioss elemental system into the global coordinate system expected by LS-Dyna. This is done by:
Visual Demonstration
Here are two screenshots showing the changes introduced by these modifications, as visualized in HyperView and LS-PrePost.
Each comparison (in order on the screenshots) includes:
All are displayed in the global frame, with both X-stress and stress tensors shown.
Consistency Check
We can also observe consistent results in LS-PrePost, where the values now align with those shown in the ANIM file.