Skip to content

Conversation

@miguelmaso
Copy link
Collaborator

After #99 and #101, thermo-electro-mechanical constitutive models support viscoelasticity with anisotropy on the hyperelastic branch.

Those changes added missing methods to have a unified interface for constitutive models.

@miguelmaso miguelmaso requested a review from jmartfrut January 21, 2026 16:16
@github-actions
Copy link

github-actions bot commented Jan 21, 2026

Benchmark Results (Julia v1)

Time benchmarks
main cee31b5... main / cee31b5...
Constitutive models/Visco-elastic Ψ 0.0499 ± 0.028 ms 0.05 ± 0.027 ms 0.998 ± 0.77
Constitutive models/Visco-elastic ∂Ψu 0.0648 ± 0.0071 ms 0.066 ± 0.0057 ms 0.982 ± 0.14
Constitutive models/Visco-elastic ∂Ψuu 0.115 ± 0.017 ms 0.116 ± 0.015 ms 0.989 ± 0.2
Simulations/StaticMechanicalDirichlet 0.137 ± 0.0091 s 0.132 ± 0.0072 s 1.03 ± 0.088
Simulations/StaticMechanicalNeumann 0.136 ± 0.017 s 0.131 ± 0.014 s 1.04 ± 0.17
Simulations/ViscoElastic 21.4 s 21.1 s 1.02
Tensor algebra/Cofactor 0.061 ± 0.01 μs 0.07 ± 0.001 μs 0.871 ± 0.14
Tensor algebra/Det(A)Inv(A') 0.13 ± 0.01 μs 0.14 ± 0.011 μs 0.929 ± 0.1
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.54 ± 0.0092 s 2.45 ± 0.018 s 1.04 ± 0.0087
Memory benchmarks
main cee31b5... main / cee31b5...
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.149 k allocs: 11.1 kB 1

@miguelmaso
Copy link
Collaborator Author

There are no changes on the interface. Summary:

  • The eletro-mechanic dissipation has been fixed
  • Code is more readable

@miguelmaso miguelmaso merged commit e3383a1 into main Jan 23, 2026
4 checks passed
@miguelmaso miguelmaso deleted the thermo-cleanup branch January 23, 2026 13:08
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