Skip to content

Rename VoigtType to Tensor2Type and update API#97

Merged
chemiskyy merged 2 commits into
masterfrom
release/towards2_0
Jul 21, 2026
Merged

Rename VoigtType to Tensor2Type and update API#97
chemiskyy merged 2 commits into
masterfrom
release/towards2_0

Conversation

@chemiskyy

Copy link
Copy Markdown
Member

Replace the 2nd-order tensor tag VoigtType with a clearer Tensor2Type across the codebase and Python bindings. Added a deprecated VoigtType alias in tensor.hpp and exposed it in the Python module for backward compatibility. Updated all C++ headers/sources and pybind wrapper code to use Tensor2Type (function signatures, error messages, factories, batch operations, and inference helpers), and adjusted the Python mapping/exports accordingly. Minor example update: IsotropicElasticity now passes convention="Enu" to clarify C1/C2 semantics. This change is primarily a rename/refactor to improve naming clarity while keeping a compatibility alias for external users.

Replace the 2nd-order tensor tag VoigtType with a clearer Tensor2Type across the codebase and Python bindings. Added a deprecated VoigtType alias in tensor.hpp and exposed it in the Python module for backward compatibility. Updated all C++ headers/sources and pybind wrapper code to use Tensor2Type (function signatures, error messages, factories, batch operations, and inference helpers), and adjusted the Python mapping/exports accordingly. Minor example update: IsotropicElasticity now passes convention="Enu" to clarify C1/C2 semantics. This change is primarily a rename/refactor to improve naming clarity while keeping a compatibility alias for external users.
@chemiskyy
chemiskyy merged commit a7a0060 into master Jul 21, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in simcoon 2.0 Jul 21, 2026
@chemiskyy
chemiskyy deleted the release/towards2_0 branch July 21, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant