Skip to content

Third order contraction - #216

Merged
miguelmaso merged 4 commits into
mainfrom
3-order-op
Aug 10, 2026
Merged

Third order contraction#216
miguelmaso merged 4 commits into
mainfrom
3-order-op

Conversation

@miguelmaso

Copy link
Copy Markdown
Collaborator

Added third- and first-order contraction

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main 7edf5a4... main / 7edf5a4...
Constitutive models/Visco-elastic Ψ 26.6 ± 17 μs 0.0401 ± 0.018 ms 0.664 ± 0.52
Constitutive models/Visco-elastic ∂Ψ∂F 0.0336 ± 0.017 ms 0.0332 ± 0.016 ms 1.01 ± 0.7
Constitutive models/Visco-elastic ∂∂Ψ∂FF 0.0692 ± 0.033 ms 0.0692 ± 0.032 ms 1 ± 0.67
Constitutive models/Visco-polyconvex Ψ 0.16 ± 0.01 μs 0.161 ± 0.01 μs 0.994 ± 0.088
Constitutive models/Visco-polyconvex ∂Ψ∂F 0.181 ± 0.001 μs 0.18 ± 0.001 μs 1.01 ± 0.0079
Constitutive models/Visco-polyconvex ∂∂Ψ∂FF 7.53 ± 5.9 μs 7.72 ± 5.9 μs 0.975 ± 1.1
Simulations/StaticMechanicalDirichlet 0.155 ± 0.021 s 0.145 ± 0.015 s 1.07 ± 0.19
Simulations/StaticMechanicalNeumann 0.131 ± 0.014 s 0.137 ± 0.015 s 0.96 ± 0.15
Simulations/ViscoElastic 13.2 s 13.2 s 1
Tensor algebra/Cofactor 0.08 ± 0.009 μs 0.11 ± 0.04 μs 0.727 ± 0.28
Tensor algebra/Det(A)Inv(A') 0.12 ± 0.011 μs 0.13 ± 0.09 μs 0.923 ± 0.64
Tensor algebra/IIsym 0.08 ± 0.02 μs 0.071 ± 0.01 μs 1.13 ± 0.32
Tensor algebra/push_forward_C_to_F 0.301 ± 0.01 μs 0.301 ± 0.011 μs 1 ± 0.049
Tensor algebra/×ᵢ⁴ 0.07 ± 0.001 μs 0.07 ± 0.001 μs 1 ± 0.02
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.87 ± 0.077 s 2.77 ± 0.023 s 1.04 ± 0.029
Memory benchmarks
main 7edf5a4... main / 7edf5a4...
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 3c5e6f7 into main Aug 10, 2026
4 checks passed
@miguelmaso
miguelmaso deleted the 3-order-op branch August 10, 2026 17:00
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