Skip to content

Added 3rd- 2nd-order tensor contraction - #218

Merged
miguelmaso merged 2 commits into
mainfrom
contraction-3-2
Aug 11, 2026
Merged

Added 3rd- 2nd-order tensor contraction#218
miguelmaso merged 2 commits into
mainfrom
contraction-3-2

Conversation

@miguelmaso

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main 03fd681... main / 03fd681...
Constitutive models/Visco-elastic Ψ 28.2 ± 19 μs 28.4 ± 19 μs 0.994 ± 0.94
Constitutive models/Visco-elastic ∂Ψ∂F 0.0338 ± 0.016 ms 0.0339 ± 0.017 ms 0.996 ± 0.69
Constitutive models/Visco-elastic ∂∂Ψ∂FF 0.0681 ± 0.037 ms 0.0674 ± 0.035 ms 1.01 ± 0.76
Constitutive models/Visco-polyconvex Ψ 0.18 ± 0.001 μs 0.18 ± 0.001 μs 1 ± 0.0079
Constitutive models/Visco-polyconvex ∂Ψ∂F 0.19 ± 0.001 μs 0.19 ± 0.001 μs 1 ± 0.0074
Constitutive models/Visco-polyconvex ∂∂Ψ∂FF 8.21 ± 6.8 μs 8.25 ± 6.8 μs 0.995 ± 1.2
Simulations/StaticMechanicalDirichlet 0.136 ± 0.01 s 0.136 ± 0.0089 s 1 ± 0.099
Simulations/StaticMechanicalNeumann 0.118 ± 0.016 s 0.118 ± 0.017 s 1.01 ± 0.2
Simulations/ViscoElastic 12.9 s 12.8 s 1.01
Tensor algebra/Cofactor 0.08 ± 0.001 μs 0.08 ± 0.001 μs 1 ± 0.018
Tensor algebra/Det(A)Inv(A') 0.111 ± 0.011 μs 0.12 ± 0.011 μs 0.925 ± 0.12
Tensor algebra/IIsym 0.07 ± 0.001 μs 0.07 ± 0 μs 1 ± 0.014
Tensor algebra/push_forward_C_to_F 0.32 ± 0.079 μs 0.241 ± 0.01 μs 1.33 ± 0.33
Tensor algebra/×ᵢ⁴ 0.07 ± 0 μs 0.07 ± 0.01 μs 1 ± 0.14
Tensor algebra/δδ_λ_2d 30 ± 0 ns 30 ± 0 ns 1 ± 0
Tensor algebra/δδ_μ_2d 30 ± 0 ns 30 ± 0 ns 1 ± 0
time_to_load 2.68 ± 0.036 s 2.65 ± 0.025 s 1.01 ± 0.017
Memory benchmarks
main 03fd681... main / 03fd681...
Constitutive models/Visco-elastic Ψ 0.542 k allocs: 0.0443 MB 0.542 k allocs: 0.0443 MB 1
Constitutive models/Visco-elastic ∂Ψ∂F 0.593 k allocs: 0.0492 MB 0.593 k allocs: 0.0492 MB 1
Constitutive models/Visco-elastic ∂∂Ψ∂FF 1.05 k allocs: 0.0853 MB 1.05 k allocs: 0.0853 MB 1
Constitutive models/Visco-polyconvex Ψ 0 allocs: 0 B 0 allocs: 0 B
Constitutive models/Visco-polyconvex ∂Ψ∂F 0 allocs: 0 B 0 allocs: 0 B
Constitutive models/Visco-polyconvex ∂∂Ψ∂FF 0.187 k allocs: 15.2 kB 0.187 k allocs: 15.2 kB 1
Simulations/StaticMechanicalDirichlet 1.51 M allocs: 0.108 GB 1.51 M allocs: 0.108 GB 1
Simulations/StaticMechanicalNeumann 1.48 M allocs: 0.0927 GB 1.48 M allocs: 0.0927 GB 1
Simulations/ViscoElastic 0.162 G allocs: 12.8 GB 0.162 G allocs: 12.8 GB 1
Tensor algebra/Cofactor 2 allocs: 0.156 kB 2 allocs: 0.156 kB 1
Tensor algebra/Det(A)Inv(A') 4 allocs: 0.25 kB 4 allocs: 0.25 kB 1
Tensor algebra/IIsym 1 allocs: 0.656 kB 1 allocs: 0.656 kB 1
Tensor algebra/push_forward_C_to_F 1 allocs: 0.656 kB 1 allocs: 0.656 kB 1
Tensor algebra/×ᵢ⁴ 1 allocs: 0.656 kB 1 allocs: 0.656 kB 1
Tensor algebra/δδ_λ_2d 0 allocs: 0 B 0 allocs: 0 B
Tensor algebra/δδ_μ_2d 0 allocs: 0 B 0 allocs: 0 B
time_to_load 0.149 k allocs: 11.1 kB 0.149 k allocs: 11.1 kB 1

@miguelmaso
miguelmaso merged commit 1bd2937 into main Aug 11, 2026
4 checks passed
@miguelmaso
miguelmaso deleted the contraction-3-2 branch August 11, 2026 11:53
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