Skip to content

Multi-physical models: Added type parameters to abstract types#136

Merged
miguelmaso merged 7 commits intomainfrom
multi-phys
Mar 9, 2026
Merged

Multi-physical models: Added type parameters to abstract types#136
miguelmaso merged 7 commits intomainfrom
multi-phys

Conversation

@miguelmaso
Copy link
Collaborator

This PR allows to define cleaner multiple dispatches

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

Benchmark Results (Julia v1)

Time benchmarks
main 79b841d... main / 79b841d...
Constitutive models/Visco-elastic Ψ 0.0489 ± 0.034 ms 0.0473 ± 0.034 ms 1.03 ± 1
Constitutive models/Visco-elastic ∂Ψu 0.0555 ± 0.0023 ms 0.0538 ± 0.0021 ms 1.03 ± 0.059
Constitutive models/Visco-elastic ∂Ψuu 0.104 ± 0.013 ms 0.101 ± 0.011 ms 1.03 ± 0.17
Simulations/StaticMechanicalDirichlet 0.133 ± 0.0068 s 0.136 ± 0.0072 s 0.982 ± 0.072
Simulations/StaticMechanicalNeumann 0.133 ± 0.013 s 0.13 ± 0.011 s 1.02 ± 0.13
Simulations/ViscoElastic 19 s 18.6 s 1.02
Tensor algebra/Cofactor 0.07 ± 0 μs 0.07 ± 0.01 μs 1 ± 0.14
Tensor algebra/Det(A)Inv(A') 0.131 ± 0.01 μs 0.13 ± 0.011 μs 1.01 ± 0.11
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.63 ± 0.047 s 2.65 ± 0.048 s 0.991 ± 0.025
Memory benchmarks
main 79b841d... main / 79b841d...
Constitutive models/Visco-elastic Ψ 1.24 k allocs: 0.0777 MB 1.24 k allocs: 0.0777 MB 1
Constitutive models/Visco-elastic ∂Ψu 1.29 k allocs: 0.0826 MB 1.29 k allocs: 0.0826 MB 1
Constitutive models/Visco-elastic ∂Ψuu 2.25 k allocs: 0.149 MB 2.25 k allocs: 0.149 MB 1
Simulations/StaticMechanicalDirichlet 1.51 M allocs: 0.109 GB 1.51 M allocs: 0.109 GB 1
Simulations/StaticMechanicalNeumann 1.48 M allocs: 0.0933 GB 1.48 M allocs: 0.0933 GB 1
Simulations/ViscoElastic 0.326 G allocs: 20.5 GB 0.326 G allocs: 20.5 GB 1
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 08bbd5c into main Mar 9, 2026
4 checks passed
@miguelmaso miguelmaso deleted the multi-phys branch March 9, 2026 17:35
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