Skip to content

Fix the rotation of solid stresses and strains to the output coordinate system - #346

Merged
victorkemp merged 1 commit into
MystranSolver:devfrom
Copper280z:fix/solid-stress-output-cord
Oct 24, 2026
Merged

victorkemp merged 1 commit into
MystranSolver:devfrom
Copper280z:fix/solid-stress-output-cord

Conversation

@Copper280z

Copy link
Copy Markdown
Contributor

STR_TENSOR_TRANSFORM treated RCORD as the basic-to-output rotation, but RCORD holds output-to-basic. Solid stresses and strains requested in a rotated CORDM or STR_CID system were therefore rotated by the inverse rotation.

Also return without transforming when a PARAM STR_CID coordinate system is not defined, as the information message already says. Previously the transformation went ahead with an unset matrix.

It appears all other consumers of RCORD already had this right.

Example deck:
SOL 101
CEND
TITLE = CHEXA8 uniaxial sigma_x = 1, PSOLID CORDM rotated 30 deg about z
ECHO = NONE
SPC = 1
LOAD = 1
DISP = ALL
STRESS = ALL
BEGIN BULK
CORD2R,10,0,0.,0.,0.,0.,0.,1.,+C
+C,0.8660254,0.5,0.
MAT1,1,1.0+6,,0.3
PSOLID,1,1,10,THREE,,FULL
GRID,1,,0.,0.,0.
GRID,2,,1.,0.,0.
GRID,3,,1.,1.,0.
GRID,4,,0.,1.,0.
GRID,5,,0.,0.,1.
GRID,6,,1.,0.,1.
GRID,7,,1.,1.,1.
GRID,8,,0.,1.,1.
CHEXA,1,1,1,2,3,4,5,6,+H
+H,7,8
FORCE,1,2,,0.25,1.,0.,0.
FORCE,1,3,,0.25,1.,0.,0.
FORCE,1,6,,0.25,1.,0.,0.
FORCE,1,7,,0.25,1.,0.,0.
SPC1,1,123,1
SPC1,1,13,4
SPC1,1,12,5
SPC1,1,1,8
SPC1,1,456,1,THRU,8
ENDDATA

…te system

STR_TENSOR_TRANSFORM treated RCORD as the basic-to-output rotation, but RCORD
holds output-to-basic. Solid stresses and strains requested in a rotated
CORDM or STR_CID system were therefore rotated by the inverse rotation.

Also return without transforming when a PARAM STR_CID coordinate system is
not defined, as the information message already says. Previously the
transformation went ahead with an unset matrix.
@victorkemp
victorkemp merged commit 4f9f1b4 into MystranSolver:dev Oct 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants