Skip to content

Update velocity also on dirichlet dofs - #229

Merged
miguelmaso merged 2 commits into
mainfrom
vel-dirichlet
Sep 1, 2026
Merged

Update velocity also on dirichlet dofs#229
miguelmaso merged 2 commits into
mainfrom
vel-dirichlet

Conversation

@miguelmaso

Copy link
Copy Markdown
Collaborator

Hotfix for monitoring energy conservation.

Conservation of energy on transient simulations involves the dependence on the velocity. Also in the Dirichlet dof's.

@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main d564bfe... main / d564bfe...
Constitutive models/Visco-elastic Ψ 27.3 ± 14 μs 27.2 ± 14 μs 1 ± 0.72
Constitutive models/Visco-elastic ∂Ψ∂F 0.0321 ± 0.014 ms 0.0322 ± 0.014 ms 0.997 ± 0.63
Constitutive models/Visco-elastic ∂∂Ψ∂FF 0.07 ± 0.025 ms 0.0699 ± 0.025 ms 1 ± 0.51
Constitutive models/Visco-polyconvex Ψ 0.161 ± 0.003 μs 0.161 ± 0.003 μs 1 ± 0.026
Constitutive models/Visco-polyconvex ∂Ψ∂F 0.18 ± 0.003 μs 0.181 ± 0.003 μs 0.994 ± 0.023
Constitutive models/Visco-polyconvex ∂∂Ψ∂FF 8.42 ± 4.9 μs 8.41 ± 4.5 μs 1 ± 0.79
Simulations/StaticMechanicalDirichlet 0.16 ± 0.019 s 0.158 ± 0.012 s 1.01 ± 0.14
Simulations/StaticMechanicalNeumann 0.133 ± 0.02 s 0.132 ± 0.022 s 1.01 ± 0.23
Simulations/ViscoElastic 13 s 13.1 s 0.994
Tensor algebra/Cofactor 0.072 ± 0.002 μs 0.074 ± 0.002 μs 0.973 ± 0.038
Tensor algebra/Det(A)Inv(A') 0.105 ± 0.003 μs 0.104 ± 0.003 μs 1.01 ± 0.041
Tensor algebra/IIsym 0.067 ± 0.003 μs 0.066 ± 0.002 μs 1.02 ± 0.055
Tensor algebra/push_forward_C_to_F 0.216 ± 0.005 μs 0.215 ± 0.005 μs 1 ± 0.033
Tensor algebra/×ᵢ⁴ 0.064 ± 0.002 μs 0.071 ± 0.002 μs 0.901 ± 0.038
Tensor algebra/δδ_λ_2d 26 ± 0 ns 26 ± 0 ns 1 ± 0
Tensor algebra/δδ_μ_2d 26 ± 1 ns 26 ± 0 ns 1 ± 0.038
time_to_load 2.93 ± 0.0046 s 2.92 ± 0.0029 s 1 ± 0.0019
Memory benchmarks
main d564bfe... main / d564bfe...
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.159 k allocs: 11.6 kB 0.15 k allocs: 12.2 kB 0.948

@miguelmaso
miguelmaso merged commit b7e26f6 into main Sep 1, 2026
4 checks passed
@miguelmaso
miguelmaso deleted the vel-dirichlet branch September 1, 2026 07:29
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