Skip to content

Conversation

@miguelmaso
Copy link
Collaborator

Exploiting the possiblities of multiple dispatch.

After this PR, the thermal formulation (consistent with the 3rd law of thermo-dynamics) is abailable both for ThermoMechanical and ThermoElectroMechanical coupled models.

@miguelmaso miguelmaso requested a review from jmartfrut January 28, 2026 10:24
@github-actions
Copy link

github-actions bot commented Jan 28, 2026

Benchmark Results (Julia v1)

Time benchmarks
main b238d17... main / b238d17...
Constitutive models/Visco-elastic Ψ 0.0502 ± 0.027 ms 0.0503 ± 0.028 ms 0.998 ± 0.78
Constitutive models/Visco-elastic ∂Ψu 0.0656 ± 0.0082 ms 0.0663 ± 0.007 ms 0.99 ± 0.16
Constitutive models/Visco-elastic ∂Ψuu 0.116 ± 0.016 ms 0.116 ± 0.015 ms 0.998 ± 0.19
Simulations/StaticMechanicalDirichlet 0.139 ± 0.012 s 0.142 ± 0.0093 s 0.977 ± 0.1
Simulations/StaticMechanicalNeumann 0.132 ± 0.017 s 0.134 ± 0.012 s 0.988 ± 0.16
Simulations/ViscoElastic 21.2 s 21.4 s 0.99
Tensor algebra/Cofactor 0.07 ± 0.01 μs 0.07 ± 0.01 μs 1 ± 0.2
Tensor algebra/Det(A)Inv(A') 0.131 ± 0.01 μs 0.13 ± 0.001 μs 1.01 ± 0.077
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.72 ± 0.015 s 2.73 ± 0.034 s 0.996 ± 0.013
Memory benchmarks
main b238d17... main / b238d17...
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.36 k allocs: 0.0898 MB 1.36 k allocs: 0.0898 MB 1
Constitutive models/Visco-elastic ∂Ψuu 2.32 k allocs: 0.155 MB 2.32 k allocs: 0.155 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.343 G allocs: 22 GB 0.343 G allocs: 22 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.159 k allocs: 11.6 kB 0.964

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.

2 participants