Skip to content

Constitutive model cleanup#166

Merged
miguelmaso merged 11 commits into
mainfrom
model-cleanup
Jun 22, 2026
Merged

Constitutive model cleanup#166
miguelmaso merged 11 commits into
mainfrom
model-cleanup

Conversation

@miguelmaso

Copy link
Copy Markdown
Collaborator

Breaking changes

  • Removed IncompressibleNeoHookean3D_2dP in favour of existing IsochorichNeoHookean3D
  • Removed SecondPiola(::IncompressibleNeoHookean3D) in favour of existing SecondPiola(::IsochoricNeoHookean3D)

@miguelmaso miguelmaso changed the title initial commit Constitutive model cleanup Jun 22, 2026
@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main 871deba... main / 871deba...
Constitutive models/Visco-elastic Ψ 0.0533 ± 0.034 ms 0.0412 ± 0.019 ms 1.29 ± 1
Constitutive models/Visco-elastic ∂Ψu 0.0593 ± 0.0027 ms 0.0332 ± 0.0027 ms 1.79 ± 0.17
Constitutive models/Visco-elastic ∂Ψuu 0.109 ± 0.014 ms 0.0627 ± 0.035 ms 1.73 ± 0.99
Simulations/StaticMechanicalDirichlet 0.137 ± 0.0086 s 0.135 ± 0.011 s 1.01 ± 0.1
Simulations/StaticMechanicalNeumann 0.124 ± 0.015 s 0.125 ± 0.015 s 0.992 ± 0.17
Simulations/ViscoElastic 19.9 s 12.3 s 1.62
Tensor algebra/Cofactor 0.07 ± 0.01 μs 0.07 ± 0.01 μs 1 ± 0.2
Tensor algebra/Det(A)Inv(A') 0.111 ± 0.01 μs 0.14 ± 0.001 μs 0.793 ± 0.072
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.92 ± 0.055 s 2.84 ± 0.0096 s 1.03 ± 0.02
Memory benchmarks
main 871deba... main / 871deba...
Constitutive models/Visco-elastic Ψ 1.24 k allocs: 0.0777 MB 0.542 k allocs: 0.0443 MB 1.76
Constitutive models/Visco-elastic ∂Ψu 1.29 k allocs: 0.0826 MB 0.593 k allocs: 0.0492 MB 1.68
Constitutive models/Visco-elastic ∂Ψuu 2.25 k allocs: 0.149 MB 1.02 k allocs: 0.0839 MB 1.77
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.327 G allocs: 20.6 GB 0.162 G allocs: 12.7 GB 1.62
Tensor algebra/Cofactor 1 allocs: 0.0781 kB 1 allocs: 0.0781 kB 1
Tensor algebra/Det(A)Inv(A') 4 allocs: 0.25 kB 4 allocs: 0.25 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 c9623a0 into main Jun 22, 2026
4 checks passed
@miguelmaso miguelmaso deleted the model-cleanup branch June 22, 2026 14:22
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