Update mats1 card
- Added card format to the description of the MATS1 class.
- The MATS1 card has two fields LIMIT1 and LIMIT2 that can both be real-valued or blank. The code has been updated to reflect this (previously only allowed real-valued fields).
- Added the STRMEAS field to MATS1.
Passed all test_materials.py unit tests.
STRMEAS will break backwards compatibility. Old Nastran and MSC/NX is supported. The bdf without it should write out the same and the op2 need support for both depending on the data length/ presence of the parameter.
Also out of town right now, so I’ll take a look when I can.
On Thu, Jun 5, 2025 at 5:01 AM Ben Van Bavel @.***> wrote:
- Added card format to the description of the MATS1 class.
- The MATS1 card has two fields LIMIT1 and LIMIT2 that can both be real-valued or blank. The code has been updated to reflect this (previously only allowed real-valued fields).
- Added the STRMEAS field to MATS1.
Passed all test_materials.py unit tests.
You can view, comment on, or merge this pull request online at:
https://github.com/SteveDoyle2/pyNastran/pull/833 Commit Summary
- 4ce84e3 https://github.com/SteveDoyle2/pyNastran/pull/833/commits/4ce84e34372d514cbdfb45a8be64214619ace773 Add card format to MATS1 class description
- 6390ded https://github.com/SteveDoyle2/pyNastran/pull/833/commits/6390dedeea8e7130b113f07e5ffafa2671ee2d67 LIMIT1 and LIMIT2 can be real or blank, update MATS1 class to reflect this.
- f560708 https://github.com/SteveDoyle2/pyNastran/pull/833/commits/f5607087e0866936672b9c135cf2b8b3b4f62a08 Add STRMEAS field to MATS1 class
- fc7bd7d https://github.com/SteveDoyle2/pyNastran/pull/833/commits/fc7bd7d55ec3f86366bb2f80933ee7c84867ffa7 Add STRMEAS field to MATS1 class.
- 8544d58 https://github.com/SteveDoyle2/pyNastran/pull/833/commits/8544d58e083893d12f6d6da4ce6c24fd78831119 Add STRMEAS field to MATS1 class
File Changes
(5 files https://github.com/SteveDoyle2/pyNastran/pull/833/files)
- M pyNastran/bdf/bdf_interface/add_card.py https://github.com/SteveDoyle2/pyNastran/pull/833/files#diff-3b468479f4529489ab4e231283bea290844f00bf25eb21d13aeccc9373976976 (4)
- M pyNastran/bdf/cards/material_deps.py https://github.com/SteveDoyle2/pyNastran/pull/833/files#diff-14db77900687ad1f8976bdd7721761a0bb9b7f064d5ad1765f508e5bf172d7b2 (46)
- M pyNastran/bdf/cards/test/test_materials.py https://github.com/SteveDoyle2/pyNastran/pull/833/files#diff-81f8b0a93122545b5b09756bbcf1003c4f003be45d547cd303695bceec6cabd0 (3)
- M pyNastran/op2/tables/geom/mpt.py https://github.com/SteveDoyle2/pyNastran/pull/833/files#diff-afab83d5de1a377012a1f68790429455540970cb9753639e5bc8eee459e90bc5 (8)
- M pyNastran/op2/writer/mpt_writer.py https://github.com/SteveDoyle2/pyNastran/pull/833/files#diff-b416baa3f6192827bd39e88b04e24b806a04b14ec2c60ec3116dee90620df8bc (14)
Patch Links:
- https://github.com/SteveDoyle2/pyNastran/pull/833.patch
- https://github.com/SteveDoyle2/pyNastran/pull/833.diff
— Reply to this email directly, view it on GitHub https://github.com/SteveDoyle2/pyNastran/pull/833, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICUWKR6T2K7GVLRIL67CT3CAWTNAVCNFSM6AAAAAB6VHSEC6VHI2DSMVQWIX3LMV43ASLTON2WKOZTGEZDAOJTHEYTONA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Closing due to inactivity. Please reopen if you address the backwards compatibility (as well as NX Nastran) concerns.