Skip to content

Added update_displacements! function - #222

Merged
miguelmaso merged 1 commit into
mainfrom
update_displ
Aug 25, 2026
Merged

miguelmaso merged 1 commit into
mainfrom
update_displ

Conversation

@miguelmaso

Copy link
Copy Markdown
Collaborator
  • New update_displacements!
  • Exported existing update_velocity!

@github-actions

Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main afc09f9... main / afc09f9...
Constitutive models/Visco-elastic Ψ 0.0321 ± 0.013 ms 0.0318 ± 0.013 ms 1.01 ± 0.57
Constitutive models/Visco-elastic ∂Ψ∂F 27.4 ± 10 μs 27.6 ± 10 μs 0.992 ± 0.53
Constitutive models/Visco-elastic ∂∂Ψ∂FF 0.0625 ± 0.022 ms 0.0728 ± 0.023 ms 0.859 ± 0.4
Constitutive models/Visco-polyconvex Ψ 0.138 ± 0.002 μs 0.138 ± 0.002 μs 1 ± 0.02
Constitutive models/Visco-polyconvex ∂Ψ∂F 0.154 ± 0.003 μs 0.155 ± 0.002 μs 0.994 ± 0.023
Constitutive models/Visco-polyconvex ∂∂Ψ∂FF 7.18 ± 1.6 μs 7.33 ± 3.3 μs 0.979 ± 0.49
Simulations/StaticMechanicalDirichlet 0.129 ± 0.0067 s 0.129 ± 0.0076 s 1 ± 0.079
Simulations/StaticMechanicalNeumann 0.107 ± 0.018 s 0.108 ± 0.019 s 0.996 ± 0.24
Simulations/ViscoElastic 11 s 11.2 s 0.984
Tensor algebra/Cofactor 0.063 ± 0.003 μs 0.064 ± 0.002 μs 0.984 ± 0.056
Tensor algebra/Det(A)Inv(A') 0.088 ± 0.003 μs 0.088 ± 0.003 μs 1 ± 0.048
Tensor algebra/IIsym 0.06 ± 0.003 μs 0.057 ± 0.003 μs 1.05 ± 0.076
Tensor algebra/push_forward_C_to_F 0.181 ± 0.006 μs 0.185 ± 0.003 μs 0.978 ± 0.036
Tensor algebra/×ᵢ⁴ 0.055 ± 0.002 μs 0.054 ± 0.002 μs 1.02 ± 0.053
Tensor algebra/δδ_λ_2d 22 ± 1 ns 22 ± 1 ns 1 ± 0.064
Tensor algebra/δδ_μ_2d 22 ± 1 ns 22 ± 1 ns 1 ± 0.064
time_to_load 2.31 ± 0.015 s 2.31 ± 0.0089 s 1 ± 0.0076
Memory benchmarks
main afc09f9... main / afc09f9...
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 5eee588 into main Aug 25, 2026
4 checks passed
@miguelmaso
miguelmaso deleted the update_displ branch August 25, 2026 13:58
@miguelmaso miguelmaso mentioned this pull request Aug 25, 2026
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