Skip to content

Support multi-physics in injectivity-preserving line search#149

Merged
jmartfrut merged 1 commit intomainfrom
multiphysical_injectivity
Apr 9, 2026
Merged

Support multi-physics in injectivity-preserving line search#149
jmartfrut merged 1 commit intomainfrom
multiphysical_injectivity

Conversation

@jmartfrut
Copy link
Copy Markdown
Collaborator

Adds a maskphys field to filter specific physics components for injectivity checks in multi-physics models. Additionally, the line search termination condition now uses absolute values to correctly handle residual comparisons.

Adds a `maskphys` field to filter specific physics components for injectivity checks in multi-physics models. Additionally, the line search termination condition now uses absolute values to correctly handle residual comparisons.
@jmartfrut jmartfrut merged commit 5f15508 into main Apr 9, 2026
4 checks passed
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Benchmark Results (Julia v1)

Time benchmarks
main c5bf4c1... main / c5bf4c1...
Constitutive models/Visco-elastic Ψ 0.0481 ± 0.029 ms 0.0478 ± 0.029 ms 1.01 ± 0.87
Constitutive models/Visco-elastic ∂Ψu 0.0547 ± 0.0023 ms 0.0538 ± 0.0019 ms 1.02 ± 0.055
Constitutive models/Visco-elastic ∂Ψuu 0.102 ± 0.017 ms 0.102 ± 0.018 ms 1 ± 0.24
Simulations/StaticMechanicalDirichlet 0.141 ± 0.01 s 0.137 ± 0.0097 s 1.03 ± 0.1
Simulations/StaticMechanicalNeumann 0.129 ± 0.011 s 0.13 ± 0.012 s 0.99 ± 0.13
Simulations/ViscoElastic 18.8 s 18.4 s 1.02
Tensor algebra/Cofactor 0.06 ± 0.01 μs 0.07 ± 0.01 μs 0.857 ± 0.19
Tensor algebra/Det(A)Inv(A') 0.13 ± 0.001 μs 0.13 ± 0.001 μs 1 ± 0.011
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.55 ± 0.019 s 2.51 ± 0.023 s 1.01 ± 0.012
Memory benchmarks
main c5bf4c1... main / c5bf4c1...
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.0931 GB 1.48 M allocs: 0.0931 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

@jmartfrut jmartfrut deleted the multiphysical_injectivity branch April 11, 2026 16: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