Skip to content

fix(tet-based-metrics): compliance shear entries missing (+1 more) - #25

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/tet-based-metrics-assorted-40f46483
Open

fix(tet-based-metrics): compliance shear entries missing (+1 more)#25
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/tet-based-metrics-assorted-40f46483

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 27, 2026

Copy link
Copy Markdown

Small fixes in utils/tet_based_metrics.py:

fix: compliance shear entries missing factor of two in strain energy

Fix: Replace:

    D_inv[3][3] = invE * (1.0 + nu)
    D_inv[4][4] = invE * (1.0 + nu)
    D_inv[5][5] = invE * (1.0 + nu)

with:

    D_inv[3][3] = 2 * invE * (1.0 + nu)
    D_inv[4][4] = 2 * invE * (1.0 + nu)
    D_inv[5][5] = 2 * invE * (1.0 + nu)

fix: voigt stress vector uses wrong xy shear component

Fix: Replace:

    voigt_stress = np.array([ts.x.x, ts.y.y, ts.z.z, ts.z.y, ts.z.x, ts.y.z])

with:

    voigt_stress = np.array([ts.x.x, ts.y.y, ts.z.z, ts.z.y, ts.z.x, ts.y.x])

Files changed

  • utils/tet_based_metrics.py

@andrewwhitecdw
andrewwhitecdw marked this pull request as ready for review August 3, 2026 22:10
@andrewwhitecdw

Copy link
Copy Markdown
Author

Closing this sweep-generated PR: sole commit is missing a valid Signed-off-by trailer. It does not meet the sweep requirements (single signed-off commit).

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.

1 participant