Skip to content

Added interface for the viscous evolution law - #221

Merged
miguelmaso merged 2 commits into
mainfrom
evol-law
Aug 24, 2026
Merged

miguelmaso merged 2 commits into
mainfrom
evol-law

Conversation

@miguelmaso

@miguelmaso miguelmaso commented Aug 24, 2026 •

Copy link
Copy Markdown
Collaborator

Added and exported the function return_mapping.

The new function is in charge to provide a Gridap-like method that updates the internal variable.

@github-actions

github-actions Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main f8a9aaf... main / f8a9aaf...
Constitutive models/Visco-elastic Ψ 0.0344 ± 0.015 ms 23.6 ± 15 μs 1.46 ± 1.1
Constitutive models/Visco-elastic ∂Ψ∂F 27.4 ± 14 μs 28.1 ± 14 μs 0.976 ± 0.7
Constitutive models/Visco-elastic ∂∂Ψ∂FF 0.0545 ± 0.028 ms 0.0562 ± 0.029 ms 0.97 ± 0.7
Constitutive models/Visco-polyconvex Ψ 0.14 ± 0.01 μs 0.14 ± 0.01 μs 1 ± 0.1
Constitutive models/Visco-polyconvex ∂Ψ∂F 0.16 ± 0 μs 0.16 ± 0 μs 1 ± 0
Constitutive models/Visco-polyconvex ∂∂Ψ∂FF 6.84 ± 5.5 μs 6.87 ± 5.4 μs 0.995 ± 1.1
Simulations/StaticMechanicalDirichlet 0.121 ± 0.009 s 0.119 ± 0.0067 s 1.02 ± 0.095
Simulations/StaticMechanicalNeumann 0.104 ± 0.016 s 0.108 ± 0.019 s 0.962 ± 0.22
Simulations/ViscoElastic 10.8 s 10.7 s 1.01
Tensor algebra/Cofactor 0.07 ± 0.01 μs 0.07 ± 0.001 μs 1 ± 0.14
Tensor algebra/Det(A)Inv(A') 0.1 ± 0.001 μs 0.1 ± 0.01 μs 1 ± 0.1
Tensor algebra/IIsym 0.07 ± 0.009 μs 0.06 ± 0.01 μs 1.17 ± 0.25
Tensor algebra/push_forward_C_to_F 0.311 ± 0.029 μs 0.301 ± 0.01 μs 1.03 ± 0.1
Tensor algebra/×ᵢ⁴ 0.07 ± 0.01 μs 0.06 ± 0.01 μs 1.17 ± 0.26
Tensor algebra/δδ_λ_2d 20 ± 10 ns 20 ± 10 ns 1 ± 0.71
Tensor algebra/δδ_μ_2d 20 ± 10 ns 20 ± 10 ns 1 ± 0.71
time_to_load 2.29 ± 0.016 s 2.23 ± 0.021 s 1.03 ± 0.012
Memory benchmarks
main f8a9aaf... main / f8a9aaf...
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 6b52d3f into main Aug 24, 2026
4 checks passed
@miguelmaso
miguelmaso deleted the evol-law branch August 24, 2026 14:59
@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