Skip to content

Conversation

@jmartfrut
Copy link
Collaborator

Adds a specialization for MagnetoMechModel to handle anisotropic elastic materials, enabling more accurate modeling of magneto-mechanical interactions in materials with directional dependence.

This enhancement allows the simulation of complex material behaviors where mechanical properties vary with direction, improving the fidelity of magneto-mechanical simulations.

Adds a specialization for MagnetoMechModel to handle anisotropic elastic materials, enabling more accurate modeling of magneto-mechanical interactions in materials with directional dependence.

This enhancement allows the simulation of complex material behaviors where mechanical properties vary with direction, improving the fidelity of magneto-mechanical simulations.
@jmartfrut jmartfrut merged commit f226dc8 into main Nov 12, 2025
4 checks passed
@github-actions
Copy link

Benchmark Results (Julia v1)

Time benchmarks
main 03fdb68... main / 03fdb68...
Constitutive models/Visco-elastic Ψ 0.0489 ± 0.028 ms 0.0506 ± 0.029 ms 0.965 ± 0.79
Constitutive models/Visco-elastic ∂Ψu 0.0637 ± 0.0047 ms 0.0641 ± 0.003 ms 0.993 ± 0.087
Constitutive models/Visco-elastic ∂Ψuu 0.112 ± 0.014 ms 0.113 ± 0.018 ms 0.994 ± 0.2
Simulations/StaticMechanicalDirichlet 0.155 ± 0.0082 s 0.156 ± 0.0086 s 0.988 ± 0.076
Simulations/StaticMechanicalNeumann 0.131 ± 0.013 s 0.131 ± 0.013 s 1 ± 0.14
Simulations/ViscoElastic 8.25 s 8.27 s 0.998
Tensor algebra/Cofactor 0.07 ± 0.01 μs 0.07 ± 0 μs 1 ± 0.14
Tensor algebra/Det(A)Inv(A') 0.14 ± 0.011 μs 0.14 ± 0.001 μs 1 ± 0.079
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.43 ± 0.013 s 2.41 ± 0.019 s 1.01 ± 0.0094
Memory benchmarks
main 03fdb68... main / 03fdb68...
Constitutive models/Visco-elastic Ψ 1.25 k allocs: 0.0794 MB 1.25 k allocs: 0.0794 MB 1
Constitutive models/Visco-elastic ∂Ψu 1.37 k allocs: 0.0917 MB 1.37 k allocs: 0.0917 MB 1
Constitutive models/Visco-elastic ∂Ψuu 2.31 k allocs: 0.158 MB 2.31 k allocs: 0.158 MB 1
Simulations/StaticMechanicalDirichlet 1.7 M allocs: 0.118 GB 1.7 M allocs: 0.118 GB 1
Simulations/StaticMechanicalNeumann 1.43 M allocs: 0.0908 GB 1.43 M allocs: 0.0908 GB 1
Simulations/ViscoElastic 0.128 G allocs: 8.32 GB 0.128 G allocs: 8.32 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

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