Skip to content

Tensor formulation#11

Open
tuchpaul wants to merge 24 commits into
mainfrom
tensor-formulation
Open

Tensor formulation#11
tuchpaul wants to merge 24 commits into
mainfrom
tensor-formulation

Conversation

@tuchpaul

@tuchpaul tuchpaul commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Migrate some more fourth-order tensor products to the tensor API + fix two bugs

Part of the ongoing FourTensorOperations Voigt/FourTensor → tensor-API migration.

Added

  • kronecker_product(A) (symmetric box self product) and kronecker_product(A, B) (full)
  • adbc_tensor_product(A, B) = A_AD B_BC, non_symmetric_product(A, B) = A_AC B_DB
  • Conversion helpers: make_6x9 / make_9x6 / make_6x6_voigt_matrix_from_tensor

Fixed (add_kronecker_tensor_product, 6x9 overload)

  • Duplicate C(5,5) assignment (applied scalar_this twice)
  • C(5,8) accumulated from C(5,7) instead of C(5,8)

Refactored / removed

  • elast_hyper_get_derivs_of_elastic_right_cg_tensor now exemplarly uses the tensor API instead of the FourTensor/9x9-Voigt round-trip
  • contract_matrix_matrixCore::LinAlg::ddot; removed unused multiply_four_tensor_matrix

Tests

New unit tests for all added ops: element-wise formula checks plus cross-checks against the legacy Voigt/9x9 implementations.

@tuchpaul tuchpaul force-pushed the tensor-formulation branch from 44cf774 to 9cc3bc0 Compare June 9, 2026 08:06
which could be the source of UB for the variable
imasterphidt_on_slave_side_np_ that appeared in the last days.
- add consts and auto where possible
- remove unnecessary breaks
- use structured bindings and views::values where applicable
…omly-failing-sti-test

Try fix randomly failing sti test
@tuchpaul tuchpaul force-pushed the tensor-formulation branch from 9cc3bc0 to 5ec62ee Compare June 9, 2026 20:26
bgoderbauer and others added 19 commits June 10, 2026 18:02
…generalized-maxwell

Implement quasilinear generalized Maxwell model for structural dynamics
…UMMAT-from-mixture-elasthyper-constituent

Remove NUMMAT from MIX_Constituent_ElastHyper
…-combo-muscle-model

Group passive/active material parameters and refactor COMBO muscle model
…aster-slave-volmortar-ehl

Futher renaming of master/slave to source/target
…m-implemented-functions-part-4

Remove custom implemented functions: Part 4
@tuchpaul tuchpaul force-pushed the tensor-formulation branch from 5ec62ee to a84764d Compare June 16, 2026 09:40
@tuchpaul tuchpaul force-pushed the tensor-formulation branch from a84764d to 1b33278 Compare June 16, 2026 11:03
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.

4 participants