Skip to content

Refactor Electro and ThermoElectro models#153

Merged
miguelmaso merged 30 commits into
mainfrom
thermo-electro
Jun 5, 2026
Merged

Refactor Electro and ThermoElectro models#153
miguelmaso merged 30 commits into
mainfrom
thermo-electro

Conversation

@miguelmaso

@miguelmaso miguelmaso commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

Features

  • Added ThermoElectro coupled model based on multiplicative decomposition
  • Replaced the function _getCoupling(obj.electro, obj.mechano) with model.electro()
  • Replaced initialize_state with Gridap.CellState
  • Added signature with CellState(visco, F, args...) to allow a custom initial visous strain
  • Added ConstantCvLaw and ConstantEnergyLaw

@github-actions

github-actions Bot commented Apr 30, 2026

Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main 01bc6a6... main / 01bc6a6...
Constitutive models/Visco-elastic Ψ 0.0481 ± 0.029 ms 0.0478 ± 0.028 ms 1.01 ± 0.84
Constitutive models/Visco-elastic ∂Ψu 0.0542 ± 0.0017 ms 0.0539 ± 0.0019 ms 1.01 ± 0.047
Constitutive models/Visco-elastic ∂Ψuu 0.102 ± 0.016 ms 0.102 ± 0.016 ms 0.999 ± 0.22
Simulations/StaticMechanicalDirichlet 0.134 ± 0.0067 s 0.134 ± 0.0072 s 0.999 ± 0.073
Simulations/StaticMechanicalNeumann 0.128 ± 0.012 s 0.13 ± 0.013 s 0.982 ± 0.13
Simulations/ViscoElastic 18.3 s 18.4 s 0.997
Tensor algebra/Cofactor 0.06 ± 0.001 μs 0.06 ± 0.01 μs 1 ± 0.17
Tensor algebra/Det(A)Inv(A') 0.12 ± 0.01 μs 0.12 ± 0.011 μs 1 ± 0.12
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.76 ± 0.0051 s 2.76 ± 0.011 s 0.999 ± 0.0045
Memory benchmarks
main 01bc6a6... main / 01bc6a6...
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.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.327 G allocs: 20.6 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 marked this pull request as draft April 30, 2026 14:39
@miguelmaso miguelmaso marked this pull request as ready for review May 6, 2026 07:44
@miguelmaso miguelmaso changed the title [NOT TO MERGE] Refactor Electro and ThermoElectro models Refactor Electro and ThermoElectro models Jun 5, 2026
@miguelmaso miguelmaso merged commit c66f93b into main Jun 5, 2026
4 checks passed
@miguelmaso miguelmaso deleted the thermo-electro branch June 5, 2026 11:41
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