Skip to content

Reexport TensorValue from Gridap#191

Merged
miguelmaso merged 2 commits into
mainfrom
export-phys-model
Jul 10, 2026
Merged

Reexport TensorValue from Gridap#191
miguelmaso merged 2 commits into
mainfrom
export-phys-model

Conversation

@miguelmaso

Copy link
Copy Markdown
Collaborator

This will allow to use TensorValues in short pieces of code without the need of explicitly importing Gridap.

@github-actions

Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main b006a39... main / b006a39...
Constitutive models/Visco-elastic Ψ 0.0323 ± 0.017 ms 24.4 ± 16 μs 1.32 ± 1.1
Constitutive models/Visco-elastic ∂Ψu 31 ± 2.3 μs 31.1 ± 15 μs 0.996 ± 0.48
Constitutive models/Visco-elastic ∂Ψuu 0.0595 ± 0.029 ms 0.0597 ± 0.027 ms 0.997 ± 0.67
Simulations/StaticMechanicalDirichlet 0.131 ± 0.0069 s 0.132 ± 0.0069 s 0.993 ± 0.074
Simulations/StaticMechanicalNeumann 0.127 ± 0.011 s 0.127 ± 0.0097 s 1 ± 0.12
Simulations/ViscoElastic 11.8 s 12 s 0.984
Tensor algebra/Cofactor 0.06 ± 0.001 μs 0.06 ± 0.01 μs 1 ± 0.17
Tensor algebra/Det(A)Inv(A') 0.11 ± 0.001 μs 0.11 ± 0.001 μs 1 ± 0.013
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.74 ± 0.028 s 2.75 ± 0.0033 s 0.997 ± 0.01
Memory benchmarks
main b006a39... main / b006a39...
Constitutive models/Visco-elastic Ψ 0.542 k allocs: 0.0443 MB 0.542 k allocs: 0.0443 MB 1
Constitutive models/Visco-elastic ∂Ψu 0.593 k allocs: 0.0492 MB 0.593 k allocs: 0.0492 MB 1
Constitutive models/Visco-elastic ∂Ψuu 1.02 k allocs: 0.0839 MB 1.02 k allocs: 0.0839 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.162 G allocs: 12.7 GB 0.162 G allocs: 12.7 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 268d428 into main Jul 10, 2026
4 checks passed
@miguelmaso miguelmaso deleted the export-phys-model branch July 10, 2026 11:28
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